Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Comparing Long Text datatypes

Status
Not open for further replies.

MarkEmerson

Programmer
Jul 10, 2003
35
GB
Hi all,

I'm having a problem comparing two lots of text that is stored in a sql server db as long text datatypes.

All I want to do is a simple compare statement like:

---------------------------
If var1 <> var2 then
booTest = True
Else
booTest = False
End If
---------------------------

This works fine for varchar or char datatypes but it doesnt for long text. Any suggestions?
 
Sussed where I was getting the error - It wasnt the datatypes at all.

I am using a text editor to update text and then compare it against the old text. However when the text is displayed in the text editor it converts double spaces to single spaces. I've added a bit of code to eradicate this and al is right in the world again!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top