SQL-Server 2005 default trace log file not inherits directory permissions

file-permissionslog-filessql-server-2005windows-server-2003

I need to backup the SQL-Server 2005 default trace log files (%sqlserverpath%\MSSQL\LOG\log_*.trc) and when it is created it isnt inheriting the directory file permissions (Windows 2003 Server) so I get access denied to do the file copy with my "backup service" user. Any idea?

Best Answer

SQL Server now ACLs the trace files with the same user permissions as that of the database files. This is usually the service account SQL Server executes under and the Computer\Administrators group. The permissions of the directory are no longer inherited.

The owner of the trace files must explicitly grant security permissions to others in accordance with security policies and company guidelines.

http://blogs.msdn.com/b/psssql/archive/2008/06/25/how-it-works-trace-trc-file-security.aspx

Related Topic