Monday, October 10, 2011

T-SQL to Check SQL ErrorLog file location

At the start up of SQL Server records the startup parameter details into the error log.

You can query the error log to check the error log file physical location.

[sourcecode language="sql"]
USE master
GO
xp_readerrorlog 0, 1, N'Logging SQL Server messages in file', NULL, NULL, N'asc'
GO
[/sourcecode]

No comments:

Post a Comment