Stored Procedure and ADO.net Begin Transaction Code 
Author Message
 Stored Procedure and ADO.net Begin Transaction Code

Is it possible to put stored procedure calls into the Transaction Code
option instead of Insert statements using the BeginTransaction code for
ADO.net ?
 I have some pretty large transactions so I am concerned with speed and
reliablity.

 For example instead of building the "insert into statement" into the
BeginTransaction
and then doing an .ExecuteScaler, Is it possible put the stored procedure
there and
then ExecureScaler for each stored procedure.

Now If there is an error should i , raise the error in the store procedure
and roll back the transaction via the
vb code or do i roll back the transaction inside the stored procedure and
fail out of the vb code?

Any help with this would be greatly appriciated.

Eric



Sat, 06 Aug 2005 06:38:18 GMT  
 Stored Procedure and ADO.net Begin Transaction Code
See the BeginTransaction topic in the help file (there's also a quick
start tutorial on it i believe). However, you may find it more
efficient to implement your transactions in T-SQL inside of the stored
procedure(s), in which case see the Explicit Transactions topic in SQL
BooksOnline.

-- Mary
MCW Technologies
http://www.mcwtech.com

On Mon, 17 Feb 2003 16:38:18 -0600, "Eric John Seneca"

Quote:

>Is it possible to put stored procedure calls into the Transaction Code
>option instead of Insert statements using the BeginTransaction code for
>ADO.net ?
> I have some pretty large transactions so I am concerned with speed and
>reliablity.

> For example instead of building the "insert into statement" into the
>BeginTransaction
>and then doing an .ExecuteScaler, Is it possible put the stored procedure
>there and
>then ExecureScaler for each stored procedure.

>Now If there is an error should i , raise the error in the store procedure
>and roll back the transaction via the
>vb code or do i roll back the transaction inside the stored procedure and
>fail out of the vb code?

>Any help with this would be greatly appriciated.

>Eric



Sun, 07 Aug 2005 03:13:20 GMT  
 
 [ 2 post ] 

 Relevant Pages 

1. VB.Net => Ado.Net = Stored Procedure

2. ado recordsets from stored procedures, stored procedures have input parameters

3. ado.net to sql server store procedure

4. How to execute a Stored Procedure using ADO.Net

5. Error beginning first transaction with Vb+Ado+Sql7

6. ADO Begin/Commit Transactions

7. Error beginning first transaction with Vb+Ado+Sql7

8. ADO - Getting Stored Procedure Return codes

9. Calling a stored procedure in DB2 using ADO code Sample

10. FOUND: MS VB Add-In: ADO Stored Procedure Code Wizard

11. Generate ASP, ADO and VB code from SQL Stored Procedures with TierBuilder V2.1

12. ASP.net VB.Net Stored Procedures in SQL Server

 

 
Powered by phpBB® Forum Software