Re: multiple SP within transaction
From: Wayne Snyder (wayne.nospam.snyder_at_mariner-usa.com)
Date: 10/14/04
- Next message: Wayne Snyder: "Re: Syntax To Call SP"
- Previous message: hari kumar: "RE: Find missing row"
- In reply to: Leon: "multiple SP within transaction"
- Next in thread: Leon: "Re: multiple SP within transaction"
- Reply: Leon: "Re: multiple SP within transaction"
- Messages sorted by: [ date ] [ thread ]
Date: Thu, 14 Oct 2004 08:24:34 -0400
A transaction can span multiple batches, and multiple stored procedures.
Parameters are passed in the standard manner, there is no difference when
using a transaction.
ie
begin tran
exec sp1
exec sp2
commit tran
of course you need to do error checking.
-- Wayne Snyder, MCDBA, SQL Server MVP Mariner, Charlotte, NC www.mariner-usa.com (Please respond only to the newsgroups.) I support the Professional Association of SQL Server (PASS) and it's community of SQL Server professionals. www.sqlpass.org "Leon" <vnality@msn.com> wrote in message news:elgd1XesEHA.3320@TK2MSFTNGP15.phx.gbl... > How can I run two or more stored procedures within a transaction? > > Do I create each stored procedure separately then create another > stored procedure that execute them within a transaction? if so > how would I pass values to each parameter? > > Thanks > > >
- Next message: Wayne Snyder: "Re: Syntax To Call SP"
- Previous message: hari kumar: "RE: Find missing row"
- In reply to: Leon: "multiple SP within transaction"
- Next in thread: Leon: "Re: multiple SP within transaction"
- Reply: Leon: "Re: multiple SP within transaction"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|