Results 1 to 4 of 4

Thread: Passing connection string to open Dbase?

  1. #1

    Thread Starter
    Member
    Join Date
    Apr 1999
    Posts
    39

    Post

    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.

  2. #2
    Frenzied Member
    Join Date
    Aug 1999
    Location
    Santa Clara, Ca , 95058
    Posts
    1,105

    Post

    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.

  3. #3

    Thread Starter
    Member
    Join Date
    Apr 1999
    Posts
    39

    Post

    Yes thats all there!

  4. #4
    Frenzied Member
    Join Date
    Aug 1999
    Location
    Santa Clara, Ca , 95058
    Posts
    1,105

    Post

    Try it without the database paramter...

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width