Click here to Skip to main content
15,880,967 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
iam having ntext column in my database
that store uniqueidentifier value seprated with ,
so i create function to split this ntext value in local table which each row have 1 uniqueidentifer value
but i have error when i try to create local variable of type ntext

The text, ntext, and image data types are invalid for local variables
i need any help to solve my problem
Posted

1 solution

Do you really need ntext? It can really be a pain... If 4000 characters is enough for you in the field, then I suggest that you use nvarchar instead.

Another point. Your post sounds like the unique identifier is some kind of custom identifier and it actually has a meaning. If it is some kind of concatenation from data, I'd suggest that you would use real unique identifiers instead => keys that are unique but the data doesn't have a meaning, the only purpose is that it's unique. For more info see: http://msdn.microsoft.com/en-us/library/ms187942.aspx[^]
 
Share this answer
 
Comments
thatraja 14-Aug-11 13:24pm    
Agree, 5!
Wendelius 14-Aug-11 13:38pm    
Thanks :)

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900