| |
asnadig
Posts: 12
Score: 0
Joined: 4/1/2008
Status: offline
|
Original message moved by TNO Reason : Hi All, I am trying to connect to a IBM DB2 database through VB Script. Below is the connection string piece of code. sUID = InputBox("Enter UserID: ","Enter User","YOUR USER ID") sPassword = InputBox("Enter Password: ","Enter Password","YOUR PASSWORD") sOutputOption = InputBox("Enter Screen Or File: ", "Enter Output", "Screen") strConnect = "Database=dbptsu; Hostname=udbimdb-pts-uat.jpmorganchase.com,60020; DRIVER={IBM DB2 ODBC DRIVER}; UID=" & sUID & "" & ";PWD=" & sPassword &"" gDatabase.Open strConnect When I run the script, I get an error "[IBM][CLI Driver] SQL1013N The database alias name or database name "" could not be found. SQLSTATE=42705 Can some one help me in fixing the error? Regards, ASN
|
|