|
-
May 9th, 2001, 04:26 PM
#1
Thread Starter
New Member
Heeeeeeellllllppppp!!!!!!!!!!!!!
What is wrong with this connection String?
set adoConn = server.CreateObject("ADODB.Connection")
set adoCmd = server.CreateObject("ADODB.Command")
strConnectionString = "PROVIDER=Microsoft.Jet.OLEDB.3.51;Persist Security Info=False;DefaultDir=C:\Program Files\Microsoft Office\Office\Samples;Driver={Microsoft Access Driver (*.mdb)};DriverId=281;FIL=MS Access"
adoConn.Open strConnectionString
I get the following Error:
ADODB.Connection error '800a0e7a'
ADO could not find the specified provider.
Can Someone Please Help.
Thanks In Advance!
-
May 9th, 2001, 04:36 PM
#2
Good Ol' Platypus
Why can't you just access it without a provider? Why would you need one?
All contents of the above post that aren't somebody elses are mine, not the property of some media corporation. 
(Just a heads-up)
-
May 9th, 2001, 04:47 PM
#3
Thread Starter
New Member
When I make a Data Environment Connection it creates a connection string in globa.asa It puts the provider in there. Is there an easier way of doing this. How about some Code Sample
-
May 11th, 2001, 04:46 AM
#4
Try this provider Microsoft.Jet.OLEDB.4.0.
-
May 12th, 2001, 01:33 AM
#5
Addicted Member
Public objConn as ADODB.connection
Public objCmd as ADODB.command
Private Sub ADOConnection ()
set objConn = New ADODB.Connection
objConn.ConnectionString = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=C:\Program Files\Microsoft Visual Studio\VB98\people1.mdb;Persist Security Info=False"
objConn.Open
Use this if you're connecting to an Access 2000 db. change your provider to 3.51 if you're using 97.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|