bjnst6
09-30-02, 16:37
| i'm having trouble connecting to an access database on my own machine. here's my connection string if i try to use ODBC: <% strConn = "Driver={Microsoft Access Driver (*.mdb)}; DBQ=E:\Documents and Settings\Bob J. Roberts\My Documents\Work\SafetyKids\safetykids.mdb" %> or if i try to use OLE DB: <% strConn = "Provider=Microsoft.Jet.OLEDB.4.0; Data Source=E:\Documents and Settings\Bryan J. Nelson\My Documents\Work\SafetyKids\safetykidsdb.mdb;" & _ "User Id=admin;Password=test"%> and then my code: <% Set conPubs = Server.CreateObject("ADODB.Connection") conPubs.ConnectionString = StrConn conPubs.Open 'cool stuff here conPubs.Close %> and here's my error for ODBC: Error Type: 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 0xdec Thread 0xee8 DBC 0x14d0064 Jet'. and my error for OLE DB: Microsoft JET Database Engine (0x80040E4D) Cannot start your application. The workgroup information file is missing or opened exclusively by another user. i'd like to use OLE DB...but whatever works. other info: i have MDAC 2.7...running XP Pro...using Access 2000...and using MS's component checker i've found that i do have Jet 4.0 installed as well. i've been working on this bug for awhile...any help would be very appreciated. thanks. b |