note 46558 deleted from ref.mssql by danbrown

From: Date: Mon, 18 May 2009 02:13:43 +0000
Subject: note 46558 deleted from ref.mssql by danbrown
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-155636@lists.php.net to get a copy of this message
Note Submitter: effeese at gmail dot com ---- in relation to the "unicode problem" mentioned by andrej at dairyweb dot com dot au I suggest use andrew at power-grid dot com's solution: if you get a "Unicode data in Unicode-only collation or ntext data cannot be sent to clients using DB-Library (such as ISQL) or ODBC version 3.7 or earlier" error you can use this kind of code (in an MS environment, of course): <? $db = new COM("ADODB.Connection"); $dsn = "DRIVER={SQL Server}; SERVER={SERVER};UID={USER};PWD={PASS}; DATABASE={DB}"; $db->Open($dsn); $rs = $db->Execute("SELECT * FROM table"); while (!$rs->EOF) { echo $rs->Fields['column']->Value."<BR>"; $rs->MoveNext(); } ?> hope it helps.

« previous php.notes (#155636) next »