对数据库的事务处理会影响其他数据库吗?

时间:2015-07-28 14:06:49

标签: sql-server transactions sql-server-2012 transactionscope sqltransaction

我有一个基本问题,但无法在线找到准确的信息。

我打开了一个数据库事务(SQL Server)并进行多次插入,更新,删除等;整个过程大约需要5个小时才能完成(由于数据量很大;假设这个有效)。

以上所有都发生在交易范围内。这个较长的事务是否会调用同一服务器上的其他数据库等待或者干扰它们?我的理解是,这只会影响对相关数据库的调用,而不会影响同一实例下的其他数据库。

PS:交易是从C#侧发起的(即using TransactionScope

1 个答案:

答案 0 :(得分:0)

first at all... 5 hours with a transaction active is too much time... you can validate if its posible that you make more transactions with less time processing... you can affect performance from others DB because are in the same Server and you make queries to them... remember that in older versions of MSSQL RAM consumption is a issue and this RAM has not auto release... If this process is made from a programming language you can do this.. in other case, you can schedule in Jobs to make some stuff periodical and not just for one time and 5 hours...

Hope this solve your doubt!