PC Review


Reply
Thread Tools Rate Thread

ConnctionString for MSAccess MDB and MDW

 
 
Joerg Trumpfheller
Guest
Posts: n/a
 
      7th Oct 2003
Hello

I like to build a connection String for
a) Oracle DB
b) Access DB with a workgroup system.mdw and user and password

the construct is like the following:

I was trying
a)
Dim CString As String = "Provider=OraOLEDB.Oracle.1;User
ID=myusr;Password=mypwd;Persist Security Info=True;Data
Source=mytnsnames;Extended Properties=''"

Dim dbConn As New OleDb.OleDbConnection(CString)
Dim dbCom As New OleDb.OleDbCommand("", dbConn)
Dim dbAdapter As New OleDb.OleDbDataAdapter(dbCom)

dsData = New DataSet("MyDataSet")

dbCom.CommandText = SQL(0) 'Select string for a table
Try
dbAdapter.Fill(dsData, "1-Modell")
Catch ex As Exception
MsgBox(ex.ToString)
End Try

for Oracle it works fine.

Now I tried to use our "save" access-db
b)
CString = "Provider=Microsoft.Jet.OLEDB.3.51;Persist Security
Info=False;User ID=Admin;Data Source='Pathfor\application.mdw' /user
'userid' /pwd '****' 'Pathfor\application.mdb';Extended Properties=''"

Does anyxbody know how I can make it?

Thanks for support
Joerg Trumpfheller


 
Reply With Quote
 
 
 
 
Herfried K. Wagner [MVP]
Guest
Posts: n/a
 
      7th Oct 2003
"Joerg Trumpfheller" <(E-Mail Removed)> scripsit:
> I like to build a connection String for
> a) Oracle DB
> b) Access DB with a workgroup system.mdw and user and password
>
> the construct is like the following:


Did you have a look at <http://www.connectionstrings.com>?

--
Herfried K. Wagner
MVP · VB Classic, VB.NET
<http://www.mvps.org/dotnet>

Java-Server für J2EE-Applikationen verwundbar
<http://www.heise.de/newsticker/data/dab-07.10.03-000/>
 
Reply With Quote
 
Joerg Trumpfheller
Guest
Posts: n/a
 
      8th Oct 2003
Hello Herfried,

> Did you have a look at <http://www.connectionstrings.com>?

thanx for the tip, but .NET needs some more parameters

I rebuild it by using the existing data tool oledbadapter, oldbconnection
and dataset
I filled it and it works fine.
Using the same connection string for the example I have shown throws an
exception
"Installable ISAM not found" (something like this - it is a German Message)

What's wrong? Is there any libary missing?

greetings
Jörg Trumpfheller


 
Reply With Quote
 
Cor
Guest
Posts: n/a
 
      8th Oct 2003
Hi Joerg,
It sounds if you are using DOA in it to create the database, that asks for a
ISAM for the locale parameters, is it something like that?
Cor


 
Reply With Quote
 
Paul Clement
Guest
Posts: n/a
 
      8th Oct 2003
On Wed, 8 Oct 2003 14:15:04 +0200, "Joerg Trumpfheller" <(E-Mail Removed)>
wrote:

¤ Hello Herfried,
¤
¤ > Did you have a look at <http://www.connectionstrings.com>?
¤ thanx for the tip, but .NET needs some more parameters
¤
¤ I rebuild it by using the existing data tool oledbadapter, oldbconnection
¤ and dataset
¤ I filled it and it works fine.
¤ Using the same connection string for the example I have shown throws an
¤ exception
¤ "Installable ISAM not found" (something like this - it is a German Message)
¤
¤ What's wrong? Is there any libary missing?

The ISAM message typically indicates that either the connection string is incorrect or you're
missing the Jet database components.

If you can connect with the Data Link Wizard then it's likely a problem with the connection string.
Try removing some of the parameters from the connection string to see if it works:

ConnectionString = "Provider=Microsoft.Jet.OLEDB.4.0;Password="";User ID=Admin;Data Source=E:\My
Documents\db1.mdb;Jet OLEDB:System database=c:\winnt\system32\system.mdw;"


Paul ~~~ (E-Mail Removed)
Microsoft MVP (Visual Basic)
 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
MSAccess 2003 mdb file does not work well in MSAccess 2007 JohnnyO Microsoft Access Security 1 24th Aug 2009 05:45 PM
Very slow UI response in MSAccess 2007 vs. MSAccess 2003 jpm Microsoft Access 13 22nd May 2009 04:51 AM
How to have C# Web page query MSAccess Database and simultaneously populate MSAccess DB? Siegfried Heintze Microsoft ASP .NET 1 15th Apr 2006 12:41 PM
How do I update an MSAccess table without opening MSAccess? =?Utf-8?B?R2ltcGll?= Microsoft Access VBA Modules 5 3rd Nov 2005 11:46 PM
converting/migration of MSAccess 2000 database to MSAccess 2003 Janette Microsoft Access 1 9th Feb 2005 02:31 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 07:17 AM.