SQL Server Forums
Profile | Register | Active Topics | Members | Search | Forum FAQ
 
Register Now and get your question answered!
Username:
Password:
Save Password
Forgot your Password?

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

Zathras
Starting Member

USA
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.

nr
SQLTeam MVY

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

Zathras
Starting Member

USA
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  
 New 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.03 seconds. Powered By: Snitz Forums 2000