Technote Details :: Cannot create Insert or Update forms for NTEXT fields

Issue

I have an Insert and Update transaction that work on fields of type NTEXT and NVARCHAR. When executing the transaction, I get an error message:

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.

I am using PHP.

Reason

This happens because PHP cannot work with UNICODE fields.

Solution

There is no solution to this issue yet. To have the insert and update forms work correctly you must modify the field types in the database, as follows:

  • Replace NTEXT with TEXT
  • Replace NVARCHAR with VARCHAR.

 


CGE - 04-29-2006 07:07:43 GMT +2

More correctly this problem appears because of the Microsoft SQL Server php module which doesn't support the UNICODE fields like NTEXT and NVARCHAR. It is wrong to says that PHP doesn;t support UNICODE fields.

The problem appeared because Microsft introduced UNICODE fields in 7+ version of SQL Server, but didn't provided for free usage the SDK for it. Thus, the php module cannot be built using the new libraries that support UNICODE fields.

The sollution to the problem is not to use UNICODE fields. Or not to use Microsoft SQL Server  if you can.

Home > Support > Knowledge Base > Technote Details
Search the Knowledge Base
© Adobe Systems Romania. All rights reserved.