I wrote a program about 3 months ago, just for personal use. All of a sudden, my manager is asking me if I have ever seen a program like this and would know where we could get one (sometimes I love my life). Unfortunately, I wrote my program to connect to an Access2000 DB through the Jet Drivers and my manager needs it for SQL Server.
Rather than hardcoding the fix I would like to store the connection string in a file so that if I start changing DB's a lot, I can just modify the config file. Enter DSN file, that way users can change the connection string as they need to and I never have to look at the code again.
Unfortunately, I don't know how to point an ADO connection to an ODBC "File" (system ODBC no problem). Could someone send me a sample of a valid Connection String for and ODBC File? Or, if you like, tell me I'm going about this the wrong way and suggest something better?
Thnx in advance.
Rather than hardcoding the fix I would like to store the connection string in a file so that if I start changing DB's a lot, I can just modify the config file. Enter DSN file, that way users can change the connection string as they need to and I never have to look at the code again.
Unfortunately, I don't know how to point an ADO connection to an ODBC "File" (system ODBC no problem). Could someone send me a sample of a valid Connection String for and ODBC File? Or, if you like, tell me I'm going about this the wrong way and suggest something better?
Thnx in advance.