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 2005 Forums
 Transact-SQL (2005)
 [Resolved] Syntax on auto commit

Author  Topic 

snufse
Constraint Violating Yak Guru

469 Posts

Posted - 2009-02-06 : 08:52:20
I am having syntax problems with setting the "autocommit"

begin

Set autocommit off

insert into ZyTax.dbo.jtable(
report_state, report_year, ........
select ztadds, ztyear, ..........

commit

end


Error:

Msg 195, Level 15, State 5, Line 1
'AUTOCOMMIT' is not a recognized SET option.

visakh16
Very Important crosS Applying yaK Herder

52326 Posts

Posted - 2009-02-06 : 09:06:02
as said by error message there's no server setting like AUTOCOMMIT.
Go to Top of Page

visakh16
Very Important crosS Applying yaK Herder

52326 Posts

Posted - 2009-02-06 : 09:11:27
see this

http://msdn.microsoft.com/en-us/library/ms187878.aspx
Go to Top of Page

sakets_2000
Master Smack Fu Yak Hacker

1472 Posts

Posted - 2009-02-06 : 09:13:40
Yes, Nothing like AUTOCOMMIT.
SET IMPLICIT_TRANSACTIONS { ON | OFF }
might help you though.
Go to Top of Page
   

- Advertisement -