Please start any new threads on our new site at We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2000 Forums
 SQL Server Administration (2000)
 Viewing the server logs

Author  Topic 

Starting Member

28 Posts

Posted - 2005-01-13 : 11:01:14
Is there some "standard" or usual way of allowing non-server-admins of viewing the server logs? I don't mean the Transaction logs, I mean the logs of server error messages, etc. As it stands now, only server admins see the "SQL Server Logs" treeview item in the Enterprise Manager.


12543 Posts

Posted - 2005-01-13 : 12:37:30
The current log is a text file on the server named ERRORLOG in the LOG directory.
If they have access to xp_cmdshell then

exec master..xp_cmdshell 'type .....\Log\ERRORLOG'

Cursors are useful if you don't know sql.
DTS can be used in a similar way.
Beer is not cold and it isn't fizzy.
Go to Top of Page

Starting Member

28 Posts

Posted - 2005-01-13 : 13:49:40
They don't have permission on xp_cmdshell.
Go to Top of Page

- Advertisement -