Home Forums SQL Server 7,2000 T-SQL Try Success RE: Try Success
saivko
SSC Eights!
Points: 898
More actions
December 16, 2009 at 8:26 am
#1093034
Oh thanks!
For 2000 I suppose I could just convert all T-SQL into an nvarchar @Sql and do this:
execute @SqlSuccess = sp_executesql @Sql
if (@SqlSuccess = 0)
begin
--success code
end
else
--fail code
Probably the best option?