Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Connecting MS Access via ODBC

Status
Not open for further replies.

stigejg

Technical User
Mar 28, 2001
55
NO
Hello,

I am going to work on some programs that is connected to an SQL server via ODBC, an i am using this connectionstring:

"PROVIDER=MSDASQL;DSN=kvalreg;UID=sgu;Password=admin;"

But since I dont wont to destroy any data on this server I have decided to make a working copy on an Access-database and have definen my Driver to reach this data. But The connectionstring doesn't work. I figure that I have an wrong "PROVIDER" I have tryed this: "PROVIDER=ODBCJT32"

So are there someone out there who can give me a hint of which provider I have to use?

Best regards Stig
 
You have tried
Provider=Microsoft.Jet.OLEDB.4.0
I have used this provider for MS Access database
tell me if this works with MS Access database.

Goodluck
 
Also make sure that your DSN is a valid system DSN that points to your Access data. If you are using a DSN than all you really need is.

.connectionstring = "DSN=myODBC"

Where 'myODBC' is a valid DSN connection to the database. Within the DSN connection you will specify the provider and any security information. Thanks and Good Luck!

zemp
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top