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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T16:07:02+00:00 2026-06-03T16:07:02+00:00

We have scenario: SQL Server 2008 we have replication on the db we have

  • 0

We have scenario:

  • SQL Server 2008
  • we have replication on the db
  • we have simple sproc that performs ALTER of one of the table (add new column)
  • isolation level is default (READ COMMITTED)

Stored procedure fails with error:

You can only specify the READPAST lock in the READ COMMITTED or REPEATABLE READ isolation levels

Questions:

  • What causes the problem?
  • How to fix that?

UPDATE:
I believe this is very common problem so I’m wonder why there is no good explanations why replication causes this issue

  • 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-03T16:07:03+00:00Added an answer on June 3, 2026 at 4:07 pm

    You cant only specify READPAST when reading from committed data.

    Reason is because readpast ignores locked rows, so when you use it, you are pretty much saying to sql server, give me everything that has not been touched by any other transaction. Example from BOL:

    For example, assume table T1 contains a single integer column with the
    values of 1, 2, 3, 4, 5. If transaction A changes the value of 3 to 8
    but has not yet committed, a SELECT * FROM T1 (READPAST) yields values
    1, 2, 4, 5.

    It doesnt make much sense saying that on a read uncommitted isolation level, which by default, brings back uncommitted values. Its kinda requesting two opposite things.

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

Sidebar

Related Questions

I have a SQL Server 2008 database table that uses uniqueidentifier as a primary
In SQL Server 2008, I have a scenario where I have a table with
I'm using SQL Server 2008. I have an interesting scenario where a stored procedure
I have a following scenario in my SQL Server 2005 database. zipcodes table has
I have a typical dev scenario: I have a SQL 2008 database that I
I have strange scenario in which if I create database using SQL Server 2008
In SQL Server 2008, I have the following tables: CREATE TABLE samples (SampleID int,
I have this scenario: WServer 2008, SQL Server 2005, MS Analysis services (SSAS), ISS7
I have a SQL Server 2008 database which contains data that I need to
I have this very simple query in my database in SQL Server 2008 R2:

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.