Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2005 Forums
 SQL Server Administration (2005)
 Varchar(max)!

Author  Topic 

coolerbob
Aged Yak Warrior

841 Posts

Posted - 2007-08-06 : 05:07:28
I've only just discovered this! Shame on me.
So this is the future? 268 thousand times more space without the headache of text columns (and not being able to use them as parameter types for long csv's) are finally a thing of the past? Could it be? http://www.sqlteam.com/forums/topic.asp?TOPIC_ID=66929

I only discovered it because I ran into a problem trying to create a trigger and so then I learnt that:
"SQL Server 2005 does not allow for text, ntext, or image column references in the inserted and deleted tables for AFTER triggers. However, these data types are included for backward compatibility purposes only. The preferred storage for large data is to use the varchar(max), nvarchar(max), and varbinary(max) data types. Both AFTER and INSTEAD OF triggers support varchar(max), nvarchar(max), and varbinary(max) data in the inserted and deleted tables."
http://msdn2.microsoft.com/en-us/library/ms191300.aspx

Has anyone experienced any problems converting over from text to varchar(max)?

spirit1
Cybernetic Yak Master

11752 Posts

Posted - 2007-08-06 : 05:59:14
none that i've seen

never used updateText but that probably doesn't work on varchars
_______________________________________________
Causing trouble since 1980
blog: http://weblogs.sqlteam.com/mladenp
Go to Top of Page
   

- Advertisement -