Getting Started with Adobe After Effects - Part 6: Motion Blur


Upload Image Close it
Select File

Browse by Tags · View All
brh 5
SQL Server 5
#SQLServer 5
TSQL 3
#TSQL 2
Database 1
SSMS 1

Archive · View All
June 2011 4
July 2011 1

Balmukund Lakhani's Blog

Help : Where is SQL Server ErrorLog?

Jun 27 2011 11:48AM by Balmukund   

While helping unknown faces via MSDN SQL Server Forum, I have asked many times to share the “SQL Server ErrorLog”. Most of the time, I need to explain where the ErrorLog(s) are located. so this post is to help those who are new to SQL Server. Well, if you ever call Microsoft SQL Support for any problem with SQL, they (including me) would ask SQL ErrorLog.

You may ask “What is ErrorLog file?”
SQL Server maintains its own error logs that contain messages describing informational and error events. I personally don’t like name of the file “ErrorLog” as this file does not contains only errors, it also contains information messages. This is the reason we have added additional text in information message called “This is an informational message only. No user action is required”.

  • Location of Errorlog when SQL Server is running and you are able to connect:
    • Connect to SQL Server using SQL Server Management Studio by providing correct name. To find the name to connect, refer my earlier post
    • In Query window run below command
      sp_readerrorlog
    • Here is the output

    ERRORLOG

    • Highlighted area “Logging SQL Server messages in file 'D:\Program Files\Microsoft SQL Server\MSSQL10_50.SQL2K8R2\MSSQL\Log\ERRORLOG'” is current ERRORLOG file 
    • If you look at folder D:\Program Files\Microsoft SQL Server\MSSQL10_50.SQL2K8R2\MSSQL\Log\ here are files.

                          LOG Folder

          As you can see above that LOG folder contains many files. I have provided little information about them in picture.

  • Location of Errorlog when SQL Server is running and you are NOT able to connect:

    There could be situations where you are not able to connect to SQL Server because SQL Server service is not getting started. In those situations, sp_readerrorlog can’t be run. Now, we have to find ERRORLOG file using other technique. Here we go.
    • Open SQL Server Configuration Manager:
      Go to Start > All Programs > Microsoft SQL Server 2005 (or 2008) (or 2008 R2) > Configuration Tools > SQL Server Configuration Manager
      SQL Server Configuration Manager
    • Once you open Configuration Manager, you would get below screen. There you need to locate your SQL Server Instance, right click and properties.

      Configuration Manager



    • Here is the Properties window. Come to Advanced tab & Click on drop down for “Startup Parameters” value and you would see three parameters (can be more also). As shown below there would be –d, –e and –l parameters. Value after –e is your SQL Server Error Log location.


      SSCM Properties

Now if someone is asking ERRORLOG file, please provide using above two methods. You can also get it from SQL Server Management Studio, as described here 

Hope this would help someone in the world!

Cheers,
Balmukund Lakhani
www.SQLServer-Help.com
Twitter @blakhani

Tags: TSQL, #SQLServer, SQL Server, brh, #TSQL,


Balmukund
364 · 0% · 109
1
 
 
0
Refreshed
 
 
0
Incorrect



Submit

1  Comments  

  • Thanks Balmukund for sharing it.

    I agree that the word 'errorlog' is not really accurate and is very confusing in this scenario. It is more of an 'activity log' which also lists any errors. In a typical environment 99% of the entries you see there are not errors but valuable information for DBAs to monitor how the server is doing.

    Thanks for bringing this up.

    commented on Jul 1 2011 11:51AM
    Jacob Sebastian
    1 · 100% · 32002

Your Comment


Sign Up or Login to post a comment.

"Help : Where is SQL Server ErrorLog?" rated 5 out of 5 by 1 readers
Help : Where is SQL Server ErrorLog? , 5.0 out of 5 based on 1 ratings
    Copyright © Rivera Informatic Private Ltd Contact us      Privacy Policy      Terms of use      Report Abuse      Advertising      [ZULU1097]