Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8559405
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T16:02:10+00:00 2026-06-11T16:02:10+00:00

In Oracle is: LOCK TABLE employees IN EXCLUSIVE MODE WAIT 10; On employees table

  • 0

In Oracle is:

LOCK TABLE employees IN EXCLUSIVE MODE WAIT 10;

On employees table I have to do first delete and then insert.

LOCK TABLE employees ..
DELETE FROM employees ..
INSERT INTO employees ...

What is equivalent statement of LOCK in ms sql server ?

Thanks

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-11T16:02:11+00:00Added an answer on June 11, 2026 at 4:02 pm
    SET TRANSACTION ISOLATION LEVEL SERIALIZABLE 
    
    BEGIN TRANSACTION
    
    DELETE FROM employees .. 
    INSERT INTO employees ... 
    
    COMMIT TRANSACTION
    

    Either the delete statement will succeed and lock the table exclusively, or it will fail (if a lock is already held by another connection).

    BTW, it’s good practice to try and avoid such extreme exclusive locking. There are other less aggressive isolation levels that you might possibly be able to use with the same results.

    See SET TRANSACTION ISOLATION LEVEL

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Using ORACLE SQL. I have a table ' Employees ' with one of the
I am learning Oracle Lock. In the one session lock table countries in ROW
In Oracle, I have a table with a column of data type NUMBER. I
In Oracle, I have a table with a column (X) which can have strings
Is there a way to exclusively lock a table for reading in Oracle (10g)
We have an Oracle database, and the customer account table has about a million
I have an oracle form, where the lock procedure property of a data block
I would like to have a table in my Oracle database whose rows act
Is there a difference between pg and table lock in Oracle Does select *
In Oracle PL/SQL I was used to write: SELECT * FROM MY_TABLE WHERE ROWNUM

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.