<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://forums.asp.net/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>SQL Server, SQL Server Express, and SqlDataSource Control</title><link>http://forums.asp.net/54.aspx</link><description>All about SQL Server, SQL Server Express, MSDE, and the SqlDataSource control.</description><dc:language>en</dc:language><generator>CommunityServer 2007 SP1 (Build: 20510.895)</generator><item><title>Re: ntext over 4000 chars causes 'Data in row (n) was not update... string or binary data would be truncated...'</title><link>http://forums.asp.net/thread/1434526.aspx</link><pubDate>Thu, 19 Oct 2006 20:14:43 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:1434526</guid><dc:creator>Motley</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/1434526.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=54&amp;PostID=1434526</wfw:commentRss><description>&lt;p&gt;&lt;BLOCKQUOTE&gt;&lt;div&gt;&lt;img src="/Themes/fan/images/icon-quote.gif"&gt; &lt;strong&gt;Philotech:&lt;/strong&gt;&lt;/div&gt;&lt;div&gt;I am making the changes directly in SSMS, so the application has nothing to do with the problem.&lt;/div&gt;&lt;/BLOCKQUOTE&gt;&lt;/p&gt;&lt;p&gt;Well, SSMS doesn&amp;#39;t allow you to make changes to or insert data larger than 4,000 characters into a ntext column.&lt;/p&gt;&lt;p&gt;As for your application, please see my original post above.&lt;/p&gt;</description></item><item><title>Re: ntext over 4000 chars causes 'Data in row (n) was not update... string or binary data would be truncated...'</title><link>http://forums.asp.net/thread/1434451.aspx</link><pubDate>Thu, 19 Oct 2006 19:06:38 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:1434451</guid><dc:creator>donkiely</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/1434451.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=54&amp;PostID=1434451</wfw:commentRss><description>&lt;blockquote&gt;&lt;div&gt;&lt;img src="http://forums.asp.net/Themes/default/images/icon-quote.gif" /&gt; &lt;strong&gt;Motley:&lt;/strong&gt;&lt;/div&gt;&lt;div&gt;&lt;p&gt;Donkiely&amp;#39;s solution is incorrect.&lt;/p&gt;&lt;p&gt;Text in row does not do what you&amp;#39;ve claimed.&amp;nbsp; It does not force the text into the row, it only allows it to be in the row if it will fit (or it forces it out even with it set to store in row).&lt;/p&gt;&lt;p&gt;The problem is more likely that the parameters are being declared as either the wrong type (Or not declaring the type at all, and letting it default).&amp;nbsp; Make sure your ntext parameters are declared as such.&lt;/p&gt;&lt;/div&gt;&lt;/blockquote&gt;&lt;p&gt;D&amp;#39;oh. You&amp;#39;re right. I forgot that it just stores the data outside of the row if it doesn&amp;#39;t fit, even if you&amp;#39;ve specified it.&lt;/p&gt;&lt;p&gt;So, once again, we need to see the code as I&amp;#39;ve asked for. Even if you&amp;#39;re inserting the data in SSMS, how &lt;em&gt;exactly&lt;/em&gt; are you doing it? And what is the table strucutre?&lt;/p&gt;&lt;p&gt;Don&amp;nbsp;&lt;/p&gt;</description></item><item><title>Re: ntext over 4000 chars causes 'Data in row (n) was not update... string or binary data would be truncated...'</title><link>http://forums.asp.net/thread/1434369.aspx</link><pubDate>Thu, 19 Oct 2006 17:59:40 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:1434369</guid><dc:creator>Philotech</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/1434369.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=54&amp;PostID=1434369</wfw:commentRss><description>I am making the changes directly in SSMS, so the application has nothing to do with the problem.</description></item><item><title>Re: ntext over 4000 chars causes 'Data in row (n) was not update... string or binary data would be truncated...'</title><link>http://forums.asp.net/thread/1434360.aspx</link><pubDate>Thu, 19 Oct 2006 17:54:06 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:1434360</guid><dc:creator>Motley</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/1434360.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=54&amp;PostID=1434360</wfw:commentRss><description>&lt;p&gt;Donkiely&amp;#39;s solution is incorrect.&lt;/p&gt;&lt;p&gt;Text in row does not do what you&amp;#39;ve claimed.&amp;nbsp; It does not force the text into the row, it only allows it to be in the row if it will fit (or it forces it out even with it set to store in row).&lt;/p&gt;&lt;p&gt;The problem is more likely that the parameters are being declared as either the wrong type (Or not declaring the type at all, and letting it default).&amp;nbsp; Make sure your ntext parameters are declared as such.&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>Re: ntext over 4000 chars causes 'Data in row (n) was not update... string or binary data would be truncated...'</title><link>http://forums.asp.net/thread/1434279.aspx</link><pubDate>Thu, 19 Oct 2006 16:49:34 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:1434279</guid><dc:creator>donkiely</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/1434279.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=54&amp;PostID=1434279</wfw:commentRss><description>And your code?</description></item><item><title>Re: ntext over 4000 chars causes 'Data in row (n) was not update... string or binary data would be truncated...'</title><link>http://forums.asp.net/thread/1434190.aspx</link><pubDate>Thu, 19 Oct 2006 15:13:05 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:1434190</guid><dc:creator>Philotech</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/1434190.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=54&amp;PostID=1434190</wfw:commentRss><description>&lt;p&gt;This did not have any effect.&lt;/p&gt;&lt;p&gt;Can anyone forsee any problems with changing the ntext fields to nvarchar(max) in the live database? Also, I came across&amp;nbsp;sp_tableoption N&amp;#39;MyTable&amp;#39;, &amp;#39;large value types out of row&amp;#39;, &amp;#39;ON&amp;#39;, does this work for ntext also? sp_tableoption N&amp;#39;MyTable&amp;#39;, &amp;#39;text in row&amp;#39;, &amp;#39;OFF&amp;#39; did not do anything.&lt;/p&gt;&lt;p&gt;&amp;nbsp;Thanks&lt;/p&gt;</description></item><item><title>Re: ntext over 4000 chars causes 'Data in row (n) was not update... string or binary data would be truncated...'</title><link>http://forums.asp.net/thread/1432762.aspx</link><pubDate>Wed, 18 Oct 2006 14:34:56 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:1432762</guid><dc:creator>donkiely</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/1432762.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=54&amp;PostID=1432762</wfw:commentRss><description>&lt;p&gt;There are a few possible reasons for this, but the most likely is that you have the &lt;em&gt;text in row&lt;/em&gt; option set on for the table. This forces SQL Server to save the data inline, meaning that the length of the data for all columns in the row, including the ntext field, has to be under roughly 8K. Use this code to set it off:&lt;/p&gt;&lt;p&gt;sp_tableoption N&amp;#39;MyTable&amp;#39;, &amp;#39;text in row&amp;#39;, &amp;#39;OFF&amp;#39;&lt;/p&gt;&lt;p&gt;Check out BOL for the ntext data type, and pay attention to the text in row information for the subtleties of this feature..&lt;br /&gt;&lt;/p&gt;&lt;p&gt;It is also possible that somewhere along the line the data is being passed using a variable that has a smaller capacity than you think. If the text in row possiblity doesn&amp;#39;t bear any fruit, post the code you&amp;#39;re using to store the data, from the app through T-SQL.&lt;/p&gt;&lt;p&gt;Don&amp;nbsp;&lt;/p&gt;</description></item><item><title>ntext over 4000 chars causes 'Data in row (n) was not update... string or binary data would be truncated...'</title><link>http://forums.asp.net/thread/1432705.aspx</link><pubDate>Wed, 18 Oct 2006 13:26:17 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:1432705</guid><dc:creator>Philotech</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/1432705.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=54&amp;PostID=1432705</wfw:commentRss><description>&lt;p&gt;When I enter over 4000 chars in any ntext field in my SQL Server 2005 database (directly in the database and through the application) I get an error saying that the data could not be updated because string or binary data would be truncated.&lt;/p&gt;&lt;p&gt;Has anyone ever seen this? I cannot figure out what is causing it, ntext should be able to hold a lot more data that this...&lt;/p&gt;</description></item></channel></rss>