Php introduces how to use SQL database to obtain fields. During PB development, because the ntext field is used in the database, the following error message is Prompted. after reading a large amount of information, I finally understood the problem: PB reports the following error message during PB development because the ntext field is used in the database. after reading a large amount of information,
Finally understand:
PB error:You cannot use DB-Library (such as ISQL) or ODBC 3.7 or earlier versions to send ntext data or Unicode data that only uses Unicode sorting rules to the client.
----------------
In SQL server, ntext and nvarchar fields are stored in unicode encoding. Therefore, php uses mssql extension to read ntext and nvarchar fields with errors.
If the title field type is nvarchar and the content field type is ntext, the following SQL statement reports an error:
Select title, content from article
The correct statement is as follows:
Select convert (varchar (255), title) as title, convert (text, content) as content from article
Or do not use the ntext field
This is very useful and solves my problem!
In the ntext field, the following error message is displayed. after a long time when the solution cannot be found, check a large amount of information and finally understand: PB reports...