|
-
Oct 17th, 2001, 04:47 AM
#1
Thread Starter
Frenzied Member
Database connection in ASP
I can't make a database connection in ASP using Visual InterDev.
I am using this connection string:
Code:
set myconn = server.createobject("ADODB.connection")
myconn.open "Driver={microsoft access Driver (*.mdb)};dbq="&server.mappath("lr_statech.mdb")
but this results in this mysterius error:
Code:
Microsoft OLE DB Provider for ODBC Drivers (0x80004005)
[Microsoft][ODBC Microsoft Access Driver]General error Unable to open registry key 'Temporary (volatile) Jet DSN for process 0x304 Thread 0x624 DBC 0xad8014 Jet'.
I can't find out what's wrong, please let me know if I can use another connection string
-
Oct 17th, 2001, 06:41 AM
#2
Black Cat
try this:
"Provider=Microsoft.Jet.OLEDB.4.0;Data Source=databaseName;User ID=userName;Password=userPassword;"
Josh
Get these: Mozilla Opera OpenBSD
I have books for sale: "MCSD in a Nutshell" and "VB Distributed Exam Cram" - PM me for details. Will also trade for a decent ATX Pentium 2 MB/CPU/RAM combo.
-
Oct 17th, 2001, 06:52 AM
#3
Thread Starter
Frenzied Member
Hi Josh
I not sure where to write this code, would you please help me?
-
Oct 17th, 2001, 06:55 AM
#4
Black Cat
Use it for the connection string passed to myconn.open
Josh
Get these: Mozilla Opera OpenBSD
I have books for sale: "MCSD in a Nutshell" and "VB Distributed Exam Cram" - PM me for details. Will also trade for a decent ATX Pentium 2 MB/CPU/RAM combo.
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
|