hey guys, i currently have a job that runs at 10pm and updates about 5000 rows. It's a very simple update statement. What will I add in that statement so that no one will be able to even touch it or modify it? thanks. v1rt
Review information from thishttp://www.sql-server-performance.com/reducing_locks_hints.asp article about locking hints. HTH Satya SKJ Moderator http://www.SQL-Server-Performance.Com/forum This posting is provided “AS IS†with no rights for the sake of knowledge sharing.
You really can't stop people from reading a "version" of it using WITH(NOLOCK). They can't modify the rows though because they are currently being modified by you. If you need the whole table locked (not just the columns you are updating), then follow the link Satya gave you and look at table lock. MeanOldDBA derrickleggett@hotmail.com When life gives you a lemon, fire the DBA.