Any feedback?
I use something like the following code when I need to save data fields on SQL Server:
XDocument.QueryAdapter.Command = "exec dbo.SaveSQLComplexDBinfo " + SQLComplexDBID + ",'" + ComplexName + "','" + DBName + "','" + AppCode + "'";
XDocument.Query();
When I check database activity, I see that something like this will be issued to SQL Server:
set implicit_transactions on SET NO_BROWSETABLE ON
exec dbo.SaveSQLComplexDBinfo 96,SQLDA-CX02','ATT25','ACTT'
IF @@TRANCOUNT > 0 ROLLBACK TRAN
I need the data to be saved. Why does Query() method wrap the actual query in a transaction and how can I prevent that?
Thanks