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 2000 Forums
 SQL Server Development (2000)
 ntext len

Author  Topic 

pelegk2
Aged Yak Warrior

723 Posts

Posted - 2008-07-14 : 11:05:46
i want to check if a value of ntext type is empty :

declare @x1 NTEXT
set @x1=''

if i want to use LEN() or to check that @x1='' its not possible!
what else can i do?
thnaks
peleg

Israel -the best place to live in aftr heaven 9but no one wan't to go there so fast -:)

khtan
In (Som, Ni, Yak)

17689 Posts

Posted - 2008-07-14 : 11:08:06
quote:
Originally posted by pelegk2


declare @x1 NTEXT





You can't declare a variable with ntext


KH
[spoiler]Time is always against us[/spoiler]

Go to Top of Page

pelegk2
Aged Yak Warrior

723 Posts

Posted - 2008-07-14 : 11:47:19
i know i just want to give example
i actually recive it in a stored procedure



thanks
peleg


Israel -the best place to live in aftr heaven 9but no one wan't to go there so fast -:)
Go to Top of Page

RyanRandall
Master Smack Fu Yak Hacker

1074 Posts

Posted - 2008-07-14 : 11:58:01
Try using datalength()..

Ryan Randall
Solutions are easy. Understanding the problem, now, that's the hard part.
Go to Top of Page

pelegk2
Aged Yak Warrior

723 Posts

Posted - 2008-07-15 : 01:46:29
10X:)

Israel -the best place to live in aftr heaven 9but no one wan't to go there so fast -:)
Go to Top of Page
   

- Advertisement -