Results 1 to 5 of 5

Thread: Ingres II Database Connection

  1. #1
    Join Date
    Mar 2004
    Posts
    1,685
    Rep Power
    0

    Default Ingres II Database Connection

    Does anyone know how to connecte to an Ingres II database in VB6? Been searching Google and finding nothing. Most I found was:

    Code:
    "Provider=MSDASQL.1;DRIVER=Ingres;SRVR=xxxxx;DB=xxxxx;Persist Security Info=False;uid=xxxx;pwd=xxxxx;SELECTLOOPS=N;Extended Properties="""SERVER=xxxxx;DATABASE=xxxxx;SERVERTYPE=INGRES""
    But I can't get it to work.

    I have Ingres installed and the databases configured in the ODBC Control Panel. Tested connection and it worked. Now need to figure out how to connect from VB.
    Last edited by nder; Sep 22, 2004 at 02:56 PM.
    The answer you seek is *+5,2*3,2
    Check out my blog: http://rants.andreobrown.com

  2. #2
    Join Date
    Apr 2003
    Posts
    13,270
    Rep Power
    35

    Default Re: Ingres II Database Connection

    Your connection string looks wierd, but try something like this:

    Code:
    MyConnectionString = "SERVER=xxx.xxx.xxx.xxx;SERVERTYPE=INGRES;DATABASE=database_name;SELECTLOOPS=N;UID=username;PWD=password;"
    Or likewise, you can use your dsn connection:
    Code:
    DSN=dsn_name
    This was taken from thier Connectivity Guide document found here: http://opensource.ca.com/projects/ingres/documents
    "The best software is the one that fits your needs." - A_A

    Virus free since: date unknown
    Anti-virus free since: August 2008

  3. #3
    Join Date
    Apr 2003
    Posts
    13,270
    Rep Power
    35

    Default Re: Ingres II Database Connection

    I am noticing the CODE tag is inserting some space into the connection string. There is no space in the string, just to let you know.
    "The best software is the one that fits your needs." - A_A

    Virus free since: date unknown
    Anti-virus free since: August 2008

  4. #4
    Join Date
    Mar 2004
    Posts
    1,685
    Rep Power
    0

    Default Re: Ingres II Database Connection

    Thanks. Ill try this. And thanks for the link. I've been searching for the support site too.,
    The answer you seek is *+5,2*3,2
    Check out my blog: http://rants.andreobrown.com

  5. #5
    Join Date
    Mar 2004
    Posts
    1,685
    Rep Power
    0

    Default Re: Ingres II Database Connection

    The DSN connection worked. Thanks.
    The answer you seek is *+5,2*3,2
    Check out my blog: http://rants.andreobrown.com

Posting Permissions

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