Does anybody see anyhing wrong with this code?
I uploaded the files to server and keep getting error
<%
dim ConnectionString
dim MyConn
dim RS
'set connection string to local variable-I use a DSN-less connection
'ConnectionString = "Provider=Microsoft.Jet.OLEDB.4.0; Data Source=e:/home/default/cmkinc.biz/htdocs/auto/foreclosure.mdb"
ConnectionString= "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=d:\home\default\cmkinc.biz\htdocs\auto\foreclosure.mdb"
'ConnectionString="Driver={Microsoft Access Driver (*.mdb)}; DBQ=\e:\home\default\cmkinc.biz\htdocs\auto\foreclosure.mdb"
Set MyConn=Server.CreateObject("ADODB.Connection"
Set RS=Server.CreateObject("ADODB.RecordSet"
*******Error Points Here***********************
MyConn.open ConnectionString
%>
Microsoft JET Database Engine error '80004005'
Unspecified error
/auto/databaseconnect.asp, line 21
This works great on localhost but when I upload it to hosting server gets error connecdting?
I have tried several different ways to connect still no luck
RJKealey
I uploaded the files to server and keep getting error
<%
dim ConnectionString
dim MyConn
dim RS
'set connection string to local variable-I use a DSN-less connection
'ConnectionString = "Provider=Microsoft.Jet.OLEDB.4.0; Data Source=e:/home/default/cmkinc.biz/htdocs/auto/foreclosure.mdb"
ConnectionString= "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=d:\home\default\cmkinc.biz\htdocs\auto\foreclosure.mdb"
'ConnectionString="Driver={Microsoft Access Driver (*.mdb)}; DBQ=\e:\home\default\cmkinc.biz\htdocs\auto\foreclosure.mdb"
Set MyConn=Server.CreateObject("ADODB.Connection"
Set RS=Server.CreateObject("ADODB.RecordSet"
*******Error Points Here***********************
MyConn.open ConnectionString
%>
Microsoft JET Database Engine error '80004005'
Unspecified error
/auto/databaseconnect.asp, line 21
This works great on localhost but when I upload it to hosting server gets error connecdting?
I have tried several different ways to connect still no luck
RJKealey