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

  • Home
  • SEARCH
  • 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 6603095
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T18:57:43+00:00 2026-05-25T18:57:43+00:00

If I use the command SET TRANSACTION ISOLATION LEVEL READ UNCOMMITTED and then execute

  • 0

If I use the command SET TRANSACTION ISOLATION LEVEL READ UNCOMMITTED and then execute a stored procedure using the EXEC storedProcedureName on the same context, will the stored procedure use the transaction level stated previously or will use a default one?

If I want to force every stored procedure to use on transaction level do I have to include at the top of the code the same statement (SET TRANSACTION ISOLATION LEVEL READ UNCOMMITTED)?

PS.: the system is built on top of .NET 2.0 and proprietary third party products with limitations, hence the need of these workarounds.

  • 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-05-25T18:57:44+00:00Added an answer on May 25, 2026 at 6:57 pm

    The stored procedure will use the transaction isolation in effect when called.

    If the stored procedure itself sets an explicit isolation level this will be reset when the stored procedure exits.

    (Edit: Just checked and this is contrary to what BOL says “… it remains set for that connection until it is explicitly changed” but can be seen from the below)

    CREATE PROC CheckTransLevel
    AS
    DECLARE @Result varchar(20)
    
    SELECT @Result = CASE transaction_isolation_level 
                            WHEN 0 THEN 'Unspecified' 
                            WHEN 1 THEN 'ReadUncomitted' 
                            WHEN 2 THEN 'Readcomitted' 
                            WHEN 3 THEN 'Repeatable' 
                            WHEN 4 THEN 'Serializable' 
                            WHEN 5 THEN 'Snapshot' 
                      END 
    FROM sys.dm_exec_sessions 
    WHERE session_id = @@SPID
    
    PRINT @Result
    
    GO
    CREATE PROC SetRCTransLevel
    AS
    PRINT 'Enter: SetRCTransLevel'
    SET TRANSACTION ISOLATION LEVEL READ COMMITTED
    EXEC CheckTransLevel
    PRINT 'Exit: SetRCTransLevel'
    GO
    
    SET NOCOUNT ON
    
    SET TRANSACTION ISOLATION LEVEL READ UNCOMMITTED
    
    EXEC CheckTransLevel
    
    EXEC SetRCTransLevel
    
    EXEC CheckTransLevel
    

    Results

    ReadUncomitted
    Enter: SetRCTransLevel
    Readcomitted
    Exit: SetRCTransLevel
    ReadUncomitted
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

i use the command line in windows to compile and then execute my java
I use the screen command for command-line multitasking in Linux and I set my
Using C#, I need to send a date command to set the time on
How can I use command line arguments in a creationComplete event handler? It seems
You can use command lsof to get file descriptors for all running processes, but
When I use `gqap' command to reflow a paragraph in vim, vim seems to
I want to use svn command line with beyond compare and get the following
I have a winforms projects and we use the command pattern. We are trying
In my program, I have been receiving an error when I use a command-line
I use the VS2008 command prompt for builds, TFS access etc. and the cygwin

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.