Quantcast
Channel: General Office Development forum
Viewing all articles
Browse latest Browse all 2257

Retrieve SERVERNAME of ODBC connection in ms access in VBA

$
0
0

Greetings,

I have many Access 2010 databases which have many ODBC linked SQL Server tables. Some table are linked to development server and some to production and I would like to get a report of which table is linked to which server by retrieving the name of the server from the user DSN through VBA code.I can get the database name from the connect property of the databases TableDefs collection but the SQL Server name is stored in the ODBC profile outside of the Access database.

How can the DSN properties or its connection string be access through VBA?

Thank You



Viewing all articles
Browse latest Browse all 2257

Latest Images

Trending Articles



Latest Images