Wrox Programmer Forums
Go Back   Wrox Programmer Forums > SQL Server > SQL Server 2000 > SQL Server 2000
|
SQL Server 2000 General discussion of Microsoft SQL Server -- for topics that don't fit in one of the more specific SQL Server forums. version 2000 only. There's a new forum for SQL Server 2005.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the SQL Server 2000 section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old March 3rd, 2004, 05:59 AM
Authorized User
 
Join Date: Jun 2003
Posts: 95
Thanks: 0
Thanked 0 Times in 0 Posts
Default Stored Procedures and transactions

I have been of the understanding that a Stored Procedure is contained in one Transaction when SQLServer is in autocommit mode. Lately I have wondered if I might be way of here.

Can anyone shed some light on this for me?

Thanks.

Gert
 
Old March 3rd, 2004, 07:43 AM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 839
Thanks: 0
Thanked 1 Time in 1 Post
Default

When SQL Server is in autocommit mode, which is the default when no explicit transaction has been created or specified, then each SQL statement is separately comitted or rolled back when it completes. If the statement completed successfully, it is committed; if it encounters any error, it is rolled back.

Jeff Mason
Custom Apps, Inc.
www.custom-apps.com





Similar Threads
Thread Thread Starter Forum Replies Last Post
Transactions in stored procedure deepakkhopade SQL Server 2000 2 October 28th, 2004 03:27 AM
Transactions in C#, not stored procs organicglenn BOOK: ASP.NET Website Programming Problem-Design-Solution 6 October 10th, 2004 09:18 AM
Stored Procedures stu9820 Access 3 February 8th, 2004 01:13 PM
Using Stored Procedures lintacious Classic ASP Basics 1 August 12th, 2003 04:06 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.