Forum Moderators: open
myConnection = Server.CreateObject("ADODB.Connection")
connectionString = "DRIVER={Microsoft Access Driver (*.mdb)};DBQ="Server.MapPath("company.mdb")
myConnection.Open(connectionString)
However, I am currently working on an MS-SQL-based website, and am unable to achieve the connection. I've been using different variations of this (with and without the single quotes, etc.):
myConnection = Server.CreateObject("ADODB.Connection")
connectionString="DRIVER={SQLServer};SERVER='mssql2.myserver.com';UID='mylogin';PWD='d3fbc3';DATABASE='company.mdb'"
myConnection.Open(connectionString)
I get this error message:
Microsoft OLE DB Provider for ODBC Drivers error '80004005'
[Microsoft][ODBC Driver Manager] Data source name not found and no default driver specified
/test.asp, line 6
I do not know what needs to be done. I would be grateful for assistance.
Thank you.