I need to be able to lock a SQL database while a set of end of day stored procedures are running within a SQL server agent job.
This needs to happen so that a series of checks that occur at the end of day aren't affected by new data. The checks happen in a bottom up approach and new data would result in checksums failing as we went up the tree.
Please let me know if more information is needed.