note 66032 added to function.mssql-query

From: Date: Fri, 12 May 2006 15:47:42 +0000
Subject: note 66032 added to function.mssql-query
Groups: php.notes 
Request: Send a blank email to php-notes+get-111190@lists.php.net to get a copy of this message
Solution for the following Error: Warning: mssql_query() [function.mssql-query]: 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. This is because you are using column types of like ntext instead of text. There are 2 solutions. 1. Change all ntext column types to text or 2. Your query must look like: SELECT CAST(field1 AS TEXT) AS field1 FROM table ---- Server IP: 64.71.164.2 Probable Submitter: 65.214.79.62 ---- X-Spam-Status: No, hits=3.1 required=5.0 tests=DATE_MISSING,FROM_NO_LOWER autolearn=no version=2.64 ---- Manual Page -- http://www.php.net/manual/en/function.mssql-query.php Edit -- http://master.php.net/note/edit/66032 Del: integrated -- http://master.php.net/note/delete/66032/integrated Del: useless -- http://master.php.net/note/delete/66032/useless Del: bad code -- http://master.php.net/note/delete/66032/bad+code Del: spam -- http://master.php.net/note/delete/66032/spam Del: non-english -- http://master.php.net/note/delete/66032/non-english Del: in docs -- http://master.php.net/note/delete/66032/in+docs Del: other reasons-- http://master.php.net/note/delete/66032 Reject -- http://master.php.net/note/reject/66032 Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#111190) next »