adsc
03-03-2007, 08:25 AM
We just moved our site to discountasp.net, & trying to change the site database connection to what the site requires but it's not working
We are using DSNless connection, we changed our code as follow:
[[start]]
Set myConn = Server.CreateObject("ADODB.Connection")
myConnStr = "Provider=Microsoft.Jet.OLEDB.4.0; Data Source=" & Server.MapPath("..\_database\ticker.mdb")
myConn.ConnectionString = myConnStr
myConn.Open
[[end]]
But still not getting the data, I think we have something wrong in the database path syntax, could you please help us, also the main page home.asp showing another error "script time out...", I am not sure if this also related to the database.
Please advice
Thnaks for the help
Ahmad.
We are using DSNless connection, we changed our code as follow:
[[start]]
Set myConn = Server.CreateObject("ADODB.Connection")
myConnStr = "Provider=Microsoft.Jet.OLEDB.4.0; Data Source=" & Server.MapPath("..\_database\ticker.mdb")
myConn.ConnectionString = myConnStr
myConn.Open
[[end]]
But still not getting the data, I think we have something wrong in the database path syntax, could you please help us, also the main page home.asp showing another error "script time out...", I am not sure if this also related to the database.
Please advice
Thnaks for the help
Ahmad.