Question : Substr - Not recognized function, alternative string?

Hi, I have the below statement:

Select Description, substr(Description,1,2) From Activity

But I am getting the following error:

Server: Msg 195, Level 15, State 10, Line 1
'substr' is not a recognized function name.

This works fine in TOAD but not in SQL Query Analyzer, how do I get round this?

Answer : Substr - Not recognized function, alternative string?

SUBSTRING(Description, 1, 2)
Random Solutions  
 
programming4us programming4us