<address id="bbrpp"><listing id="bbrpp"><meter id="bbrpp"></meter></listing></address>
<form id="bbrpp"><th id="bbrpp"><th id="bbrpp"></th></th></form>

      <strike id="bbrpp"><p id="bbrpp"><dl id="bbrpp"></dl></p></strike>
        <noframes id="bbrpp"><address id="bbrpp"></address>
        <form id="bbrpp"></form>
        <noframes id="bbrpp"><address id="bbrpp"><nobr id="bbrpp"></nobr></address>
          <noframes id="bbrpp"><form id="bbrpp"><th id="bbrpp"></th></form>

          云南網站建設創新企業 昆明多彩網絡公司

          |網頁對話|電話:0871-63215311

          php讀取mssql出現不能用 DB-Library(如 ISQL)或 ODBC 3.7

          來源:昆明多彩網絡公司 日期:2010-12-31 閱讀: 發表評論

          用php去讀mssql出現不能用 DB-Library(如 ISQL)或 ODBC 3.7類似的錯誤,這是因為mssql的text編碼和php編碼不一致造成的。

          在用php腳本讀取mssql的時候發現無法讀取數據,發生錯誤。

          完整的錯誤提示為: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.

          中文提示:Warning: mssql_query() [function.mssql-query]: message: 不能用 DB-Library(如 ISQL)或 ODBC 3.7 或更早版本將 ntext 數據或僅使用 Unicode 排序規則的 Unicode 數據發送到客戶端。

          錯誤原因:mssql的text字段的編碼和php的內置編碼不一致導致的。

          解決方法:$sql = "select CAST(test1 AS TEXT) AS test1 from tablename";

          問題解決。

          發表評論評論列表(有 條評論)

          網頁對話 0871-63215311
          国产无码字幕在线_碰超免费人妻中文字幕_先锋亚洲精品资源_亚洲人妻电影播放