I have a problem with SQL Server 2012+ that made a change in the Identity
and it jumps by 1000 with every reboot, this article explains well how to disable trace flag 272.
I would like to know if it is possible to make a .bat that, through the SQL Server console, deactivates the indicator.
To activate a global trace flag use the following command:
traceon
, enable trace flag 272, it is the flag that mentions the page you included,-1
it is to be global throughout the server, not just in the session.If you want to disable it use:
To see what is running use:
As with any traceflag , check it out before you implement it to make sure it will solve the problem.