Problem connecting via ADO - revised

Ask a Question related to Informix, Design and Development.

  1. #1

    Default RE: Problem connecting via ADO - revised






    Hi Phil,

    It looks like the server name you are passing in the connection string is
    not matching with the actual server name.
    Just check whether is there any INFORMIXSERVER environment variable exist
    and that points to some different name or note.
    It is not necessary to have the INFORMIXSERVER environment variable (client
    side), you can remove it if you want.

    Regards,
    Satyan.



    |---------+---------------------------->
    | | "Phil Homburger" |
    | | <phil@lawbase.com|
    | | > |
    | | |
    | | 08/05/2003 11:02 |
    | | AM |
    | | Please respond to|
    | | phil |
    |---------+---------------------------->
    >------------------------------------------------------------------------------------------------------------------------------|
    | |
    | To: Sathyanesh Krishnan/Lenexa/IBM@IBMUS |
    | cc: |
    | Subject: RE: Problem connecting via ADO - revised |
    >------------------------------------------------------------------------------------------------------------------------------|



    Satyan -

    I figured out that the INFORMIXDIR envirnment variable was pointing to the
    wrong place. I fixed that & now get the error:
    [Informix][Informix ODBC Driver][Informix]INFORMIXSERVER does not match
    either DBSERVERNAME or DBSERVERALIASES.

    Thanks again. I think I'm almost there.

    - Phil

    -----Original Message-----
    From: Sathyanesh Krishnan [mailto:satyan@us.ibm.com]
    Sent: Friday, August 01, 2003 4:43 PM
    To: Phil Homburger
    Cc: [email]informix-list@iiug.org[/email]; [email]owner-informix-list@iiug.org[/email]
    Subject: Re: Problem connecting via ADO






    Hi Phil,

    The driver name has changed
    >From "INFORMIX 3.82 32 BIT"
    To "IBM INFORMIX 3.82 32 BIT"
    Just replace the DRIVER part from the
    connection string as follow, it should work
    DRIVER={IBM INFORMIX 3.82 32 BIT};

    Regards,
    Satyan.




    |---------+---------------------------->
    | | [email]phil@lawbase.com[/email] |
    | | (Phil Homburger) |
    | | Sent by: |
    | | owner-informix-li|
    | | [email]st@iiug.org[/email] |
    | | |
    | | |
    | | 08/01/2003 10:01 |
    | | AM |
    | | Please respond to|
    | | phil |
    |---------+---------------------------->
    >---------------------------------------------------------------------------
    ---------------------------------------------------|
    |
    |
    | To: [email]informix-list@iiug.org[/email]
    |
    | cc:
    |
    | Subject: Re: Problem connecting via ADO
    |
    >---------------------------------------------------------------------------
    ---------------------------------------------------|




    I think I have the setnet32 utility configured correctly. The service
    name is 'sqlexec'.

    When using the following in the VB code I get the error:
    [Microsoft][ODBC Driver Manager]Datasource name not found and no
    default driver specified.

    .ConnectionString = "Provider=MSDASQL; DRIVER={INFORMIX 3.82 32
    BIT}; " _
    & "DB=databasename; HOST=sql_dev; " _
    & "SRVR=ONLINE; SERV=sqlexec; PRO=onsoctcp; "
    _
    & "UID=username; " _
    & "PWD=password; "

    This would be my preferred method of connection if I can get it to
    work. I am using the latest Informix Connect.

    Thanks for the help.

    - Phil



    sending to informix-list
    Sathyanesh Krishnan Guest

  2. Similar Questions and Discussions

    1. Can't upload revised database
      I'm trying to upload a revised Access mdb file to our server. There is an ldb file present almost all the time because we have 6K+ users worldwide...
    2. Please check Download time - Revised
      Would someone please check the dowload time of a web page on a 56kps dial up system for me. the url is: http://www.edutechconsulting.com/wctours...
    3. How to earn 1000 US Dollar a month- Simple English, Revised Edition
      PAIDMAIL POWER PROGRAM- A PENNILESS WAY TO EARN THOUSANDS OF DOLLARS PER MONTH This is a revised version of the Paidmail Power Program, and I...
    4. Revised and Expanded Tutorial on B&W Conversion
      There are multiple techniques for converting color images into B&W. Some are simple and give OK results. For the ultimate in control, you want to...
    5. Revised AOL User Agreement formalizes recent trend in poorly-functionalsoftware?
      I know there are some very smart guys and gals here (as well as one or two trolls) who use AOL, so I wanted to post this section of the Revised AOL...
  3. #2

    Default RE: Problem connecting via ADO - revised






    Hi Phil,

    The connection string look find to me except a small change
    Since you already specified the server name through “Data Source” option
    "Data Source=son_db@WENMM_ELITE;"
    You don’t need to specify "Server” option.
    & "Server=WENMM_ELITE;" _

    By using the connection string the ADO application will uses
    IBM Informix OLE DB driver to communicate with the database server.

    To function the OLE DB driver smoothly you should
    run an SQL ($INFORMIXDIR\etc\coledbp.sql) against
    the “sysmaster” database of the server as user “Informix”.
    (Only user Informix has the privilege to modify the sysmaster)

    In case if you want to remove all the changes made by coledbp.sql
    You can run another SQL ($INFORMIXDIR\etc\doledbp.sql) against the
    Sysmaster database as user Informix.

    Regards,
    Satyan.




    |---------+---------------------------->
    | | "Phil Homburger" |
    | | <phil@lawbase.com|
    | | > |
    | | |
    | | 08/05/2003 12:51 |
    | | PM |
    | | Please respond to|
    | | phil |
    |---------+---------------------------->
    >------------------------------------------------------------------------------------------------------------------------------|
    | |
    | To: Sathyanesh Krishnan/Lenexa/IBM@IBMUS |
    | cc: |
    | Subject: RE: Problem connecting via ADO - revised |
    >------------------------------------------------------------------------------------------------------------------------------|



    Satyan -

    I switched to ADO since that's how I ultimately want to connect. Here's my
    connection string:
    .ConnectionString = "Provider=Ifxoledbc;" _
    & "Server=WENMM_ELITE;" _
    & "Data Source=son_db@WENMM_ELITE;" _
    & "User ID=informix;" _
    & "Password=password;"

    It seems to connect but I get an error:
    Method '~' of object '~' failed.

    Any ideas? THanks.

    - Phil

    sending to informix-list
    Sathyanesh Krishnan Guest

Posting Permissions

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

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139