Question : How do you change the default username for default SQL Trace

Hello,
I noticed in the sql logs that in this entry -

SQL trace ID 1 was started by login "sa"

How do I change the user or login for the default sql trace getting automatically started?
Meaning, I don't want the instance using the user = 'sa' to login, etc.

Thanks

Answer : How do you change the default username for default SQL Trace

Default SQL Trace is enabled in SQL Server by default to capture many useful information listed below:

http://blogs.technet.com/vipulshah/archive/2007/04/16/default-trace-in-sql-server-2005.aspx

To capture all this information, it should / would ideally use the sa privileges and hence it is configured to run using sa credentials.

We have the option to either disable it but not change the default user for it.

Steps to disable the trace( Not recommended):

sp_configure 'default trace enabled' , 0
GO
RECONFIGURE WITH OVERRIDE
GO
Random Solutions  
 
programming4us programming4us