Sqlserver
 sql >> Teknologi Basis Data >  >> RDS >> Sqlserver

Mengapa kolom TEXT hanya mengembalikan 4096 byte?

Driver PHP Microsoft (untuk referensi):http://www .microsoft.com/en-us/download/details.aspx?id=20098

Tetapi jika Anda tidak ingin (atau tidak bisa) mengganti driver, dari situs ini :

You need to increase the maximum size of a text column to be returned from
SQL Server by PHP. You can do this with a simple SQL query:
    SET TEXTSIZE 2147483647

Which you can run with the following PHP (best run just after you make a
connection).
    mssql_query("SET TEXTSIZE 2147483647");

A better way to work around the issue is to change the "textlimit" and
"textsize" settings within php.ini, like so:
    mssql.textlimit = 2147483647
    mssql.textsize = 2147483647

Driver MSSQL Anda memotong teks. Jika Anda tidak dapat mengubah tipe data, driver, dll., ini akan memperbaiki masalah untuk Anda.




  1. Database
  2.   
  3. Mysql
  4.   
  5. Oracle
  6.   
  7. Sqlserver
  8.   
  9. PostgreSQL
  10.   
  11. Access
  12.   
  13. SQLite
  14.   
  15. MariaDB
  1. Bagaimana cara menulis kueri SQL untuk rentang tanggal dan waktu tertentu menggunakan SQL Server 2008?

  2. SQL Server AutoIncrement bervariasi berdasarkan nilai bidang lain

  3. Permintaan SQL untuk memilih tanggal di antara dua tanggal

  4. Lulus Kamus<string,int> ke Prosedur Tersimpan T-SQL

  5. ORDER BY DATE menampilkan NULLS terlebih dahulu kemudian tanggal terbaru