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