Skip to main content

Setting Trace Flags "Permanently" in SQL Server? [Resolved]

We need to use SQL Server Trace Flag 7646 to help mitigate some full text blocking, but I was dismayed to find that the trace flag "unset" itself, probably when the database server was rebooted.

I've used

DBCC TRACEON (7646, -1)

to set the trace flag and


to show all trace flags, which told me that it wasn't set (after reboot, I guess). To set the trace flag permanently, I did this:

  • went to SQL Server Configuration Manager
  • viewed properties for SQL Server service
  • visited the Advanced tab
  • edited the Startup Parameters option

and added


to the end, like so...


Is that correct? I am finding conflicting results on the syntax for SQL Server Startup Parameters.

Question Credit: Jeff Atwood
Question Reference
Asked April 16, 2019
Posted Under: Network
2 Answers

Something that I learned the hard way is that you have to have semicolons before each trace flag. For example, if you were enabling logging of deadlock info to file, your example would become...


Spaces between trace flags cause the later flags to be ignored.

credit: GaTechThomas
Answered April 16, 2019
Your Answer