Retrieve ntext field using ODBC Socket

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

  1. #1

    Default Retrieve ntext field using ODBC Socket

    Help....!

    I just upgraded cfmx6.1 to cfmx7, and all queries retrieve ntext field from MS
    SQL Server fail. It displays nothing or empty string for ntext field. I am
    using "ODBC Socket" connection to MS SQL SERVER.

    Please tell me what is the cause and how to fix this problem. Thanks a bunch!

    Connie

    syseng Guest

  2. Similar Questions and Discussions

    1. ODBC Socket doesn't show my list of ODBC DSN's!?!
      In the ColdFusion MX 7 Administrator, when I try to create a new datasource of type ?ODBC Socket?, the drop down labled ?ODBC DSN? that is supposed...
    2. Lenght of NText field
      I have been using MSAccess databases when working with CF for the past 8 years. The following query or something very much like it has been hugly...
    3. ntext field not showing up (ASP)
      I changed the datatype of a field in a SQL Server 2000 database from nvarchar to ntext, but now nothing is being displayed. The "Body" column of...
    4. how to update and retrieve ntext fields in my asp code
      how to update and retrieve ntext fields in my asp code PLEASE HELP
    5. Updating part of the text in an NTEXT field
      SQL Server Version - 7 Table - Pages Field - Content Hi, I need to update an ip address in an ntext field. I have looked at UPDATEXT, the...
  3. #2

    Default Re: Retrieve ntext field using ODBC Socket

    This is a known bug 57696 (low priority).

    Most users find the JDBC driver much better (the workaround) and it will work
    in this instance.

    Is there any particular reason you can't use JDBC? (MS SQL Server)

    Stephen Dupre
    Macromedia QA

    sdupre Guest

  4. #3

    Default Re: Retrieve ntext field using ODBC Socket

    I think Macromedia should investigate their bug more and fix it. They can't
    tell all people to use JDBC when they have this problem because each company
    has different infrastructure or environment that sometimes JDBC is not a good
    way.

    By the way, I found out that if you query the ntext field alone, it will
    return all data - more than 8000 characters (as using ODBC Socket). Sometimes
    I can add additional fields, but when it hits to certain fields in the query,
    ntext field won't return data - seems like running out of memory to hold data.
    So the workaround solution for me is running query for ntext field alone, or
    convert ntext field to text or varchar in sql statement - this is working for
    me now.

    Thanks for reply to my message Stephen!

    syseng Guest

  5. #4

    Default Re: Retrieve ntext field using ODBC Socket

    Interestingly enough... you can not use the JDBC Driver with SQL Server 2000
    Personal edition... you get a "connection refused" socket error. Therefore,
    you can not access ntext fields under that environment. Either you have to
    convert to SQL Server 2000 Developer Edition or equivelent in order to use the
    JDBC Driver, then you may access the ntext field data normally.

    ii_bar Guest

  6. #5

    Default Re: Retrieve ntext field using ODBC Socket

    ii_bar wrote:
    > Interestingly enough... you can not use the JDBC Driver with SQL Server 2000
    > Personal edition... you get a "connection refused" socket error. Therefore,
    > you can not access ntext fields under that environment. Either you have to
    > convert to SQL Server 2000 Developer Edition or equivelent in order to use the
    > JDBC Driver, then you may access the ntext field data normally.
    i don't believe that's true. if i recall correctly, it installs
    w/trusted authentication only. you need to reset it to both (windows &
    sql authentication) and use a sql server user in it's dsn to connect to
    the database.

    PaulH *TMM* Guest

  7. #6

    Default Re: Retrieve ntext field using ODBC Socket

    I have encountered the same ntext difficulty now that I've converted from MX to
    MX 7. Specifying ODBC Socket as the driver for SQL Server 2000 allows a
    connection (evidently the only choice for those of us on Windows XP sp2);
    however, all ntext fields are returned as empty strings. Is there any option
    other than to revert to Coldfusion MX?

    tennistravel Guest

  8. #7

    Default Re: Retrieve ntext field using ODBC Socket

    By the way, I found out that if you query the ntext field alone, it will return
    all data - more than 8000 characters (as using ODBC Socket). Sometimes I can
    add additional fields, but when it hits to certain fields in the query, ntext
    field won't return data - seems like running out of memory to hold data. So the
    workaround solution for me is running query for ntext field alone, or convert
    ntext field to text or varchar in sql statement - this is working for me now.

    Alternatively, you can also just lext the n field types at the END of your
    query in the SELECT clause.

    Regards,
    Chung

    cychow69 Guest

  9. #8

    Default Re: Retrieve ntext field using ODBC Socket

    Chung,
    Putting the ntext field at the end of the query worked perfectly. Thanks, you saved me a lot of grief.

    Roger
    tennistravel 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