Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

PHP, MS SQL, ntext field problem 1

Status
Not open for further replies.

xtreme69

IS-IT--Management
Mar 4, 2002
30
US
The error I get is:

Unicode data in a Unicode-only collation or ntext data cannot be sent to clients using DB-Library (such as ISQL) or ODBC version 3.7 or earlier.

This error occurs when running any SELECT query that attempts to pull an ntext field. I am using the mssql functions in PHP to do so. Any help/ideas would be appreciated, thanks. :)
 
i think this is a problem with odbs.

workaround: cast the field as a text field in your query

ie select cast(field2 as text) as field2 from table
 
Great! Thanks so much for that jpadie, I have spent a bunch of time searching the web for a solution, and this appears to be working perfectly. An extremely simple solution as well, which is bonus. Thanks again.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top