Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2005 Forums
 Transact-SQL (2005)
 Stop All Transactions

Author  Topic 

SQL_Deepak
Starting Member

9 Posts

Posted - 2010-03-06 : 23:57:08
Hi

I am using SQL Server 2005 and we are running a financial database on it. I want to take closing balance for customer and agents account, but to do this I want to first stop all transactions happening using CustomerAccount table and AgentAccount table and then start taking up the closing balances.

Could any one let me know how do I block all transactions happening using CustomerAccount and AgentAccount table so that I can take the balances and then release the block. This will be automatic process which will run @ 2am on every 1st of the month.


Deepak

visakh16
Very Important crosS Applying yaK Herder

52326 Posts

Posted - 2010-03-07 : 02:23:56
have a look at TABLOCKX in books online

------------------------------------------------------------------------------------------------------
SQL Server MVP
http://visakhm.blogspot.com/

Go to Top of Page
   

- Advertisement -