Re: varchar size mssql

From: Date: Mon, 08 Mar 2004 17:14:23 +0000
Subject: Re: varchar size mssql
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-179782@lists.php.net to get a copy of this message
The problem is that I want to stick with standard SQL. I would assume that convert() is a MS SQL Server function, and, thus, not standard (will not work in other database formats). Did what you read mention why the data was being truncated? Perhaps if I knew why, then I could fix it. Jason Davidson wrote:
I read that the varchar size for ms sql is 8000 limit. i also read that someone having a problem with it getting truncated fixed his problem by using convert(text, $value) in the sql statement.. Jason
-- Regards, Ben Ramsey http://benramsey.com http://www.phpcommunity.org/wiki/People/BenRamsey

« previous php.general (#179782) next »