Re: Store Proc Question
From: David Portas (REMOVE_BEFORE_REPLYING_dportas_at_acm.org)
Date: 11/09/04
- Next message: Sue Hoegemeier: "Re: DB Statistics"
- Previous message: Rick Knight: "Replication Problems from Subscriber to Publisher."
- In reply to: Vic: "Store Proc Question"
- Messages sorted by: [ date ] [ thread ]
Date: Tue, 9 Nov 2004 23:20:33 -0000
CREATE PROC usp_foo
AS
BEGIN TRAN
INSERT ...
IF @@ERROR <> 0 GOTO err
UPDATE ...
IF @@ERROR <> 0 GOTO err
COMMIT TRAN
SELECT ...
GOTO done
err:
ROLLBACK TRAN
done:
RETURN
-- David Portas SQL Server MVP --
- Next message: Sue Hoegemeier: "Re: DB Statistics"
- Previous message: Rick Knight: "Replication Problems from Subscriber to Publisher."
- In reply to: Vic: "Store Proc Question"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|
|