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.

Our new SQL Server Forums are live! Come on over! We've restricted the ability to create new threads on these forums.

SQL Server Forums
Profile | Active Topics | Members | Search | Forum FAQ
Save Password
Forgot your Password?

 All Forums
 SQL Server 2000 Forums
 SQL Server Administration (2000)
 Viewing the server logs
 Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

Starting Member

28 Posts

Posted - 01/13/2005 :  11:01:14  Show Profile  Reply with Quote
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.


United Kingdom
12543 Posts

Posted - 01/13/2005 :  12:37:30  Show Profile  Visit nr's Homepage  Reply with Quote
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 - 01/13/2005 :  13:49:40  Show Profile  Reply with Quote
They don't have permission on xp_cmdshell.
Go to Top of Page
  Previous Topic Topic Next Topic  
 Reply to Topic
 Printer Friendly
Jump To:
SQL Server Forums © 2000-2009 SQLTeam Publishing, LLC Go To Top Of Page
This page was generated in 0.02 seconds. Powered By: Snitz Forums 2000