tcjen
06-29-2007, 10:09 PM
Hi,
I like to know if there’s way to retrieve the connect string from an opened ADODB.Connection established via system DSN. For example, I first declare/open my connection like this:
Dim objConnection
Set objConnection = Server.CreateObject("ADODB.Connection")
objConnection.ConnectionString = "DSN=MYDB;"
objConnection.Open
Later on, I need the username/password/DB name for some other external calls to execute a dos batch script calls sql*plus with some sql scripts. How can i retrieve the username/password/DB name that's setup in the system DSN (MYDB)?
Any idea/suggestion is greatly appreciated.
I like to know if there’s way to retrieve the connect string from an opened ADODB.Connection established via system DSN. For example, I first declare/open my connection like this:
Dim objConnection
Set objConnection = Server.CreateObject("ADODB.Connection")
objConnection.ConnectionString = "DSN=MYDB;"
objConnection.Open
Later on, I need the username/password/DB name for some other external calls to execute a dos batch script calls sql*plus with some sql scripts. How can i retrieve the username/password/DB name that's setup in the system DSN (MYDB)?
Any idea/suggestion is greatly appreciated.