Email alert if SQL Server Services stop abruptly

Hi,
I am a SQL Server DBA and I am currently working on setting up email alerts in case if SQL Server services stop abruptly.I have currently written a VB script which runs every 1 hr and checks if a SQL Server Service is running or not. This VB Script runs
with the help of Windows Task Scheduler.In case if a SQL Server service has stopped, this VB script immediately sends an email via. SMTP Server.
Please let me know if this is a good solution or is there any other better solution or is there any feature available in SQL/windows using which the same can be achieved. 
Environment:
SQL 2008 R2
OS: Windows Server 2008
Thanks a lot in advance :)
Regards,
Tauhid S Shaikh 

Hi Tauhid,
I do have same requirement, please could you share the code.
Regards
Siraj Ahmed  

Similar Messages

  • SQL Server service stopped unexpectedly event ID 7034

    On one of UAT server we are having  issue with SQL Serverices and they are stopped unexpectedly .There is failure details  in Event logs \SQL Error logs. we havent done any of the changes on server.
    Event id : 7034

    Hi,
    so late but still, any solution you got or still  waiting for that?
    Are you able to check os\sql logs and find out anything which may appear that causing and putting a cascading effect on the services?
    Also you can add some more attempts for the services to try like below:
    Change the recovery actions
    To resolve this issue, change the recovery actions that the Service Control Manager (SCM) will take when a service fails.
    To perform this procedure, you must have membership in
    Administrators, or you must have been delegated the appropriate authority.
    To change the recovery actions for a service:
    Open the Services snap-in by clicking the
    Start button, Control Panel, and Administrative Tools, then double-clicking
    Services.
    Note: For Windows Vista, use the
    Classic View display option in Control Panel to see the
    Administration Tools.
    In the details pane of the
    Services snap-in, right-click on the name of the service you want to stop and select
    Properties.
    Click the Recovery tab and specify the recovery actions for the service (for example, restart the service or the computer, take no action, or run a program).
    It will be  good to share any logs around the time it fails.
    Thanks for sharing.
    Santosh Singh

  • SQL Server services having stop

    We're using SQL server 2008 r2 but having lot of issues. My application running on SQL server but it stop everyday. SQL services stop then my application automatic hang then i restart the server then after my application work.

    Hi harigaurav,
    If SQL Server Services stop regularly every day, then you can check the Start Mode for the services in SQL Server Configuration Manager, check the Windows Scheduler or use some monitor tools to monitor SQL Server services status.
    If SQL Server Services always stop unexpectedly, we can configure SQL Server Agent to restart the SQL Server and SQL Server Agent services automatically. To configure automatic service restart:
    Open the SQL Server Management Studio Management folder, right-click the SQL Server Agent entry, and select Properties.
    On the General page, select the Auto Restart SQL Server If It Stops Unexpectedly check box.
    Here, you should also select the Auto Restart SQL Server Agent If It Stops Unexpectedly check box.
    Click OK.
    Thanks,
    Katherine Xiong
    Katherine Xiong
    TechNet Community Support

  • Alert: SQL Server Service Broker or Database Mirroring Transport stopped

    Hi Team,
    I got this error message even no one DB configured as mirroring ???
    Alert: SQL Server Service Broker or Database Mirroring Transport stopped Priority: 0 Severity: 2 Resolution state: New
    Alert description: The Database Mirroring protocol transport has stopped listening for connections.

    Can you check the rule. By default the configurations are disabled state that is the reason you are getting the alert.
    If it's not configured properly then you might need to override it
    --Prashanth

  • Script to send email notification when sql server stops..

    Hi,
    I am looking for a script through which I can monitor sql server service status and if it down for any reason, I want to send email to Dba team.  How to achieve this? Did anyone has already done similar kind of monitoring?
    Again, I am not looking for any 3rd party monitoring system like SCOM etc.. I looking for a batch file or script outside sql which can solve this.
    Any help would be greatly appreciated.
    Thank you.

    There are two ways to do it:
    1). There is a job option wherein you can put the alert message and then in schedule option, select to alert you only when Sql Agent Services get restarted. So this way you will come to know when Sql Agent Services got restarted.
    2). From any centralize\third server apart from your database server\host, you can put a job to execute almost around every 5 minutes to check service status and then call a batch file which will call OSQL code to execute sql code for sending alert
    based on the message content you want to like below:
    Scripts below, even you can tweak more on this as per your environment requirement and even you can merge some scripts to make one out of two or similar, however keeping each separate one helps to track scripts.
    First Batch File with Name: ServiceStatusCheck.bat
    with below content
    Echo "Checking Service Status"
    :Query
    FOR /F "tokens=4 delims= " %%A IN ('SC QUERY "XXXXXXXXServiceNametobeCheckedPutHere" ^| FIND "STATE"') DO SET status=%%A
    IF "%status%"=="STOPPED" GOTO Shootout
    :Shootout
    'email for success in first attempt
    'Put path of batch file
    "D:\Script\Successemail.bat"
    Exit
    Second Batch file with below content which will call Sql file to send alert: File Name: Successemail.bat
    ECHO "Send Email Alert"
    OSQL -E -S XXXXXXXXX -i "D:\Script\Successemail.sql"
    ECHO "Done"
    Exit
    Third Sql File to send email: File Name: Successemail.sql
    Declare @bodyT varchar(200)
    Set @bodyT  =
    'Service was found in stopped status and Date & Time::'
     +replace(convert(varchar(20),GETDATE(), 102),'.','/')
     +'::'
     +convert(varchar(20),GETDATE(), 108)
    EXEC msdb.dbo.sp_send_dbmail
        @profile_name='Profilename',
        @recipients = '[email protected]',
        @body  = @bodyT,
        @subject = 'Service was found in stopped status, Check Details!!'
    GO
    Santosh Singh

  • Email Should Receive Whenever SQL Server is Stopped.

    Hi SQL Experts,
    I have a requirement like "Email Should Receive Whenever SQL Server is Stopped", so that i can reduce the downtime or escalations.
    SQL Server Version: 2012
    Windows Server Version: 2012
    Regards
    Siraj Ahmed

    You need to do this outside of SQL server. You need some monitoring tools or you need to develop one which frequently checks SQL Server Services
    check this thread
    https://social.msdn.microsoft.com/forums/sqlserver/en-US/44eb704f-a0bb-4ceb-8470-60b2ddb0b3c6/how-to-get-an-email-notification-when-sql-server-stop
    Regards, Ashwin Menon My Blog - http:\\sqllearnings.com

  • Stopping sql server services while applying Service pack On SQL server 2008 and 2008 R2

    Hi,
    I am planning to apply service pack 3 for SQL 2008 R2 and Service pack 4 for SQL server 2008. This is my first time and I am applying first QA and DEV environment. I have one confusion. In cluster once you fail over sql resources to active node all of the
    sql services including SQLSERVER and Agent are automatically stopped in passive node where we apply service pack. But in Stand alone, The services are not automatically stopped. Do I need to manually  stop those services like SQLSERVER, Agent, Browser
    and others if any  before I start applying service pack?
    Early Response is highly appreciated.
    Thanks In Advance

    Hello,
    You don’t need to stop SQL Server services. Let SQL Server setup do it as needed.
    Please read the following article for the cluster you would like to update:
    https://support.microsoft.com/kb/958734?wa=wsignin1.0
    The following article may be useful too:
    http://www.sqlcoffee.com/Tips0014.htm
    Hope this helps.
    Regards,
    Alberto Morillo
    SQLCoffee.com

  • Monitor SQL Server service Broker queue status

    I need to monitor SQL Server service Broker queue status.  If the queue is disabled, send me an email alert.
    Can you let me know what's the best way to accomplish it using SCOM?

    1) create a queue for notification
    2) create a service on notification queue
    3)Create an event notification for broker queue disable. Associate this with the queue that you are monitoring.
    4)Create a procedure that send you and email with this event happens
    Example:
    ---- Notification
    CREATE
    QUEUENotify_queue
    -- Service
    CREATE
    SERVICE[http://queue_Notify]
    ONQUEUENotify_queue([http://schemas.microsoft.com/SQL/Notifications/PostEventNotification]);
    --Event 
    CREATE
    EVENTNOTIFICATION[http://queue_Notify_event]
    ONQUEUETarget_queue
    FORBROKER_QUEUE_DISABLED
    TOSERVICE'http://queue_Notify','current
    database';
    GO
    procedure will be something like...
    WAITFOR
    RECEIVETOP(1)
    @RecvReqMsgName=message_type_name,
    @RecvReplyMsg=message_body,
    @RecvReplyDlgHandle=conversation_handle
    FROMNotify_queue),TIMEOUT5000
    IF(@RecvReqMsgName='http://schemas.microsoft.com/SQL/Notifications/EventNotification')
    BEGIN
    DECLARE@cmdNVARCHAR(MAX)
    SET@cmd='dbo.sp_send_dbmail
    @profile_name="Name XYZ",
    @recipients="[email protected]",
    @body="CAST(@RecvReplyMsg as NVARCHAR(MAX)",
    @subject="Queue Disabled Detected";'
    EXEC
    (@cmd)
    END

  • SQL Server Service won't start on SQL Server 2008

    Hi everyone,
    I'm having trouble starting SQL Server service after stopping and starting the service. Before this happened, I created a Stored Procedure for marking all tables at once along with a maintenance plan for differential backup on all my databases based on the
    recommendation from this link, http://msdn.microsoft.com/en-us/library/ms253070.aspx.
    When I realized that the differential backup failed with some databases displaying (Restoring...) post-fix to the database name, I decided to stop SQL Server service and start it up. That is when I won't be able to start the service again.
    Is there a fix for starting the SQL Server service? Any help is very much appreciated.
    Additional information:
    - With administrator permission granted.
    - Service Pack 1 for SQL Server 2008 installed.
    - Using default database instance.
    - Tried C:\Program Files\Microsoft SQL Server\MSSQL.....\Binn>net start MSSQLSERVER /T3608 ( return msg: System error 5 has occurred. Access is denied.
    - When I start SQL Server service, I keep getting this dialog msg:
    "Windowns could not start the SQL Server (MSSQLSERVER) on Local Computer. For more information, review the System Event Log. If this is a non-Microsoft service, contact the service vendor, and refer to service-specific error code 1814."
    The event log does not explain or provide any hint on how to fix the problem.
    - Log msg:
    2010-07-22 10:30:25.09 Server      (c) 2005 Microsoft Corporation.
    2010-07-22 10:30:25.09 Server      All rights reserved.
    2010-07-22 10:30:25.09 Server      Server process ID is 6076.
    2010-07-22 10:30:25.10 Server      Authentication mode is MIXED.
    2010-07-22 10:30:25.10 Server      Logging SQL Server messages in file 'C:\Program Files\Microsoft SQL Server\MSSQL10.MSSQLSERVER\MSSQL\Log\ERRORLOG'.
    2010-07-22 10:30:25.11 Server      This instance of SQL Server last reported using a process ID of 5708 at 7/21/2010 3:27:01 PM (local) 7/21/2010 10:27:01 PM (UTC). This is an informational message only; no user action is required.
    2010-07-22 10:30:25.11 Server      Registry startup parameters:
         -d C:\Program Files\Microsoft SQL Server\MSSQL10.MSSQLSERVER\MSSQL\DATA\master.mdf
         -e C:\Program Files\Microsoft SQL Server\MSSQL10.MSSQLSERVER\MSSQL\Log\ERRORLOG
         -l C:\Program Files\Microsoft SQL Server\MSSQL10.MSSQLSERVER\MSSQL\DATA\mastlog.ldf
    2010-07-22 10:30:25.14 Server      SQL Server is starting at normal priority base (=7). This is an informational message only. No user action is required.
    2010-07-22 10:30:25.14 Server      Detected 4 CPUs. This is an informational message; no user action is required.
    2010-07-22 10:30:25.23 Server      Using locked pages for buffer pool.
    2010-07-22 10:30:25.43 Server      Using dynamic lock allocation.  Initial allocation of 2500 Lock blocks and 5000 Lock Owner blocks per node.  This is an informational message only.  No user action is required.
    2010-07-22 10:30:25.73 Server      Node configuration: node 0: CPU mask: 0x000000000000000f Active CPU mask: 0x000000000000000f. This message provides a description of the NUMA configuration for this computer. This is an informational
    message only. No user action is required.
    2010-07-22 10:30:25.81 spid7s      Starting up database 'master'.
    2010-07-22 10:30:26.14 spid7s      CHECKDB for database 'master' finished without errors on 2010-07-19 21:15:02.823 (local time). This is an informational message only; no user action is required.
    2010-07-22 10:30:26.18 spid7s      Resource governor reconfiguration succeeded.
    2010-07-22 10:30:26.18 spid7s      SQL Server Audit is starting the audits. This is an informational message. No user action is required.
    2010-07-22 10:30:26.18 spid7s      SQL Server Audit has started the audits. This is an informational message. No user action is required.
    2010-07-22 10:30:26.19 spid7s      FILESTREAM: effective level = 0, configured level = 0, file system access share name = 'MSSQLSERVER'.
    2010-07-22 10:30:26.28 spid7s      SQL Trace ID 1 was started by login "sa".
    2010-07-22 10:30:26.29 spid7s      Starting up database 'mssqlsystemresource'.
    2010-07-22 10:30:26.31 spid7s      The resource database build version is 10.00.2531. This is an informational message only. No user action is required.
    2010-07-22 10:30:26.43 spid10s     Starting up database 'model'.
    2010-07-22 10:30:26.43 spid7s      Server name is 'XXXXXXXXXXXXXX'. This is an informational message only. No user action is required.
    2010-07-22 10:30:26.47 spid10s     The database 'model' is marked RESTORING and is in a state that does not allow recovery to be run.
    2010-07-22 10:30:26.47 spid10s     Error: 927, Severity: 14, State: 2.
    2010-07-22 10:30:26.47 spid10s     Database 'model' cannot be opened. It is in the middle of a restore.
    2010-07-22 10:30:26.59 spid10s     Could not create tempdb. You may not have enough disk space available. Free additional disk space by deleting other files on the tempdb drive and then restart SQL Server. Check for additional errors in
    the event log that may indicate why the tempdb files could not be initialized.
    2010-07-22 10:30:26.59 spid10s     SQL Trace was stopped due to server shutdown. Trace ID = '1'. This is an informational message only; no user action is required.

    Hello,
    Could you please copy the model.mdf and modellog.ldf from
    C:\Program Files\Microsoft SQL Server\MSSQL10.MSSQLSERVER\MSSQL\Binn\Templates
    To
    C:\Program Files\Microsoft SQL Server\MSSQL10.MSSQLSERVER\MSSQL\DATA
    Rebuilding the system databases you will lose lose logins, jobs, SSIS packages. You may have to restore or attach user databases.
    Hope this helps.
    Regards,
    Alberto Morillo
    SQLCoffee.com

  • Sql reporting services stops every 24 hours for a short time then restarts

    I have noticed that recently in sccm 2012 sp1 the sql reporting services stops every morning at 7:58 am and restarts after a minute or two.  The only entry in the event logs is when it stops.  I don't see anything tied in with it that stops or
    starts at the same time and there are no tasks or anything like that which would point to this time frame.  I just thought I would throw this out there to see if anyone had any ideas.  Usually with something of this nature there are some corresponding
    log entries that go beyond the service stopping, but in this case there isn't.  Thanks for any help you can provide.

    I think I found out what was going on.  I approached this from a different angle and was directed to the sql reporting services logs and found information on the reporting web server stopping.  Researching that yielded the following information. 
    It appears that this is a result of the SSRS Web Server recycling the App Domain, which is supposed to be a pretty normal process.  In fact, the configuration file for this process defaults to recycling the app domain twice daily.  This lines up
    with the time frame that the reporting service is stopping.  It restarts it in less that two minutes and logs the recyling in the reporting services log twice daily so why I'm not seeing this entry in the event logs twice daily or even every day must
    be a timing thing.  I think if it takes an extra millisecond or two to recycle the app domain, it dumps an entry into the windows event logs and the sccm component status monitoring.
    http://ask.sqlservercentral.com/questions/97176/reporting-web-server-stopped.html

  • After changing 'MS SQL server' service's user name SDAC doesn't work properly

    I've changed 'MS SQL Server' service user name
    from .\admin (have had such already) to network_services
    and now my oracle linked servers to Oracle instance stopped to work.
    Namely, 'Cannot create an instance of OLE DB provider "OraOLEDB.Oracle" for linked server Ora_RO'.
    In event log i see next:
    The machine-default permission settings do not grant Local Activation permission for the COM Server application with CLSID 
    {2206CDB0-19C1-11D1-89E0-00C04FD7A829}
     and APPID 
    {2206CDB0-19C1-11D1-89E0-00C04FD7A829}
     to the user NT AUTHORITY\NETWORK SERVICE SID (S-1-5-20) from address LocalHost (Using LRPC). This security permission can be modified using the Component Services administrative tool.
    So, MSDAINITIALIZE Class fails to start. I cannot locate this service under dcomcnfg. Could you help me?

    The error seems to be clear what is causing the issue, check this link to fix this issue
    Here the scenario is with SharePoint instead oracle so you can make out:-
    http://www.wictorwilen.se/Post/Fix-the-SharePoint-DCOM-10016-error-on-Windows-Server-2008-R2.aspx
    http://social.technet.microsoft.com/Forums/en-US/696204d5-b07e-46db-a785-737ea57b8da2/distributed-com-error-message
    Mark ANSWER if this reply resolves your query, If helpful then VOTE HELPFUL
    INSQLSERVER.COM
    Mohammad Nizamuddin

  • SQL Server Service is stoping with an Error Code : 1814

    Hi,
    I have an SCCM Server in My organization. Where we have installed Microsoft SQL Server 2008 R2 for the database of SCCM Application.
    Now I am not able to Start the SCCM console due to some dependent Services are not starting. 3 services has to be started for the perfect working of SCCM.
    1)SQL Server
    2) SQL Server Agent
    3) SQL Server Reporting Services
    Out of three the first two services are not starting at all. I am getting an error while trying to start SQL Server Services.
    "  Windows Could not start the SQL Server (MSSQLSERVER) on Local Computer. For more information, review the system event Log, If this is a non-Microsoft Service, contact the service vender , and refer to service-specific error code
    1814."
    Please help me to start the services and resolve the SCCM Server issue.
    Thanks,
    Henoy TM
    +918888631370

    Hi Xing,
    I have check the Error Log : Please find the logfile details:
    2013-04-11 11:11:57.54 Server      Microsoft SQL Server 2008 R2 (SP1) - 10.50.2811.0 (X64)
     Apr  6 2012 01:59:29
     Copyright (c) Microsoft Corporation
     Enterprise Edition (64-bit) on Windows NT 6.1 <X64> (Build 7601: Service Pack 1)
    2013-04-11 11:11:57.54 Server      (c) Microsoft Corporation.
    2013-04-11 11:11:57.54 Server      All rights reserved.
    2013-04-11 11:11:57.54 Server      Server process ID is 10348.
    2013-04-11 11:11:57.54 Server      System Manufacturer: 'HP', System Model: 'ProLiant DL380 G6'.
    2013-04-11 11:11:57.54 Server      Authentication mode is WINDOWS-ONLY.
    2013-04-11 11:11:57.54 Server      Logging SQL Server messages in file 'H:\Program Files\Microsoft SQL Server\MSSQL10_50.MSSQLSERVER\MSSQL\Log\ERRORLOG'.
    2013-04-11 11:11:57.54 Server      This instance of SQL Server last reported using a process ID of 4428 at 4/11/2013 10:41:54 AM (local) 4/11/2013 5:11:54 AM (UTC). This is an informational message only; no user action is required.
    2013-04-11 11:11:57.54 Server      Registry startup parameters:
      -d H:\Program Files\Microsoft SQL Server\MSSQL10_50.MSSQLSERVER\MSSQL\DATA\master.mdf
      -e H:\Program Files\Microsoft SQL Server\MSSQL10_50.MSSQLSERVER\MSSQL\Log\ERRORLOG
      -l H:\Program Files\Microsoft SQL Server\MSSQL10_50.MSSQLSERVER\MSSQL\DATA\mastlog.ldf
      -T 8295
      -T 4199
    2013-04-11 11:11:57.56 Server      SQL Server is starting at normal priority base (=7). This is an informational message only. No user action is required.
    2013-04-11 11:11:57.56 Server      Detected 8 CPUs. This is an informational message; no user action is required.
    2013-04-11 11:11:57.59 Server      Using dynamic lock allocation.  Initial allocation of 2500 Lock blocks and 5000 Lock Owner blocks per node.  This is an informational message only.  No user action is required.
    2013-04-11 11:11:57.61 Server      Node configuration: node 0: CPU mask: 0x00000000000000f0:0 Active CPU mask: 0x00000000000000f0:0. This message provides a description of the NUMA configuration for this computer. This is an informational
    message only. No user action is required.
    2013-04-11 11:11:57.61 Server      Node configuration: node 1: CPU mask: 0x000000000000000f:0 Active CPU mask: 0x000000000000000f:0. This message provides a description of the NUMA configuration for this computer. This is an informational
    message only. No user action is required.
    2013-04-11 11:11:57.66 spid9s      Starting up database 'master'.
    2013-04-11 11:11:58.24 spid9s      Resource governor reconfiguration succeeded.
    2013-04-11 11:11:58.24 spid9s      SQL Server Audit is starting the audits. This is an informational message. No user action is required.
    2013-04-11 11:11:58.24 spid9s      SQL Server Audit has started the audits. This is an informational message. No user action is required.
    2013-04-11 11:11:58.24 spid9s      FILESTREAM: effective level = 0, configured level = 0, file system access share name = 'MSSQLSERVER'.
    2013-04-11 11:11:58.27 spid9s      SQL Trace ID 1 was started by login "sa".
    2013-04-11 11:11:58.27 spid9s      Starting up database 'mssqlsystemresource'.
    2013-04-11 11:11:58.29 spid9s      The resource database build version is 10.50.2811. This is an informational message only. No user action is required.
    2013-04-11 11:11:58.38 spid9s      Server name is 'SGL-PANJ-SCCM'. This is an informational message only. No user action is required.
    2013-04-11 11:11:58.39 spid12s     Starting up database 'model'.
    2013-04-11 11:11:58.39 Server      The certificate [Cert Hash(sha1) "6E37DB5BAE65C704EF7C1BA0DE6587F34B5E8A53"] was successfully loaded for encryption.
    2013-04-11 11:11:58.40 Server      Server is listening on [ 'any' <ipv6> 1433].
    2013-04-11 11:11:58.40 Server      Server is listening on [ 'any' <ipv4> 1433].
    2013-04-11 11:11:58.40 Server      Server local connection provider is ready to accept connection on [
    \\ . \pipe \SQLLocal \ MSSQLSERVER].
    2013-04-11 11:11:58.40 Server      Server named pipe provider is ready to accept connection on [ \\. \ pipe\ sql \ query].
    2013-04-11 11:11:58.40 Server      Server is listening on [ ::1 <ipv6> 1434].
    2013-04-11 11:11:58.40 Server      Server is listening on [ 127.0.0.1 <ipv4> 1434].
    2013-04-11 11:11:58.40 Server      Dedicated admin connection support was established for listening locally on port 1434.
    2013-04-11 11:11:58.41 Logon       Error: 17187, Severity: 16, State: 1.
    2013-04-11 11:11:58.41 Logon       SQL Server is not ready to accept new client connections. Wait a few minutes before trying again. If you have access to the error log, look for the informational message that indicates that SQL
    Server is ready before trying to connect again.  [CLIENT: 172.17.5.20]
    2013-04-11 11:11:58.42 spid12s     The database 'model' is marked RESTORING and is in a state that does not allow recovery to be run.
    2013-04-11 11:11:58.42 spid12s     Error: 927, Severity: 14, State: 2.
    2013-04-11 11:11:58.42 spid12s     Database 'model' cannot be opened. It is in the middle of a restore.
    2013-04-11 11:11:58.42 spid12s     Could not create tempdb. You may not have enough disk space available. Free additional disk space by deleting other files on the tempdb drive and then restart SQL Server. Check for additional errors in
    the event log that may indicate why the tempdb files could not be initialized.
    2013-04-11 11:11:58.42 spid12s     SQL Trace was stopped due to server shutdown. Trace ID = '1'. This is an informational message only; no user action is required.
    2013-04-11 11:11:58.43 Server      The SQL Server Network Interface library could not register the Service Principal Name (SPN) for the SQL Server service. Error: 0x2098, state: 15. Failure to register an SPN may cause integrated authentication
    to fall back to NTLM instead of Kerberos. This is an informational message. Further action is only required if Kerberos authentication is required by authentication policies.
    2013-04-11 11:11:58.43 Server      SQL Server is now ready for client connections. This is an informational message; no user action is required.
    2013-04-11 11:11:58.52 Logon       Error: 17188, Severity: 16, State: 1.
    2013-04-11 11:11:58.52 Logon       SQL Server cannot accept new connections, because it is shutting down. The connection has been closed. [CLIENT: ::1]
    2013-04-11 11:11:58.54 Logon       Error: 17188, Severity: 16, State: 1.
    2013-04-11 11:11:58.54 Logon       SQL Server cannot accept new connections, because it is shutting down. The connection has been closed. [CLIENT: 192.168.6.2]
    2013-04-11 11:11:58.57 spid15s     A new instance of the full-text filter daemon host process has been successfully started.
    2013-04-11 11:11:58.60 spid16s     Starting up database 'ReportServer'.
    2013-04-11 11:11:58.60 spid17s     Starting up database 'ReportServerTempDB'.
    2013-04-11 11:11:58.60 spid18s     Starting up database 'CM_P01'.
    2013-04-11 11:11:58.60 spid15s     Starting up database 'msdb'.
    Cannot close event log because there are still event handle users active.
    Regards,
    Henoy

  • SQL Reporting Services stops on my SharePoint 2007 Moss environment?

    Hi,
    I have SharePoint 2007 Moss SP3 installed on my VMWare server. I have a separate database VMWare server. I have SQL Server Reporting Services configured. Every other day the SQL Reporting Service stops, it seems to time out and logs a 7031 windows event.
    I've had to create a scheduled task to restart this service every day at 4am. The OWSTIMER process consumes around 50% CPU. Any solutions for the above?
    Thanks.

    Hi AspNet-Scotland,
    The application pool for Central Admin might be timing out, increasing the shutdown time limit for the process model from the default of 90 seconds to something longer (300 seconds) should resolve it if the cause is time-outs.
    This post explains how to change the Shutdown Time limit: 
    http://www.sharepointpapa.com/blog/_layouts/15/start.aspx#/Lists/Posts/Post.aspx?ID=20
    scroll down about half way on the post, or search for High level steps,
    Cheers,
    Stacy Anothersharepointblog.blogspot.com

  • Automatically start SQL Agent service after SQL Server service fails and starts.

    Hi! 
    I have SQL Server 2008 R2 with two main services - SQL Server and SQL Agent.
    I'll try to describe my situation. It happens very occasionally, but sometimes SQL Server service terminates unexpectedly. It's my log:
    09/13/2013 10:46:21,Service Control Manager,Error,The SQL Server (MSSQLSERVER) service terminated unexpectedly.  It has done this 1 time(s).  The following corrective action will be taken in 120000 milliseconds: Restart the service.
    09/13/2013 10:46:21,,Error,[359] The local host server is not running,,,,
    09/13/2013 10:46:22,MSSQLSERVER,Error,The MSSQLSERVER service terminated unexpectedly.,Server,1073760843,,
    09/13/2013 10:46:22,,Warning,[139] AutoRestart: Attempting to restart the MSSQLSERVER service (attempt #1)...,,,,
    09/13/2013 10:46:27,,Warning,[139] AutoRestart: Attempting to restart the MSSQLSERVER service (attempt #2)...,,,,
    09/13/2013 10:46:32,,Warning,[139] AutoRestart: Attempting to restart the MSSQLSERVER service (attempt #3)...,,,,
    09/13/2013 10:46:32,,Error,[140] AutoRestart: The MSSQLSERVER service could not be restarted after 3 attempts,,,,
    09/13/2013 10:46:32,,Warning,[360] SQLServerAgent initiating shutdown following MSSQLSERVER shutdown,,,,
    As you can see, SQL Server service  terminates unexpectedly. Then SQL Agent service tries to start SQL Server service. After unsuccessfully attempts to start SQL Server service, SQL Agent service stops itself. I have the option setting in SQL Server
    service to start itself after unexpectedly stop within 2 minutes and it is works well. But I have to start my SQL Agent service after this manually. Unfortunately, I can't investigate the reason of my SQL Server stops unexpectedly and in this case I just want
    to make the settings to start both of my services SQL Server and SQL Agent automatically after this.  How can I set up this? How can I make my SQL Agent service starts after SQL Server service?

    Hello,
    SQL server agent service depends on SQL server service so unless SQL server service comes online agent will not come online so agent is depended on SQL server not the other wise.
    Now is your server 2008 R2 patched to latest service pack (SP2).If not please upgrade it to latest SP.Some fixes are there in Sp which will subside this issue.Can you paste output of
    select @@version
    >>Then SQL Agent service tries to start SQL Server service.No this is not the case
    >>Unfortunately, I can't investigate the reason of my SQL Server stops unexpectedly
    Did you checked sql server errorlog and windows event log completely.Please do so and paste if you find some more info
    Please mark this reply as the answer or vote as helpful, as appropriate, to make it useful for other readers

  • SQL server service broker

    Hi All,
    I have requirement to implement SQL server service broker in SQL server 2008, please guide me for that, how and why we use for that, then have any other option to achieve. 
    Please give any good stuff to learn service broker.
    Thanks,
    Jai.

    This is a very good book to learn about Service Broker:
    http://www.amazon.com/Rational-Server-Service-Broker-Guides/dp/1932577270/ref=sr_1_1?ie=UTF8&qid=1418942042&sr=8-1&keywords=%22roger+wolter%22+%22service+broker%22&pebp=1418942044114
    In difference from many other computer books, this is not a brick, but only 220 pages.
    Also, Remus Rusanu's blog covers many important concepts with Service Broker:
    http://rusanu.com/?s=service+broker
    Erland Sommarskog, SQL Server MVP, [email protected]

Maybe you are looking for

  • Document and data not showing in mac

    I upgrade my iCloud to iCloud Drive when I used the Yosemite . Yesterday, I reinstall Mavericks and then iCloud is not working anymore. I can't see iCloud in Pages , Numbers, Sketch 3 , etc. I can't access any iCloud Data anymore and I can't work at

  • Itunes installation doesnt work because of Quicktime

    I've had an ipod for a while, and then we switched to XP PRO for increased security. After sometime itunes stopped working. So my dad and i have used like every uninstaller and remover and some piece of quicktime is still somewhere on my computer. Wh

  • AddChild() vs addChildAt() methods?

    I have the following code: var container_mc:Container = new Container(); for (var i:int=0;i<4;i++){ var myTrap_mc:MyTrap = new MyTrap(); var myTrapR_mc:MyTrapR = new MyTrapR(); container_mc.addChildAt(myTrap_mc,i); container_mc.addChildAt(myTrapR_mc,

  • Creating TabStrip control with VisualComposer

    Hi, I am NW04 version for Visual Composer. I want to create a TabStrip control on which I want to show two table from a RFC. Is there any facility available to create this like NW2004s. I found from some posts that NW04 verson doesn't have capabiliti

  • Super User Profile for Bex Query Designer

    Hi There, What is the profile that will allow a user to create local queries, copy an existing (locked transported query), and change local queries - when the system is locked for change.  We are using SAP NetWeaver BI 7.0x Regards Fiona