Re: multiple SP within transaction
From: Leon (vnality_at_msn.com)
Date: 10/14/04
- Next message: Justin Drennan: "Re: Kill"
- Previous message: Lolly: "modify data in oracle"
- In reply to: Wayne Snyder: "Re: multiple SP within transaction"
- Messages sorted by: [ date ] [ thread ]
Date: Thu, 14 Oct 2004 08:53:42 -0500
Could you please show me a quick example with the error checking included.
Thanks so much!
"Wayne Snyder" <wayne.nospam.snyder@mariner-usa.com> wrote in message
news:uikrEmesEHA.3148@TK2MSFTNGP10.phx.gbl...
>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: Justin Drennan: "Re: Kill"
- Previous message: Lolly: "modify data in oracle"
- In reply to: Wayne Snyder: "Re: multiple SP within transaction"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|