Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
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)
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Perl DBI(ODBC) to MSSQL
by runrig (Abbot) on Oct 12, 2007 at 22:05 UTC | |
by pparrish (Initiate) on Oct 12, 2007 at 22:11 UTC | |
by runrig (Abbot) on Oct 12, 2007 at 22:14 UTC | |
|
Re: Perl DBI(ODBC) to MSSQL
by eric256 (Parson) on Oct 12, 2007 at 23:45 UTC | |
by Somni (Friar) on Oct 13, 2007 at 00:59 UTC |