dbTalk Databases Forums  

Image , text , ntext..

microsoft.public.sqlserver.clients microsoft.public.sqlserver.clients


Discuss Image , text , ntext.. in the microsoft.public.sqlserver.clients forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Rogers
 
Posts: n/a

Default Image , text , ntext.. - 10-06-2006 , 01:47 PM






Is there any way I can comapre the new value of text, ntext and image with
the existing text, ntext and image column value. I have to do validation if
that text is not exist then it should inserted otherwise not..

Anyway I can do this validation?

Thanks in advance.



Reply With Quote
  #2  
Old   
Amit Basu
 
Posts: n/a

Default RE: Image , text , ntext.. - 10-13-2006 , 09:16 AM






Hello,
You may check for NULL but cannot compare the values.
Example:
SELECT * FROM SomeTable WHERE TextColumn IS NULL

Hope that helps.
Amit Basu

"Rogers" wrote:

Quote:
Is there any way I can comapre the new value of text, ntext and image with
the existing text, ntext and image column value. I have to do validation if
that text is not exist then it should inserted otherwise not..

Anyway I can do this validation?

Thanks in advance.




Reply With Quote
  #3  
Old   
Amit Basu
 
Posts: n/a

Default RE: Image , text , ntext.. - 10-13-2006 , 09:17 AM



Hello,
You may check for NULL but cannot compare the values.
Example:
SELECT * FROM SomeTable WHERE TextColumn IS NULL

Hope that helps.
Amit Basu

"Rogers" wrote:

Quote:
Is there any way I can comapre the new value of text, ntext and image with
the existing text, ntext and image column value. I have to do validation if
that text is not exist then it should inserted otherwise not..

Anyway I can do this validation?

Thanks in advance.




Reply With Quote
  #4  
Old   
Amit Basu
 
Posts: n/a

Default RE: Image , text , ntext.. - 10-13-2006 , 09:18 AM



Hello,

You can check for existence of data only and not compare values like:

select * from SomeTable where TextColumn is null

Hope that helps.

Amit Basu

"Rogers" wrote:

Quote:
Is there any way I can comapre the new value of text, ntext and image with
the existing text, ntext and image column value. I have to do validation if
that text is not exist then it should inserted otherwise not..

Anyway I can do this validation?

Thanks in advance.




Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.