PDA

Click to See Complete Forum and Search --> : Passing connection string to open Dbase?


sultan
Aug 19th, 1999, 12:47 PM
Running VB6:I am using 'dim db as database'
Now I need to open an ODBC database for which the db.connect holds the string as following
"Database=IMS_SQL;ODBC;DSN=sqlims;Description=ims data on casp;SERVER=Casp;UID= sa;PWD=;APP=Visual Basic;WSID=boxter; DATABASE=IMS_SQL;Address=Casp,1433"

I set constring variable to the following string :
"Database=IMS_SQL;ODBC;DSN=sqlims;SERVER=Casp;UID=sa;" to open the above database through a connection string but it says that the database doesnot exist!????

Please help me if you can I really appreciate
your time and effort many thanks.

JHausmann
Aug 19th, 1999, 07:20 PM
Dumb question:

Has the data source been set up through the ODBC Data Source Administrator (ODBC control Panel)?

You'll need an entry for "sqlims", if it hasn't.

sultan
Aug 19th, 1999, 08:39 PM
Yes thats all there!

JHausmann
Aug 19th, 1999, 08:44 PM
Try it without the database paramter...