CarolineEH
Technical User
Hi,
In the environment I am using, I need to run update scripts while users are logged into the SQL box. There is a possibility that they could be updating tables, causing a deadlock when I attempt to run my script.
As my update scripts are part of a daily job and of a definite priority over any user transactions, is there any code that can be added to my scripts to ensure that when the victim is chosen, the user is always chosen (as opposed to my update scripts).
Up until now, it has not been an issue as the updates have occurred out of hours, but now there will be users logged in, in the middle of a batch update.
Any help would be greatly appreciated..
Thanks,
Caroline.
In the environment I am using, I need to run update scripts while users are logged into the SQL box. There is a possibility that they could be updating tables, causing a deadlock when I attempt to run my script.
As my update scripts are part of a daily job and of a definite priority over any user transactions, is there any code that can be added to my scripts to ensure that when the victim is chosen, the user is always chosen (as opposed to my update scripts).
Up until now, it has not been an issue as the updates have occurred out of hours, but now there will be users logged in, in the middle of a batch update.
Any help would be greatly appreciated..
Thanks,
Caroline.