Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Updlock?
Message
General information
Forum:
Microsoft SQL Server
Category:
SQL syntax
Title:
Miscellaneous
Thread ID:
01229047
Message ID:
01229059
Views:
14
>>I have this SQL syntax and I need to know why they put WITH (UPDLOCK) in this statement. Please help
>>
>>
>>select aa.field_10 from mytable aa WITH (UPDLOCK)
>>
>>
>>Thanks,
>>Sam
>
>From SQL help ..
>
>Specifies that update locks are to be taken and held until the transaction completes.

I guess the first statement is taken from a longer procedure. Otherwise why would you use this hint with SELECT-SQL?
If it's not broken, fix it until it is.


My Blog
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform