Microsoft has improved the configuration of startup parameters in SQL Server 2012 and it is much simpler and easier. In this article we will take a look at the steps to add a Trace Flag 1222 to identify deadlocks in SQL Server 2012 as a Startup Parameter. For more information on Deadlocks Read, Identify Deadlocks Using Graphical Deadlock Chain Event in SQL Server Profiler.
How to Add Startup Parameters in SQL Server 2012
Open SQL Server Configuration Manager and click SQL Server Services on the left side panel. Right click SQL Server Service and choose Properties from the drop down menu.

In the SQL Server Properties on the Startup Parameters tab specify a startup parameter as -T1222 and click the Add button to add the parameter to Existing Parameters. Finally to save the settings click OK.

Since SQL Server Configuration Manager writes startup parameters to the registry the changes will only come into effect once you restart SQL Server Database Engine Service.
On a Failover Cluster, the changes must be performed on the active node of server when the SQL Server is Online. To bring the new startup parameter into effect Take the SQL Server Service Offline and then bring it back Online. However, the registry update of the startup option on the secondary node will come into effect once you failover.
How to remove Startup Parameters in SQL Server 2012
If you wish to remove a startup parameter which was added previously then choose the parameter as highlighted in the below snippet and then click the Remove button as highlighted in the below snippet and click OK.

However, don’t forget to restart the SQL Server Database Engine Service to bring this change into effect.
Conclusion
This article gives you an overview of improvements in the configuration of Startup Parameters in SQL Server 2012. For more information, Read, Different SQL Server Startup Parameters.
Trending SQL Server Disaster Recovery for DBAs and Developers
- Improved Startup Parameters in SQL Server 2012
- SQL Server Database Engine Service Startup Options
- How to Configure TempDB on Local Disk in SQL Server 2012/2014 Failover Cluster to Improve Performance
- Database Backup Encryption in SQL Server 2014 a Step by Step Implementation Guide
- How to Fix “BACKUP detected corruption in the database log” Error in SQL Server
- How to Repair Database in Suspect Mode in SQL Server
- How to Start SQL Server without TempDB Database
- Why to Configure Database Instant File Initialization in SQL Server? Advantage
- Different Ways to Enable Dedicated Administrator Connection in SQL Server
- How to Use Dedicated Administrator Connection in SQL Server
Add comment