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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T14:10:07+00:00 2026-05-30T14:10:07+00:00

What happens if I reset the changeId value in the table AspNet_SqlCacheTablesForChangeNotification One of

  • 0

What happens if I reset the changeId value in the table

AspNet_SqlCacheTablesForChangeNotification

One of the rows is currently maxed out at 2.x billion, and our updates are failing. I tried changing the type to BigInt but the application reading it is failing. I need to reset these to 0. Is that ok? Will there be problems?

  • 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-30T14:10:08+00:00Added an answer on May 30, 2026 at 2:10 pm

    The quick answer is… yes. We recently ran into this issue and had the same question. A number of sites I’ve found had unanswered questions regarding this. After much hunting, I had no choice but to just go for it. Here is what I did, and it worked just fine.

    There is an update being called by the trigger added to one or more of your tables. Should look like this:

    EXEC dbo.AspNet_SqlCacheUpdateChangeIdStoredProcedure N’YourTableName’

    This stored procedure is not using an identity column, but a regular INT column and updated by ‘changeId = changeId + 1’. Once the MAX value is reached, it, well, blows up. Change this UPDATE statement as follows:

    Replace:

    SET changeId = changeId + 1

    With:

    SET changeId =
        CASE
            WHEN changeId = 2147483647  --Max INT
            THEN 1
            ELSE changeId + 1
        END
    

    It should look like this:

    ALTER PROCEDURE [dbo].[AspNet_SqlCacheUpdateChangeIdStoredProcedure] 
             @tableName NVARCHAR(450) 
         AS
    
         BEGIN 
             UPDATE dbo.AspNet_SqlCacheTablesForChangeNotification WITH (ROWLOCK) 
             SET changeId = 
                CASE 
                    WHEN changeId = 2147483647 -- Max INT
                    THEN 1
                    ELSE changeId + 1 
                END
             WHERE tableName = @tableName
         END
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Im currently developing this site http://digitalgenesis.com.au/projects/sister/music.html What happens when i re-size screen is that
It happens lot of the time that when you report a bug to a
What happens when you call notifyAll method on an object that is not waiting?
What happens is whenever i upload media onto my site; everyone will get a
It happens to me all the time. I accidentally version a file, I do
This happens after I hit Build and Go to run my app on my
What happens if the user closes their browser while a called business service method
This happens in IDLE and Windows 7 RC1 (if that helps). Here is the
What happens? I'm guessing that somehow the post or page is parsed before displaying,
What happens exactly when I launch a .NET exe? I know that C# is

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.