Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Lock/Unlock database for Update

Status
Not open for further replies.

hinchdog

Programmer
Feb 14, 2001
380
0
0
US
I'm updating SQL server from an ASP page using ADO. I want to preform to updates, however I don't want anyone to access the database until BOTH updates are complete. Does anyone know a quick way to do this - I'm guess it has something to do with lock types.

-Hinch
 
You can do it using a "Pessimistic" lock type. However, this will only lock the table being updated and not the database.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top