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
 General SQL Server Forums
 New to SQL Server Administration
 Sql server error log.
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

InfraDBA
Starting Member

38 Posts

Posted - 01/09/2011 :  23:32:35  Show Profile  Reply with Quote
Can SQL server error log be adjusted to show specific messages? Basically what are the default type of messages that SQL server error log would include?

InfraDBA
Starting Member

38 Posts

Posted - 01/10/2011 :  04:10:13  Show Profile  Reply with Quote
Is it some kind of joke or something?
Go to Top of Page

Lumbago
Norsk Yak Master

Norway
3271 Posts

Posted - 01/10/2011 :  04:49:37  Show Profile  Reply with Quote
Check out the WITH LOG option of the RAISERROR statement:

RAISERROR('Something *reaally* funky happened',16,1) WITH LOG

I was unable to find any info on which specific events that goes to the error log, all I could find was this -> http://msdn.microsoft.com/en-us/library/ms191202.aspx. I do however know that db engine restarts are logged, database backups, result of dbcc commands, deadlocks, start/stop of traces (profiler), various errors of course...

- Lumbago

My blog (yes, I have a blog now! just not that much content yet)
-> www.thefirstsql.com
Go to Top of Page

GilaMonster
Flowing Fount of Yak Knowledge

South Africa
4507 Posts

Posted - 01/10/2011 :  05:35:34  Show Profile  Visit GilaMonster's Homepage  Reply with Quote
Deadlocks aren't logged by default. Only if a traceflag is enabled.

All sev 20+ errors are logged.
Database and log backups, though those can be turned off with a traceflag.
Databases being opened
Traceflags enabled/disabled
Some DBCC commands (not all)
Login success if set so in the server properties
Login failure if set so in the server properties

--
Gail Shaw
SQL Server MVP
Go to Top of Page

InfraDBA
Starting Member

38 Posts

Posted - 01/10/2011 :  06:50:58  Show Profile  Reply with Quote
Thanks for your inputs.Appreciate it.
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.06 seconds. Powered By: Snitz Forums 2000