Wrox Home  
Search P2P Archive for: Go

  Return to Index  

aspx_professional thread: Get DataReader After An Error Happens In Stored Proc


Message #1 by "Mansoor Shahi" <ma_s_m@y...> on Sun, 25 Aug 2002 07:26:23
CREATE PROCEDURE My_SP

AS

Delete * From T1//This line make an error because of this table has 
primary key related to the other table T2

IF @@ERROR <> 0
BEGIN
An Error has occured.....
Select Statement.....
END
ELSE
BEGIN
No Error Occured.....
Select Statement.....
END

GO

  Return to Index