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

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?

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

Norsk Yak Master

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 -> 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)
Go to Top of Page

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

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