USE [master] GO CREATE PROC [dbo].[EnableTraceFlags] AS DBCC TRACEON (1222, -1); -- Write deadlocks to error log DBCC TRACEON (3226, -1); -- Suppress successful backup messages GO EXEC sp_procoption N'[dbo].[EnableTraceFlags]', 'startup', '1' GO
Saturday, March 5, 2016
Stored Procedure script to Enable trace flags on SQLServer start.
Subscribe to:
Post Comments
(
Atom
)
No comments :
Post a Comment