I am not a programmer, but in preparation for a SQLnet rollout, we need
to poll the computers on our network to determine what ODBC definitions
they have.

To get ODBC connections, I believe we'd need a means of enumerating the
values of these two registry keys:

HKEY_LOCAL_MACHINE/SOFTWARE/ODBC/ODBC.INI/ODBC Data Sources
HKEY_CURRENT_USER/SOFTWARE/ODBC/ODBC.INI/ODBC Data Sources

Is there any way, perhaps with VBScript, to gather this type of
information and write it to a file?

If you're aware of any code that has been written to accomplish
something like this, I'd certainly be most appreciative!

Re: Enumerate ODBC Data Sources on all computers and write to file by Dave

Dave
Mon Mar 13 21:03:03 CST 2006

You might give this a go.

http://www.codeproject.com/cs/database/sdbODBCMngr.asp

--

Regards,

Dave Patrick ....Please no email replies - reply in newsgroup.
Microsoft Certified Professional
Microsoft MVP [Windows]
http://www.microsoft.com/protect

"Joanne" wrote:
|I am not a programmer, but in preparation for a SQLnet rollout, we need
| to poll the computers on our network to determine what ODBC definitions
| they have.
|
| To get ODBC connections, I believe we'd need a means of enumerating the
| values of these two registry keys:
|
| HKEY_LOCAL_MACHINE/SOFTWARE/ODBC/ODBC.INI/ODBC Data Sources
| HKEY_CURRENT_USER/SOFTWARE/ODBC/ODBC.INI/ODBC Data Sources
|
| Is there any way, perhaps with VBScript, to gather this type of
| information and write it to a file?
|
| If you're aware of any code that has been written to accomplish
| something like this, I'd certainly be most appreciative!
|