garymgordon
Programmer
Well, here's my question.
I have no problem in setting up an ADODB.Connection to a SQl server and the database. It works fine.
But, I am trying to learn and I am reading about DSN and simply want to understand it.
But, when I set up the code (as they describe), which looks like:
Set DBConn = Server.CreateObject("ADODB.Connection"
DBConn.Open "DSN=IssuesLog" ' Database name is IssuesLog
I get the error of:
Error Type:
Microsoft OLE DB Provider for ODBC Drivers (0x80004005)
[Microsoft][ODBC Driver Manager] Data source name not found and no default driver specified
So, I didn't know if the "Set" line is correct or not, and I didn't know if the DSN file (IssuesLog.dsn) had to be on the webserver or not (or where it needs to be in order to work), ????
I am just confused.
If someone could explain how I can use DSN (to connect to an .mdb file (Access) or to an SQL database), and the stuff I should be aware of, etc. .... I would greatly appreciate it.
Thanks,
Gary
Gary M. Gordon, LLC
webmaster@garymgordon.com
Certified Web Developer ::
Application Programmer
I have no problem in setting up an ADODB.Connection to a SQl server and the database. It works fine.
But, I am trying to learn and I am reading about DSN and simply want to understand it.
But, when I set up the code (as they describe), which looks like:
Set DBConn = Server.CreateObject("ADODB.Connection"
DBConn.Open "DSN=IssuesLog" ' Database name is IssuesLog
I get the error of:
Error Type:
Microsoft OLE DB Provider for ODBC Drivers (0x80004005)
[Microsoft][ODBC Driver Manager] Data source name not found and no default driver specified
So, I didn't know if the "Set" line is correct or not, and I didn't know if the DSN file (IssuesLog.dsn) had to be on the webserver or not (or where it needs to be in order to work), ????
I am just confused.
If someone could explain how I can use DSN (to connect to an .mdb file (Access) or to an SQL database), and the stuff I should be aware of, etc. .... I would greatly appreciate it.
Thanks,
Gary
Gary M. Gordon, LLC
webmaster@garymgordon.com
Certified Web Developer ::
Application Programmer