Identity column values jump to 1000 when localDB service is restarted. An annoying feature of SQL Server 2012 and 2014. This causes big gaps. There is a solution for Express edition (adding -T272 option to db instance startup parameters to revert to the 2008 behavior.) But the localDB instance doesn't show up in the SQL Server 2014 configuration manager, I cannot access the parameters. So how can we configure it? I dont want to use sequences.
identity increment is jumping in sql server localdb
1.5k Views Asked by Sinan Dinç At
1
There are 1 best solutions below
Related Questions in SQL-SERVER
- SQL server not returning all rows
- Big data with spatial queries/indexing
- Conditional null constraint on Null
- SQL Query - Order by String (which contains number and chars)
- Optimising a slow running SQL Server Stored procedure ordered by calculated fields to return a closest match
- Dynamics CRM Publishing Customizations - Multi Developers
- Is there anyway to set the relationship of many tables from Model?
- Implementation of Rank and Dense Rank in MySQL
- ORM Code First versa Database First in Production
- MVC : Insert data to two tables
- Data streams in case of Merge
- table with multiple IDs but seperate notes need sorting (Tried SQL code to make a union query)
- SQL table Partitioning by Year with ColumnStore index implemented on the table
- Defining which network to use for SQL Server 2012 Management Studio
- Fill a week days in a table with preceding Sundays value
Related Questions in IDENTITY
- LDAP Directory Synchronization Tools
- how google manage one account for multiple sites like Youtube, google drive, gmail
- Bulk User Creation in OwinContext (Performance)
- The page isn't redirecting properly when use Roles in Aothorizee
- Trying to rename several account types at once based on current displayName
- GetOwinContext through WCF throw nullreferenceException
- Checking objects for identity and Sonar issues
- MySql 5.5.40 stored procedure @@Identity
- Merge IdentityDbContext and DbContext ASP.NET MVC
- How to detect if the List contains itself in Java
- SQL : Accessing identity column value for current insertion
- How does the method Initialize(); work in the membership.cs class of asp.net?
- T-SQL Identity Seed Expression
- Syncope CSV connector not creating users
- Error When Converting Project from Code-first to Database-First
Related Questions in LOCALDB
- How to deploy Windows app with SQL Server database?
- How can I use 2014 (782) version of localDB in visual studio 2013
- Having trouble saving changes in Dataset to SQL LocalDB
- c# to vb using Sync Framework strange error
- Connecting to localdb with Visual Studio and NUnit
- Embedding SqlLocalDb in NSIS installer script
- Placing a LocalDB Database into AppData via Installer
- C# entity framework MVC second run error
- Why is my MVC 5 application trying to access Local DB
- How to detect SQL Server installation?
- Same local database from different assemblies not working
- Django + pyodbc + MS LocalDB ghost instance
- Cannot host use LocalDB in web app when hosting on IIS (Windows 10)
- Connect LocalDB to ASP.net Project
- Can I connect remote sql server database without management studio
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
You can replace your identity columns with a sequence column.
Then you can reconfigure your identity column as just an INT, and to get the value to insert into the INT column, you can:
Better yet, you can just make it the default value so the behavior is the same as an identity.
For reference: