Using TEXT datatype in SQL
Working on SQL 2000, I would like to perform the following
Select @String = SUBSTRING(@String, @idx + DATALENGTH(@firstDelimiter)/ 2,LEN(@String))
NOTE: @String is a type TEXT , @FirstDelimiter is of type Varchar(4).
Why am I unable to run the above code? How do I perform the above instead?
Is the above equivalent to this below
SET @String = RIGHT(@String, LEN(@String) - (@FoundIndex + DATALENGTH(@FirstDelimeter) / 2))