Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2000 Forums
 SQL Server Administration (2000)
 turn autocommit off

Author  Topic 

misterraj
Yak Posting Veteran

94 Posts

Posted - 2006-11-20 : 23:35:03
i have some few qns:

1)In sql-server 2005, how to set the auto-commit OFF ? where are these changes present.

2)also, in a transaction if i delete some rows in a table and then roll-back, does these records come once again?

3) if there is a network problem or database shuts down during the updation will it roll-back to the state where it was?

thanks.

byrmol
Shed Building SQL Farmer

1591 Posts

Posted - 2006-11-21 : 00:16:47
1) No idea. It is a runtime setting in SQL 7

2)Yes

3)Yes

DavidM

Production is just another testing cycle
Go to Top of Page

misterraj
Yak Posting Veteran

94 Posts

Posted - 2006-11-21 : 00:49:31
thanks for 2) and 3) but 1) remains un-answered still

what are the ways to set the auto-commit on or off at the database level or at the server level?
is there anyway to commit/uncommit these transactions mention from the ado/ado.net level
Go to Top of Page

Westley
Posting Yak Master

229 Posts

Posted - 2006-11-21 : 02:21:41
I don't think you can change that option for auto-commit, only back in Sybase you can, not in SQL anymore. I think
Go to Top of Page

Michael Valentine Jones
Yak DBA Kernel (pronounced Colonel)

7020 Posts

Posted - 2006-11-21 : 08:18:25
From SQL Server 2000 Books Online:
"SET IMPLICIT_TRANSACTIONS
Sets implicit transaction mode for the connection.

Syntax
SET IMPLICIT_TRANSACTIONS { ON | OFF }

Remarks
When ON, SET IMPLICIT_TRANSACTIONS sets the connection into implicit transaction mode. When OFF, it returns the connection to autocommit transaction mode."





CODO ERGO SUM
Go to Top of Page
   

- Advertisement -