|
-
Apr 30th, 2001, 09:58 AM
#1
Thread Starter
Lively Member
Connecting to Access 2000 with ASP.
I use this code to connect to Access 97 but when I update the DB to 2000 it won't work.
dim Database, Query
set Database = server.createobject("ADODB.Connection")
Database.ConnectionString = "DRIVER={Microsoft Access Driver (*.mdb)};" & "DBQ=" & Server.MapPath("Database\Knowledgebase.mdb")
Database.Open
Can someone give me the command to connect to 2000.
Thanks
Brandon
-
Apr 30th, 2001, 12:17 PM
#2
Hyperactive Member
not really sure what's wrong with the way your doing it, seems like that should work, maybe try this:
Code:
Set Conn = Server.CreateObject("ADODB.Connection")
DSNtemp="DRIVER={Microsoft Access Driver (*.mdb)}; "
DSNtemp=dsntemp & "DBQ=" & server.mappath("Database\Knowledgebase.mdb")
conn.Open DSNtemp
does your string give you any sort of error?
VB6.0 SP4
Windows 2000
I'm thinking of a number between
-
May 1st, 2001, 07:41 AM
#3
Thread Starter
Lively Member
Sorry it was one of those thing that you do once and it doesn't work and you do again and it works. It was my first day doing asp. Sorry. It works fine now.
Brandon
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
|