Quantcast
Channel: Forum Getting started with SQL Server
Viewing all articles
Browse latest Browse all 7129

SQL Autocommit feature ON ?

$
0
0

Hi All,

I understand autocommit is default for Sql Server 2008 R2.
I do not see this is ON.

After every DML Statement, I see the changes only in the QA (Query Analyzer) window from which the commands were issued. If I popped a new QA (Query Analyzer) window, I do not see the changes made by the first window (session) and table get locked if I run select statement.

I have tried the option to set the implicit_transactions off before every DML Statement , there is no luck and behave in the same way as mentioned above. 

SET IMPLICIT_TRANSACTIONS OFF
insert into ABC Select employeeID,accountName from XYZ


The only way, I can see the change and table does not get locked is to run COMMIT TRANSCATION after DML statement.

Is this is a expected behaviour ?

Regards,
Anirban Singha





Viewing all articles
Browse latest Browse all 7129

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>