How Locks held when executing Stored procedure

  • Hi,

    I have to execute a stored procedure which is copying data from source tables from one database to archive database and then delete copied records from source tables. This procedure is doing this for more than 100 tables.

    refer: http://vyaskn.tripod.com/sql_archive_data.htm

    Question:

    while executing this procedure, does the table locks acquired on all of the tables as soon as the procedure started or it only locks one table at a time as it executes?

    • This topic was modified 5 years, 2 months ago by  gana79950.
    • This topic was modified 5 years, 2 months ago by  gana79950.
  • Thanks for posting your issue and hopefully someone will answer soon.

    This is an automated bump to increase visibility of your question.

Viewing 2 posts - 1 through 1 (of 1 total)

You must be logged in to reply to this topic. Login to reply