Dear Sir,
I am very tried. I have upgraded from Sql Server 2000 to 2005 Now I am using below the commands
BEGIN TRY
SELECT 1/0
END TRY
BEGIN CATCH
END CATCH;
GO
But got error:
Msg 170, Level 15, State 1, Line 1
Line 1: Incorrect syntax near 'TRY'.
Msg 156, Level 15, State 1, Line 3
Incorrect syntax near the keyword 'END'.
It seems to me that the keyword TRY is not recognized.
Database compatibility leve80
There I have not got any solution.
Please help me.
Thanking You
Debasis Bag