FancyPrairie
Programmer
I've always connected to SQL database via File DSN's. However, if I open MSysObjects it shows the connection information rather than the name of the File DSN. But I do have one File DSN that MSysObjects does list the name of the DSN rather than the connection information.
How do I reference a File DSN so that MSysObjects stores the name of the File DSN and not the connection information?
The File DSN that works like I want was created by someone else and its name is ABC.cdd.dsn This is what it looks like (obviously not connecting to SQL):
The File DSN that doesn't work is named ABC.dsn This is what it looks like:
How do I reference a File DSN so that MSysObjects stores the name of the File DSN and not the connection information?
The File DSN that works like I want was created by someone else and its name is ABC.cdd.dsn This is what it looks like (obviously not connecting to SQL):
Code:
[ODBC]
DRIVER=CONNX32
UID=MyID
APPLICATION=
NODE=
DD=\\path\SMSPRD.cdd
ACC=CONNX32
The File DSN that doesn't work is named ABC.dsn This is what it looks like:
Code:
[ODBC]
DRIVER=SQL Server
UID=MyID
Address=\\MyServerName\pipe\MSSQL$Intranet\sql\query
DATABASE=MyDatabaseName
SERVER=MyServerName
Description=MyStuff