PMH4514
asked on
programatically install an ODBC entry including password?
Hi
I can easily use the ODBC control panel in Windows to setup an ODBC connection, including the entry of a password followed by the "test connection".. I'm referring to SQL Native Client 10, and SQL Server Authentication mode.
I know how programmatically (VB/C#/C++) add an ODBC entry to the registry, but this doesn't include the password.
Is it possible to write a small program (compiling the password into the code) that will setup the ODBC registry entry and add the password? This is a utility app for some service folks and I want them to be able to configure and verify the ODBC connection without having to inform them of the password.
Can this be done?
Thanks
I can easily use the ODBC control panel in Windows to setup an ODBC connection, including the entry of a password followed by the "test connection".. I'm referring to SQL Native Client 10, and SQL Server Authentication mode.
I know how programmatically (VB/C#/C++) add an ODBC entry to the registry, but this doesn't include the password.
Is it possible to write a small program (compiling the password into the code) that will setup the ODBC registry entry and add the password? This is a utility app for some service folks and I want them to be able to configure and verify the ODBC connection without having to inform them of the password.
Can this be done?
Thanks
according to this thread, this cannot be done due to the fact that it is very insecure.
ASKER
But if the windows API can do it (ie. the ODBC tool in Admin Tools) certainly there must be a way I can make a program do the same thing? (how would anybody ever make a program installer that uses ODBC if this wasn't possible?)
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Thank you I will look into this.
ASKER
That is an interesting class, but unless I'm missing something, it still does not allow the application of a password..