.net - Transaction locking an Insert statement -
.net - Transaction locking an Insert statement -
i have outer distributed transaction locking (hanging) insert statement table. don't have command on outer transaction. how avoid blocking @ granular level. tried set transaction suppress around insert @ .net level. didn't work.
please @ image detailed information.
any solution kind of issue helpful. appreciate support.
that expected if there strong crossover between 2 operations looking at, , aren't in same transaction. outer transaction has presumably taken key-range lock causing block (at guess outer transaction "serializable" isolation-level). there nil can here, except:
enlist/operate in same transaction, rather operate outside it lower isolation level of outer operation, no key-range lock generated if outer operation query (a select, not insert/update/delete), utilize nolock or similar avoid locking it)if can't of things, can't insert without breaking integrity - won't allow you. might want consider deferring insert until outer operation has comlpleted.
.net sql tsql sql-server-2008 transactions
Comments
Post a Comment