waqas1
02-22-2002, 12:08 AM
i have posted this before also but never got any reply.......my question is that how to obtain all the databases in a combo box which are present in odbc using vb script or java script ? any help would be appreciated...
waqas
Flyguy
02-22-2002, 12:50 AM
Can you explain what you are trying to do, because I don't understand your question.
divil
02-22-2002, 02:58 AM
This would be an ASP question really. I think he's trying to enumerate through all DSNs on the system.
Derek Stone
02-22-2002, 08:45 AM
The system DSN's are all stored in the registry under:
HKEY_LOCAL_MACHINE\Software\Microsoft\ODBC\ODBC.INI
You're NOT going to be able to access the registry with basic VBScript or Javascript.
Good Luck
-cl
waqas1
02-26-2002, 11:39 PM
hey yeah i want to obtain the dsn names.....i m using vbscript in asp.....now u told me that i can obtain from the registry, can u give me any assistance how to work with it?
thanks
divil
02-27-2002, 03:29 AM
You'll have to write a COM component to do this, in VB or maybe C++, and then call it from the ASP page.
waqas1
02-28-2002, 04:22 AM
is there any other direct way through asp tp do this......
divil
02-28-2002, 04:27 AM
You'll have to write a COM component to do this, in VB or maybe C++, and then call it from the ASP page.
Thinker
02-28-2002, 08:02 AM
Normally, I would delete this as a duplicate post, but in this case...
waqas1, "You'll have to" is very unambiguous.