ODBC socket query error

Ask a Question related to Coldfusion Database Access, Design and Development.

  1. #1

    Default ODBC socket query error

    I have an ODBC socket connection with a database. The DSN says the connection
    is OK. I created a simple query in the create a recordset window. When I
    test the query the response I get is an error -1[Macromedia][SequeLink JDBC
    Driver][ODBC Socket] [OSI][PI-ODBC][PI]Invalid string or buffer length. Does
    anyone know what could be a solution to the error? thanks in advance.

    tsgtuser Guest

  2. Similar Questions and Discussions

    1. Socket ODBC error
      After I submit the ODBC socket, then I got error message saying "Unable to update the ColdFusion MX 7 ODBC Server. Timeout period expired without...
    2. ODBC Socket ERROR
      I have a a sql 6.5 that i connect to using odbc sockets on CF 7. It worked fine on my dev machine, but when i installed cf 7 on my production box...
    3. MYOB ODBC Socket Error
      Problem solved... Once you've got the ODBC v5.whatever driver installed, the DSN setup and tested with the MYOB connection tester, go to...
    4. Coldfusion ODBC Socket Error and NOVELL
      I have an ODBC connection set up on my personal machine which connects to a Novell Directory eDirectory. If I query the database using an invalid...
    5. MYOB ODBC Socket Error
      Woohoo! I've got the same problem also! running CFMX 6.1 and the V5 MYOB ODBC DemonHellSpawn Driver. I have setup and tested the DSN on the...
  3. #2

    Default Re: ODBC socket query error

    Did you setup the DSN using the ODBC manager or the ColdFusion Administrator?

    Can you please tell us what version of CF and OS you are using?


    Dan Phillips
    CFXHosting.com
    dphillipsCFX Guest

  4. #3

    Default Re: ODBC socket query error

    I am using dreamweavermx 2004 on a window XP. Cold fusion mx version 7,0,0,91690 is on a windows 2003 server.
    tsgtuser Guest

  5. #4

    Default Re: ODBC socket query error

    Could you post your code please? That may be the problem.
    dphillipsCFX Guest

  6. #5

    Default Re: ODBC socket query error

    the query I am trying to run is SELECT MAX(value)
    FROM picomp
    WHERE (tag='REAL_TIME_LD_AUX.MV') . I have run the query in MS Query, and it
    works. I have ODBC tracing on and the msquery shows results in the log files,
    but the query through dreamweaver does not show up in the log files. Is there
    a way to see the query being passed, or is there a way to pass a query through
    odbc from dreamweaver or coldfusion?

    tsgtuser Guest

  7. #6

    Default Re: ODBC socket query error

    I am getting the same error message. I am attempting to convert my application from 5.0 to MX.
    scurlo9ck Guest

  8. #7

    Default Re: ODBC socket query error

    What is the data type of the field you are using MAX() on? Do you get the same error if you try another aggregate function like SUM(), AVG(), MIN()?
    mxstu Guest

  9. #8

    Default Re: ODBC socket query error

    I don't use any aggregate functions, yet, I'm experiencing the same issue. My
    ColdFusion and Oracle procedures work in Windows 2000/ColdFusion 5.0, but it is
    not working in Windows XP/CF MX. Could it be the CFPROCPARAM CFSQLTYPE? I
    have tried defining it as CF_SQL_CHAR, CF_SQL_LONGVARCHAR, and CF_SQL_VARCHAR
    yet I get the same error.

    scurlo9ck Guest

  10. #9

    Default Re: ODBC socket query error

    The matter if the query uses an aggregate function does not make a difference.
    I can run a query like Select tag from picomp where tag = 'REAL_TIME_LD_AUX.MV'
    and time = DATE('*') and still get the same error.

    tsgtuser Guest

  11. #10

    Default Re: ODBC socket query error

    What driver/version are you using? Did you check the knowledgebase for known
    issues related to your current driver?

    Can you run any query without an error? I mean something very simple like
    'Select myIntColumn From myTable'?

    mxstu Guest

  12. #11

    Default Re: ODBC socket query error

    I am using a driver by the software manufacturer, OSI Software, Inc. PI-ODBC Version 1.02.00.00. I cannot run any queries without getting the error.
    tsgtuser Guest

  13. #12

    Default Re: ODBC socket query error

    Its a hierarchaical database that uses ansi compliant sql.
    tsgtuser Guest

  14. #13

    Default Re: ODBC socket query error

    No, I meant the driver.
    mxstu Guest

  15. #14

    Default Re: ODBC socket query error

    I used the incorrect Macromedia DSN driver. The correct driver for the DSN
    needed to be installed according to the Macromedia technote
    [url]http://www.macromedia.com/cfusion/knowledgebase/index.cfm?id=2d2a7a19[/url]

    tsgtuser Guest

  16. #15

    Default Re: ODBC socket query error

    I hadn't heard of that driver. Thanks for posting a follow-up.
    mxstu Guest

  17. #16

    Default Re: ODBC socket query error

    I was experiencing the exact same problem with accessing data from the PI/OSI
    software proprietary database (invalid string or buffer length error). The
    solution described by tsgtuser on 10/12/2005 was to use a different DSN driver.
    I tried this solution and it did eliminate the invalid string error. However, I
    now get an "undefined value... null pointer" error for some of my queries to
    the PI database (all these queries worked fine with Cold Fusion 5; now, I'm
    using CF MX 6.1). The undefined value error seems to be related to retrieving
    float or integer data types from the PI database (queries only returning string
    values appear to work OK). tsgtuser, have you had any similar experiences, or
    has the new driver eliminated all of your PI related errors?

    TTUChemE 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