Database-connection to SQL Server using php sqlsrv_fetch_array cannot query ultra-long data

Source: Internet
Author: User
Tags vc9
Server Operating System: 5.3vc6 database of WindowsServer2003php: sqlserver2008 assume that table A currently has four fields (id, name, content, flag). When the content length is too long, this record cannot be found. Php code is written in this way {code...}... Server OS: Windows Server 2003
Php vc6 5.3
Database: SQL server 2008

Assume that table A contains four fields (id, name, content, and flag). When the content length is too long, this record cannot be found. Php code is written in this way.

$ Stmt = sqlsrv_query ($ SQL); $ rs = array (); where ($ res = sqlsrv_fetch_array ($ stmt) {$ rs [] = $ res ;}

$ Rs returned is null.

However, the same code can be queried on php 5.4 vc9 [local development environment, server database connected to the database. So where is the configuration incorrect? Or am I wrong? Ask for advice!

Reply content:

Server Operating System: Windows Server 2003
Php vc6 5.3
Database: SQL server 2008

Assume that table A contains four fields (id, name, content, and flag). When the content length is too long, this record cannot be found. Php code is written in this way.

$ Stmt = sqlsrv_query ($ SQL); $ rs = array (); where ($ res = sqlsrv_fetch_array ($ stmt) {$ rs [] = $ res ;}

$ Rs returned is null.

However, the same code can be queried on php 5.4 vc9 [local development environment, server database connected to the database. So where is the configuration incorrect? Or am I wrong? Ask for advice!

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.