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

What happens to the name/value pairs stored inside a form's resx file? Are they
what happens if an user trying to read HttpContext.Current.Cache[key] while the other one trying
Im currently developing this site http://digitalgenesis.com.au/projects/sister/music.html What happens when i re-size screen is that
What happens if I use SHGetFolderPath api call in a 32 bit system with
What happens to exceptions raised while in myMethod: if it is invoked via NSObject's
What happens when the Office 2003 PIA prerequisite and launch condition in a Windows
This happens repeatedly and is very annoying. I upload some PHP code to a
What happens in the memory when a class instantiates the following object? public class
What happens on a Windows box once you add more drives than can fit
It happens lot of the time that when you report a bug to a

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.