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 8237153
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T19:22:47+00:00 2026-06-07T19:22:47+00:00

My test table: CREATE TABLE [dbo].[Personel]( [PersonelID] [int] NOT NULL, [Name] [nchar](10) NULL, CONSTRAINT

  • 0

My test table:

CREATE TABLE [dbo].[Personel](
    [PersonelID] [int] NOT NULL,
    [Name] [nchar](10) NULL,
 CONSTRAINT [PK_Personel] PRIMARY KEY CLUSTERED 
(
    [PersonelID] ASC
)
)

My Test Data:

insert into Personel
values (1, 'Jack')
, (2, 'John')
, (3, 'Kevin')

Connection A:

begin tran
update Personel
set Name = 'Michael'
where PersonelID = 1

Connection B:

SET TRANSACTION ISOLATION LEVEL ????

SELECT Name 
FROM Personel WITH (????)
where PersonelID = 1

Connection A starts a transaction and is trying to update data, but transaction is still going on. Connection B tries to read the data that is being updated.

Is there a way (an Isolation Level or a hint or combination of these two) to see the original data (Jack, not Michael) before the transaction is committed or rolled back?

  • 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-07T19:22:48+00:00Added an answer on June 7, 2026 at 7:22 pm

    You can access the old version of the data in the SNAPSHOT isolation level.

    This requires that the database has snapshot isolation enabled before you start:

    ALTER DATABASE <dbname> SET ALLOW_SNAPSHOT_ISOLATION ON
    

    Then in connection B

    SET TRANSACTION ISOLATION LEVEL SNAPSHOT
    
    select * from Personel
    

    There are some performance considerations with snapshot isolation, because it duplicates the rows read into tempdb.

    Documentation reference

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

Sidebar

Related Questions

I've got the following SQL table: CREATE TABLE [dbo].[Test]( [TestID] [int] NOT NULL, [TestNum]
Imagine a table that looks like this: CREATE TABLE [dbo].[test]( [id] [uniqueidentifier] NULL, [name]
I have the following table: CREATE TABLE [dbo].[Tree]( [AutoID] [int] IDENTITY(1,1) NOT NULL, [Category]
I have a following table CREATE TABLE [dbo].[test_table] ( [ShoppingCartID] [int] IDENTITY(1,1) NOT NULL,
This is my table: CREATE TABLE [Test].[dbo].[MyTest] ( [Id] BIGINT NOT NULL, [FId] BIGINT
I have table: CREATE TABLE [dbo].[test] ( [name] nvarchar(max) NULL, [date] datetime NULL )
I have those tables CREATE TABLE [Test]( [Id] [int] NOT NULL, [Value] [int] NOT
I have mysql database structure like below: CREATE TABLE test ( id int(11) NOT
I have a table that looks like this: CREATE TABLE [Test].[dbo].[MyTest] ( [Id] INT
Given a table such as: CREATE TABLE dbo.MyTestData (testdata varchar(50) NOT NULL) ALTER TABLE

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.