Quantcast
Channel: The Official Scripting Guys Forum! forum
Viewing all articles
Browse latest Browse all 15028

System DSN not visible in ODBC Control panel

$
0
0

I am creating system dsn at run time using VB code to connect to database. My vb code makes entries in following registry key to create the dsn HKLM\SOFTWARE\ODBC\ODBC.INI. 

But I cannot see the actual system dsn in ODBC window. My application gets connected to database but the dsn is not visible in "ODBC Data Source Administrator" panel. 

I used code example from here;

http://gallery.technet.microsoft.com/scriptcenter/635ff2a1-4188-4664-8cd8-4bd3bf832592#content

When I run the same code via QTP, it shows system dsn in ODBC window, but the same codes does not show when I save this file as "dsn.vbs" file and double click to run it. However it does write in registry key correctly. I tried running the vbs file as an "Administrator", but no luck.  I am using windows 7. I appreciate your help.



Viewing all articles
Browse latest Browse all 15028

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>