dim strSQL
dim cmdObject
set DatabaseConnection = Server.CreateObject("ADODB.Connection"
DatabaseConnection.Open "DSN=pubs", "sa", ""
set cmdObject=server.CreateObject("ADODB.Command"
set cmdObject.ActiveConnection=DatabaseConnection
these are the first six lines of code in a sub called WriteRecord(out of an exercise in a book) DatabaseConnection.Open is on line 25. This is my error:
Error Type:
Microsoft OLE DB Provider for ODBC Drivers (0x80004005)
[Microsoft][ODBC Driver Manager] Data source name not found and no default driver specified
/TitleMaintenance/InsertbookTitle.asp, line 25
as you can see i'm connecting to the pubs database installed with SQL server, and i do have my data view open showing me the database. Any ideas what is wrong?
dim cmdObject
set DatabaseConnection = Server.CreateObject("ADODB.Connection"
DatabaseConnection.Open "DSN=pubs", "sa", ""
set cmdObject=server.CreateObject("ADODB.Command"
set cmdObject.ActiveConnection=DatabaseConnection
these are the first six lines of code in a sub called WriteRecord(out of an exercise in a book) DatabaseConnection.Open is on line 25. This is my error:
Error Type:
Microsoft OLE DB Provider for ODBC Drivers (0x80004005)
[Microsoft][ODBC Driver Manager] Data source name not found and no default driver specified
/TitleMaintenance/InsertbookTitle.asp, line 25
as you can see i'm connecting to the pubs database installed with SQL server, and i do have my data view open showing me the database. Any ideas what is wrong?