<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
		>
<channel>
	<title>Comments on: SQL SERVER &#8211; 2005 Constraint on VARCHAR(MAX) Field To Limit It Certain Length</title>
	<atom:link href="http://blog.sqlauthority.com/2007/06/01/sql-server-2005-constraint-on-varcharmax-field-to-limit-it-certain-length/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.sqlauthority.com/2007/06/01/sql-server-2005-constraint-on-varcharmax-field-to-limit-it-certain-length/</link>
	<description>Notes of a SQL Server MVP and Database Administrator</description>
	<lastBuildDate>Sun, 21 Mar 2010 03:48:32 +0000</lastBuildDate>
	<generator>http://wordpress.com/</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Madhivanan</title>
		<link>http://blog.sqlauthority.com/2007/06/01/sql-server-2005-constraint-on-varcharmax-field-to-limit-it-certain-length/#comment-62403</link>
		<dc:creator>Madhivanan</dc:creator>
		<pubDate>Mon, 08 Mar 2010 10:44:54 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/06/01/sql-server-2005-constraint-on-varcharmax-field-to-limit-it-certain-length/#comment-62403</guid>
		<description>Your question is not very clear?
Can you give more informations?</description>
		<content:encoded><![CDATA[<p>Your question is not very clear?<br />
Can you give more informations?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Madhivanan</title>
		<link>http://blog.sqlauthority.com/2007/06/01/sql-server-2005-constraint-on-varcharmax-field-to-limit-it-certain-length/#comment-62402</link>
		<dc:creator>Madhivanan</dc:creator>
		<pubDate>Mon, 08 Mar 2010 10:44:06 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/06/01/sql-server-2005-constraint-on-varcharmax-field-to-limit-it-certain-length/#comment-62402</guid>
		<description>Read about Maximum Capacity Specifications in SQL Server help file</description>
		<content:encoded><![CDATA[<p>Read about Maximum Capacity Specifications in SQL Server help file</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Madhivanan</title>
		<link>http://blog.sqlauthority.com/2007/06/01/sql-server-2005-constraint-on-varcharmax-field-to-limit-it-certain-length/#comment-62400</link>
		<dc:creator>Madhivanan</dc:creator>
		<pubDate>Mon, 08 Mar 2010 10:38:34 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/06/01/sql-server-2005-constraint-on-varcharmax-field-to-limit-it-certain-length/#comment-62400</guid>
		<description>use varchar(max)</description>
		<content:encoded><![CDATA[<p>use varchar(max)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Madhivanan</title>
		<link>http://blog.sqlauthority.com/2007/06/01/sql-server-2005-constraint-on-varcharmax-field-to-limit-it-certain-length/#comment-62399</link>
		<dc:creator>Madhivanan</dc:creator>
		<pubDate>Mon, 08 Mar 2010 10:37:14 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/06/01/sql-server-2005-constraint-on-varcharmax-field-to-limit-it-certain-length/#comment-62399</guid>
		<description>You need to set the compatibility of the database to 90</description>
		<content:encoded><![CDATA[<p>You need to set the compatibility of the database to 90</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Madhivanan</title>
		<link>http://blog.sqlauthority.com/2007/06/01/sql-server-2005-constraint-on-varcharmax-field-to-limit-it-certain-length/#comment-62397</link>
		<dc:creator>Madhivanan</dc:creator>
		<pubDate>Mon, 08 Mar 2010 10:34:54 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/06/01/sql-server-2005-constraint-on-varcharmax-field-to-limit-it-certain-length/#comment-62397</guid>
		<description>sys.sysconstraints or information_schema. table_constraints.</description>
		<content:encoded><![CDATA[<p>sys.sysconstraints or information_schema. table_constraints.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Madhivanan</title>
		<link>http://blog.sqlauthority.com/2007/06/01/sql-server-2005-constraint-on-varcharmax-field-to-limit-it-certain-length/#comment-62394</link>
		<dc:creator>Madhivanan</dc:creator>
		<pubDate>Mon, 08 Mar 2010 10:31:50 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/06/01/sql-server-2005-constraint-on-varcharmax-field-to-limit-it-certain-length/#comment-62394</guid>
		<description>What does this give?

select len(@var)</description>
		<content:encoded><![CDATA[<p>What does this give?</p>
<p>select len(@var)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Madhivanan</title>
		<link>http://blog.sqlauthority.com/2007/06/01/sql-server-2005-constraint-on-varcharmax-field-to-limit-it-certain-length/#comment-62392</link>
		<dc:creator>Madhivanan</dc:creator>
		<pubDate>Mon, 08 Mar 2010 10:28:28 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/06/01/sql-server-2005-constraint-on-varcharmax-field-to-limit-it-certain-length/#comment-62392</guid>
		<description>set the compatibility of the database to 90 and try</description>
		<content:encoded><![CDATA[<p>set the compatibility of the database to 90 and try</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Madhivanan</title>
		<link>http://blog.sqlauthority.com/2007/06/01/sql-server-2005-constraint-on-varcharmax-field-to-limit-it-certain-length/#comment-62390</link>
		<dc:creator>Madhivanan</dc:creator>
		<pubDate>Mon, 08 Mar 2010 10:25:59 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/06/01/sql-server-2005-constraint-on-varcharmax-field-to-limit-it-certain-length/#comment-62390</guid>
		<description>There is no such way to do it directly</description>
		<content:encoded><![CDATA[<p>There is no such way to do it directly</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Madhivanan</title>
		<link>http://blog.sqlauthority.com/2007/06/01/sql-server-2005-constraint-on-varcharmax-field-to-limit-it-certain-length/#comment-62388</link>
		<dc:creator>Madhivanan</dc:creator>
		<pubDate>Mon, 08 Mar 2010 10:24:46 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/06/01/sql-server-2005-constraint-on-varcharmax-field-to-limit-it-certain-length/#comment-62388</guid>
		<description>select top 10 salary from table
order by salary desc</description>
		<content:encoded><![CDATA[<p>select top 10 salary from table<br />
order by salary desc</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Madhivanan</title>
		<link>http://blog.sqlauthority.com/2007/06/01/sql-server-2005-constraint-on-varcharmax-field-to-limit-it-certain-length/#comment-62387</link>
		<dc:creator>Madhivanan</dc:creator>
		<pubDate>Mon, 08 Mar 2010 10:23:59 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/06/01/sql-server-2005-constraint-on-varcharmax-field-to-limit-it-certain-length/#comment-62387</guid>
		<description>Check the compatibility of the database. If it is less than 90, change it to 90</description>
		<content:encoded><![CDATA[<p>Check the compatibility of the database. If it is less than 90, change it to 90</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Madhivanan</title>
		<link>http://blog.sqlauthority.com/2007/06/01/sql-server-2005-constraint-on-varcharmax-field-to-limit-it-certain-length/#comment-62386</link>
		<dc:creator>Madhivanan</dc:creator>
		<pubDate>Mon, 08 Mar 2010 10:22:42 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/06/01/sql-server-2005-constraint-on-varcharmax-field-to-limit-it-certain-length/#comment-62386</guid>
		<description>Generate the script of the table and modify it accordingly</description>
		<content:encoded><![CDATA[<p>Generate the script of the table and modify it accordingly</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Madhivanan</title>
		<link>http://blog.sqlauthority.com/2007/06/01/sql-server-2005-constraint-on-varcharmax-field-to-limit-it-certain-length/#comment-62383</link>
		<dc:creator>Madhivanan</dc:creator>
		<pubDate>Mon, 08 Mar 2010 10:18:52 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/06/01/sql-server-2005-constraint-on-varcharmax-field-to-limit-it-certain-length/#comment-62383</guid>
		<description>It is becuase you are using version prior to 2005. Varchar(max) is supported from version 2005</description>
		<content:encoded><![CDATA[<p>It is becuase you are using version prior to 2005. Varchar(max) is supported from version 2005</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Yogesh</title>
		<link>http://blog.sqlauthority.com/2007/06/01/sql-server-2005-constraint-on-varcharmax-field-to-limit-it-certain-length/#comment-54726</link>
		<dc:creator>Yogesh</dc:creator>
		<pubDate>Tue, 11 Aug 2009 08:44:22 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/06/01/sql-server-2005-constraint-on-varcharmax-field-to-limit-it-certain-length/#comment-54726</guid>
		<description>Hello Sir,

How the SQL server work around MAX(VARCHAR).

Yogesh.</description>
		<content:encoded><![CDATA[<p>Hello Sir,</p>
<p>How the SQL server work around MAX(VARCHAR).</p>
<p>Yogesh.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Qwery</title>
		<link>http://blog.sqlauthority.com/2007/06/01/sql-server-2005-constraint-on-varcharmax-field-to-limit-it-certain-length/#comment-53630</link>
		<dc:creator>Qwery</dc:creator>
		<pubDate>Sat, 11 Jul 2009 10:59:19 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/06/01/sql-server-2005-constraint-on-varcharmax-field-to-limit-it-certain-length/#comment-53630</guid>
		<description>Hi. How many fields we can insert a table on sql 2005?</description>
		<content:encoded><![CDATA[<p>Hi. How many fields we can insert a table on sql 2005?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: vytas</title>
		<link>http://blog.sqlauthority.com/2007/06/01/sql-server-2005-constraint-on-varcharmax-field-to-limit-it-certain-length/#comment-53278</link>
		<dc:creator>vytas</dc:creator>
		<pubDate>Fri, 26 Jun 2009 15:33:13 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/06/01/sql-server-2005-constraint-on-varcharmax-field-to-limit-it-certain-length/#comment-53278</guid>
		<description>Karthik&gt; up to 2 GB. You can find this info in MSDN, stupid.</description>
		<content:encoded><![CDATA[<p>Karthik&gt; up to 2 GB. You can find this info in MSDN, stupid.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Karthik</title>
		<link>http://blog.sqlauthority.com/2007/06/01/sql-server-2005-constraint-on-varcharmax-field-to-limit-it-certain-length/#comment-52711</link>
		<dc:creator>Karthik</dc:creator>
		<pubDate>Wed, 03 Jun 2009 23:12:52 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/06/01/sql-server-2005-constraint-on-varcharmax-field-to-limit-it-certain-length/#comment-52711</guid>
		<description>Sir,

I want to know the Maximum Sizes each of these Data Type can occupy(in terms of bytes)
VARCHAR(MAX)
NVARCHAR(MAX)
NVARBINARY(MAX)
IMAGE

I am confused!!! can you please help me out ?

Thanks</description>
		<content:encoded><![CDATA[<p>Sir,</p>
<p>I want to know the Maximum Sizes each of these Data Type can occupy(in terms of bytes)<br />
VARCHAR(MAX)<br />
NVARCHAR(MAX)<br />
NVARBINARY(MAX)<br />
IMAGE</p>
<p>I am confused!!! can you please help me out ?</p>
<p>Thanks</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Kunal</title>
		<link>http://blog.sqlauthority.com/2007/06/01/sql-server-2005-constraint-on-varcharmax-field-to-limit-it-certain-length/#comment-51840</link>
		<dc:creator>Kunal</dc:creator>
		<pubDate>Wed, 13 May 2009 16:57:56 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/06/01/sql-server-2005-constraint-on-varcharmax-field-to-limit-it-certain-length/#comment-51840</guid>
		<description>What are the limitation of varchar(MAX) in sql server 2005 ???</description>
		<content:encoded><![CDATA[<p>What are the limitation of varchar(MAX) in sql server 2005 ???</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Riti</title>
		<link>http://blog.sqlauthority.com/2007/06/01/sql-server-2005-constraint-on-varcharmax-field-to-limit-it-certain-length/#comment-48019</link>
		<dc:creator>Riti</dc:creator>
		<pubDate>Wed, 04 Mar 2009 12:20:52 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/06/01/sql-server-2005-constraint-on-varcharmax-field-to-limit-it-certain-length/#comment-48019</guid>
		<description>Hello,

I need to declare a variable with Varchar of size 12000 in stored procedure. But in SQL Server it gives me 8000 only as the extreme limit. So how can I increase that upto 12000.

help me please.


Regards
~ riti</description>
		<content:encoded><![CDATA[<p>Hello,</p>
<p>I need to declare a variable with Varchar of size 12000 in stored procedure. But in SQL Server it gives me 8000 only as the extreme limit. So how can I increase that upto 12000.</p>
<p>help me please.</p>
<p>Regards<br />
~ riti</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: SQLAuthority News - Best Articles on SQLAuthority.com Journey to SQL Authority with Pinal Dave</title>
		<link>http://blog.sqlauthority.com/2007/06/01/sql-server-2005-constraint-on-varcharmax-field-to-limit-it-certain-length/#comment-47217</link>
		<dc:creator>SQLAuthority News - Best Articles on SQLAuthority.com Journey to SQL Authority with Pinal Dave</dc:creator>
		<pubDate>Tue, 24 Feb 2009 12:08:55 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/06/01/sql-server-2005-constraint-on-varcharmax-field-to-limit-it-certain-length/#comment-47217</guid>
		<description>[...] SQL SERVER - 2005 Constraint on VARCHAR(MAX) Field To Limit It Certain Length [...]</description>
		<content:encoded><![CDATA[<p>[...] SQL SERVER &#8211; 2005 Constraint on VARCHAR(MAX) Field To Limit It Certain Length [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: sanjay</title>
		<link>http://blog.sqlauthority.com/2007/06/01/sql-server-2005-constraint-on-varcharmax-field-to-limit-it-certain-length/#comment-46472</link>
		<dc:creator>sanjay</dc:creator>
		<pubDate>Mon, 09 Feb 2009 10:17:32 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/06/01/sql-server-2005-constraint-on-varcharmax-field-to-limit-it-certain-length/#comment-46472</guid>
		<description>Hello  Sir
my problem is: i enter the text in sql 2005. but some tile text cross the 8000 char which is max one.

so i got error of data truncation

how i solve this problem</description>
		<content:encoded><![CDATA[<p>Hello  Sir<br />
my problem is: i enter the text in sql 2005. but some tile text cross the 8000 char which is max one.</p>
<p>so i got error of data truncation</p>
<p>how i solve this problem</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: ramiya</title>
		<link>http://blog.sqlauthority.com/2007/06/01/sql-server-2005-constraint-on-varcharmax-field-to-limit-it-certain-length/#comment-43360</link>
		<dc:creator>ramiya</dc:creator>
		<pubDate>Mon, 29 Sep 2008 06:45:42 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/06/01/sql-server-2005-constraint-on-varcharmax-field-to-limit-it-certain-length/#comment-43360</guid>
		<description>Hi All,

i  am in doubt whether the constraints are stored in sys_objects or information_schema. table_constraints.

please help me out.</description>
		<content:encoded><![CDATA[<p>Hi All,</p>
<p>i  am in doubt whether the constraints are stored in sys_objects or information_schema. table_constraints.</p>
<p>please help me out.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mitesh</title>
		<link>http://blog.sqlauthority.com/2007/06/01/sql-server-2005-constraint-on-varcharmax-field-to-limit-it-certain-length/#comment-42053</link>
		<dc:creator>Mitesh</dc:creator>
		<pubDate>Tue, 26 Aug 2008 11:08:43 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/06/01/sql-server-2005-constraint-on-varcharmax-field-to-limit-it-certain-length/#comment-42053</guid>
		<description>Even I declare 

local Variable with VARCHAR(MAX)

its Given only 8000 As Output..

please Suggest.</description>
		<content:encoded><![CDATA[<p>Even I declare </p>
<p>local Variable with VARCHAR(MAX)</p>
<p>its Given only 8000 As Output..</p>
<p>please Suggest.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: ajay</title>
		<link>http://blog.sqlauthority.com/2007/06/01/sql-server-2005-constraint-on-varcharmax-field-to-limit-it-certain-length/#comment-35392</link>
		<dc:creator>ajay</dc:creator>
		<pubDate>Wed, 23 Apr 2008 11:42:06 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/06/01/sql-server-2005-constraint-on-varcharmax-field-to-limit-it-certain-length/#comment-35392</guid>
		<description>Hi,

I was trying to use this query and I’m getting an error stating incorrect syntax near MAX. Please help me out with this as I’m trying to pass some text into the database with more than 12000 chars.

please send right qeury
on my email id i need it very ugently

Thanks and Regards,

ajay</description>
		<content:encoded><![CDATA[<p>Hi,</p>
<p>I was trying to use this query and I’m getting an error stating incorrect syntax near MAX. Please help me out with this as I’m trying to pass some text into the database with more than 12000 chars.</p>
<p>please send right qeury<br />
on my email id i need it very ugently</p>
<p>Thanks and Regards,</p>
<p>ajay</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Neil</title>
		<link>http://blog.sqlauthority.com/2007/06/01/sql-server-2005-constraint-on-varcharmax-field-to-limit-it-certain-length/#comment-34431</link>
		<dc:creator>Neil</dc:creator>
		<pubDate>Tue, 18 Mar 2008 20:27:57 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/06/01/sql-server-2005-constraint-on-varcharmax-field-to-limit-it-certain-length/#comment-34431</guid>
		<description>Hi !
Can you help me please ?

I had to change our database (not empty) collation from French_CI_AS to SQL_Latin1_General_CP850_CI_AI. 

:  Database\Properties\Options\Collation. Change it !

 After doing this, i noticed that only data on fields with &quot;varchar(max) &quot; type were truncated.
Like, even if i put 100 characters by the interface, no problem but only 12 characters are really saved in the database. Troncation happens only on these types of fiels et always the same number of characters 12

Can anyone knows why and how avoid this ?

Thank you very much and sorry, i do not speak english very well :(</description>
		<content:encoded><![CDATA[<p>Hi !<br />
Can you help me please ?</p>
<p>I had to change our database (not empty) collation from French_CI_AS to SQL_Latin1_General_CP850_CI_AI. </p>
<p>:  Database\Properties\Options\Collation. Change it !</p>
<p> After doing this, i noticed that only data on fields with &#8220;varchar(max) &#8221; type were truncated.<br />
Like, even if i put 100 characters by the interface, no problem but only 12 characters are really saved in the database. Troncation happens only on these types of fiels et always the same number of characters 12</p>
<p>Can anyone knows why and how avoid this ?</p>
<p>Thank you very much and sorry, i do not speak english very well :(</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Nirav Dave</title>
		<link>http://blog.sqlauthority.com/2007/06/01/sql-server-2005-constraint-on-varcharmax-field-to-limit-it-certain-length/#comment-26541</link>
		<dc:creator>Nirav Dave</dc:creator>
		<pubDate>Mon, 17 Dec 2007 09:54:05 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/06/01/sql-server-2005-constraint-on-varcharmax-field-to-limit-it-certain-length/#comment-26541</guid>
		<description>hello sir,
i want to use MAX function in insert query, how can i do that?

insert into xyz(id,name) values(max(id),&#039;nirav dave&#039;)

i want to use max(id) in insert query coz i don&#039;t want to fire special query to find max number of id,

plz. help me.</description>
		<content:encoded><![CDATA[<p>hello sir,<br />
i want to use MAX function in insert query, how can i do that?</p>
<p>insert into xyz(id,name) values(max(id),&#8217;nirav dave&#8217;)</p>
<p>i want to use max(id) in insert query coz i don&#8217;t want to fire special query to find max number of id,</p>
<p>plz. help me.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
