I am doing a similar thing, but using vb.net. it is working fine for me.
----
Dim rk As Microsoft.Win32.RegistryKey
rk = Microsoft.Win32.Registry.LocalMachine.CreateSubKey("SOFTWARE\ODBC\ODBC.INI\ODBCNAME")
rk.SetValue("Server", "SERVERNAME")
rk.SetValue("Trusted_Connection", "Yes")...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.