if (table lock successful)
{
make some updates to the table
unlock the table
}
else
{
sleep to give whoever got the lock time to finish
}
All my servers will be running the same code at the same time, so its a matter of who gets there first, wins! I've been trying to find the LOCK command syntax for MSSQL tables, but I have come up short. Does anyone have any suggestions on how to achieve this goal? And yes, unfortunately, it has to be MSSQL.(grumble)
In reply to Perl DBI(ODBC) to MSSQL by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |