Freebsdphp5.3pdo _ odbc query sqlservervarchar text type not displayed

Source: Internet
Author: User
Tags driver manager
Freebsdphp5.3pdo _ odbc query sqlservervarchar text type does not show this post is Last edited by jingyanlei at 2013-08-211:42:55 varchar cannot be greater than 255 & nbsp; text is not displayed directly, php has changed to the same version. in Windows freebsd php5.3 pdo_odbc, Querying SQL server varchar text type is not displayed.
The varchar edited by jingyanlei at 14:42:55 cannot be greater than 255 text and is not displayed directly. php versions are the same, and the query is normal in the win environment.
Code:
$ Conn = new PDO ("odbc: s_test_33", 'sa ', 'sa ');
$ Conn-> setAttribute (PDO: ATTR_CASE, PDO: CASE_UPPER );
$ Conn-> query ('set TEXTSIZE 3145728 ');
// Query data
$ SQL = 'SELECT top 6 * from dbo. b1 ';
// $ Stmt = $ conn-> query ($ SQL );
$ Stmt = $ conn-> prepare ($ SQL );
$ Stmt-> execute ();
Var_dump ($ stmt );
$ Result = $ stmt-> fetchAll (PDO: FETCH_ASSOC );
Print_r ($ result );
Error:
Array
(
[0] => SL009
[1] => 0
[2] => [unixODBC] [Driver Manager] No columns were bound prior to calling SQLFetch or SQLFetchScroll (SQLFetchScroll [0] at/usr/ports/databases/php53-pdo_odbc/work/php-5.3.27 /ext/pdo_odbc/odbc_stmt.c: 537)
[3] => SL009
) Free FreeBSD pdo SQL? Server odbc shared:
------ Solution --------------------
This problem is well solved. I will tell you privately
Related Article

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.