there are same problem with VARBINARY, if you are forced to use existing database with such fields you can do it like this:
SELECT CAST(master.dbo.fn_varbintohexstr(VARBINARYFIELD) AS TEXT) FROM table;
mssql_field_length
(PHP 4, PHP 5, PECL odbtp:1.1.1-1.1.4)
mssql_field_length — Restituisce la lunghezza di un campo
Descrizione
int mssql_field_length
( resource $id_risultato
[, int $offset
] )
Questa funzione restituisce il valore del campo numero offset dalla query indicata da result . Se si omette offset la funzione resituisce il valore per il campo corrente.
Nota: Nota per gli utenti Win32 A causa delle limitazione delle sottostanti API utilizzate dal PHP (MS DbLib C API), la lunghezza dei campi VARCHAR è limitata a 255. Se si ha necessità di memorizzare maggiori informazioni, utilizzare il tipo TEXT
mssql_field_length
zz(lost dot childz at gmail dot com)
31-Oct-2007 03:11
31-Oct-2007 03:11
09-Feb-2005 01:26
You can also work around this limitation with the following:
-- for example, with MyVarCharField VARCHAR(1000)
SELECT CAST(MyVarCharField AS TEXT) FROM MyTable
