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

Similar Messages

  • 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  

  • 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

  • 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

  • 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

  • Problem installing SQL Server 2012 SP1: "managed sql server installer has stopped working"

    Hello,
    I have a big problem.
    I just downloaded SQL Server 2012 SP1 and I only want to install SSMS. The installer always crashes with an error message "managed sql server installer has stopped working".
    I already tried all solutions from Google for this problem but nothing works.
    Can someone help me plase?
    My System: Window 8 Pro with Visual Studio 2012.
    Thanks
    Sven

    Would you please uplaod/share SQL Server setup logs
    C:\Program
    Files\Microsoft
    SQL Server\110\Setup
    Bootstrap\Log\20130125_133342
    to file sharing service like SkyDrive.com
    FAQ
    Regards,
    Ahmed Ibrahim
    SQL Server Setup Team
    My Blog
    This posting is provided "AS IS" with no warranties, and confers no rights. Please remember to click
    "Mark as Answer" and "Vote as Helpful"
    on posts that help you.
    This can be beneficial to other community members reading the thread.

  • Changing sql server service and sql server agent service startup account in SQL Server hosting SharePoint DB

    Hi 
    i have a sharepoint deployment with one SQL Server (running on VM) hosting the config DB and another SQL Server (Physical Host because VM was running out of space) to host the huge Content DBs. I need to schedule automatic backups of the Content DBs to a
    network share. For that i need to run the SQL Server Service with an account having permissions to the share as suggested in https://support.microsoft.com/kb/207187?wa=wsignin1.0
    I tried changing the logon as a service account to a domain
    account which has permissions to the Network Share and is also in local Administrators group of SQL Server and has "public and sysadmin" roles in SQL Server but that caused an issue. the SharePoint Web Application started showing a White Screen so
    I had to revert back to the default accounts i.e. NT Service\SQLSERVERAGENT and NT Service\MSSQLSERVER. I viewed the event logs . These are the types of error i got after changing the logon as a service account to a domain account
    1) Information Rights Management (IRM): Retried too many times to initialize IRM client. Cannot retry more. Retried times is:0x5.
    System
    Provider
    [ Name]
    Microsoft-SharePoint Products-SharePoint Foundation
    [ Guid]
    {6FB7E0CD-52E7-47DD-997A-241563931FC2}
    EventID
    5148
    Version
    15
    Level
    2
    Task
    9
    Opcode
    0
    Keywords
    0x4000000000000000
    TimeCreated
    [ SystemTime]
    2015-02-02T04:46:04.750899500Z
    EventRecordID
    176477
    Correlation
    [ ActivityID]
    {8FACE59C-1E17-50D0-7135-25FDB824CDBE}
    Execution
    [ ProcessID]
    6912
    [ ThreadID]
    8872
    Channel
    Application
    Computer
    Security
    [ UserID]
    S-1-5-21-876248814-3204482948-604612597-111753
    EventData
    hex0
    0x5
    2)
    Unknown SQL Exception 0 occurred. Additional error information from SQL Server is included below.
    The target principal name is incorrect.  Cannot generate SSPI context.
    System
    Provider
    [ Name]
    Microsoft-SharePoint Products-SharePoint Foundation
    [ Guid]
    {6FB7E0CD-52E7-47DD-997A-241563931FC2}
    EventID
    5586
    Version
    15
    Level
    2
    Task
    3
    Opcode
    0
    Keywords
    0x4000000000000000
    TimeCreated
    [ SystemTime]
    2015-02-02T07:01:35.843757700Z
    EventRecordID
    176490
    Correlation
    [ ActivityID]
    {50B4E59C-5E3A-50D0-7135-22AD91909F02}
    Execution
    [ ProcessID]
    6912
    [ ThreadID]
    5452
    Channel
    Application
    Computer
    Security
    [ UserID]
    S-1-5-17
    EventData
    int0
    0
    string1
    The target principal name is incorrect. Cannot generate SSPI context.

    Hi Aparna,
    According to your description, you get the above two errors when scheduling backups of Content DB. Right?
    Based on those two error messages, they are related to the service principal name(SPN) for SQL Server service. Please verify the if the SPN is registered successfully. You can view it in ADSI Edit or use command line. Please see:
    http://blogs.msdn.com/b/psssql/archive/2010/03/09/what-spn-do-i-use-and-how-does-it-get-there.aspx
    When installing SQL Server, those two services below should be registered:
            MSSQLSvc/servername:1433      
            MSSQLSvc/servername
    Please check if those SPNs or duplicated SPNs exist. You can use command to reset SPN or remove duplicated SPN and add new one. See:
    Setspn.
    We have also met this issue when this SPN is registered under Administrator. Please try to register it under Computer. You can add it in ADSI Edit.
    If you have any question, please feel free to ask.
    Simon Hou
    TechNet Community Support

  • 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

  • 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 is not reflecting to the new name.

    Hi,
    I just rename the computer and use the command below to rename the SQL Server but the SQL Server Service is not reflecting to the new name.
    Is there a way to change the SQL Server Service and agent to reflect the new name or do I have to re-install sql server.
    I am using SQL 2008 R2.
    Thank you in advance.

    If running "SELECT
    @@servername" yields the old server name, it means the instance has not been renamed.
    you must run statement to drop the old name of the instance and recreate it with the new name as the default (local) one..
    EXEC master.dbo.sp_dropserver 'MACHINENAME\OLDINSTANCENAME'
    go
    EXEC master.dbo.sp_addserver 'MACHINENAME\newINSTANCENAME', 'local'
    go
    I took the code here: 
    http://social.msdn.microsoft.com/Forums/sqlserver/en-US/c07ab906-dabf-4303-9737-d430d82c4f42/how-to-rename-instance-of-sql-server-2008-r2?forum=sqltools
    Once you did this, look at your maintenance plans.  I sometime end up having one or two still following the old name.  Especially if you create this new server from a copy of another virtualized one.

  • SQL Server Service account setup

    Yes, you would have to create a login for it. See your other post for info about the error you're getting.

    I am currently running MS SQL 2008 R2 on a Windows Server 2008 R2 box.  The SQL services are currently running under the NetworkService account and I want to change this to a domain account but I am having some trouble.  I have created the domain account and have tried to go into SSCM and change the account there but I get various errors depending on the service I try to change.  When changing the account on the SQL Server Service I get an error "Access is Denied"
    I am assuming I need to assign some rights to this new account BUT I thought changing the account in SSCM would do that automatically but it looks like that assumption is wrong.
    What is the best procedure for changing the SQL Server Service account to a domain account on SQL Server 2008?
    This topic first appeared in the Spiceworks Community

  • SAP List of Supported SQL Server Service Packs and Cumulative Updates

    Does SAP provide a list of SQL Server Service Packs and Cumulative Updates that will work with BPC 7.0 and 7.5? I see that CU 12 is out for SP1 and CU 2 is out for SP2. I would like to know if I can move the SP2 CU2 or SP1 CU12. My install docs are outdated specifying SP1 CU6.
    Any direction is appreciated.
    Joe

    Hi,
    Please take a look at the below list of the supported OS: This excerpt is from the installation guide.
    SP04 or later: Windows Server 2008 R2 Standard or Enterprise Edition with or without Hyper-V
    Windows Server 2008 Standard or Enterprise Edition with or without Hyper-V, or
    Windows Server 2008 Data Center with or without Hyper-V
    Windows Server 2003 Standard or Enterprise Edition SP2
    Windows Server 2003 Standard configured on the SQL database or OLAP server components only
    Windows Server 2003 R2 Standard or Enterprise Edition SP2
    SAP recommends using Windows Server 2008 64 bit over Windows Server 2003 64 bit. Otherwise, supportability is limited.
    I am not sure what did you mean by the front end. Having said that, 32 bit is supported both on the server and the client machines.
    Hope this helps.

  • Start SQL Server Service in Remote Server using Command Prompt with Single User Mode

    Hi Folks, 
    I am able to STOP/START the Remote SQL Server Service using the following Command.
    sc \\RemoteServerName  START ServiceName 
    How to Start the Remote SQL Server Service using Single User Mode.
    sc \\RemoteServerName  START ServiceName  -m
    Narendran

    Hello,
    sqlservr.exe -m
    or
    sqlservr.exe -m -s       
    (for named instances)
    For more information:
    http://technet.microsoft.com/en-US/library/ms180965(v=SQL.105).aspx
    Configure Windows Firewall or security software properly.
    Hope this helps.
    Regards,
    Alberto Morillo
    SQLCoffee.com

  • SCVMM 2008 R2 - "The SQL Server service account does not have permission to access Active Directory Domain Services (AD DS)."

    I know this question has been asked before, but never for R2, that I can tell, and the posted fixes aren't working. I have just installed SCVMM 2008 R2 on a Windows Server 2008 R2 server, using a remote SQL 2008 SP1 database. When I attempt to connect to SCVMM, I get the following error:
    "The SQL Server service account does not have permission to access Active Directory Domain Services (AD DS).
    Ensure that the SQL Server service is running under a domain account or a computer account that has permission to access AD DS. For more information, see "Some applications and APIs require access to authorization information on account objects" in the Microsoft Knowledge Base at http://go.microsoft.com/fwlink/?LinkId=121054.
    ID: 2607"
    What I've seen online is that this is usually becuase the domain account SCVMM is running as does not have the proper permissions on the SQL database. Here's what I've confirmed:
    1) My SCVMM service account is a local admin on the SCVMM server
    2) My SCVMM service account is a dbowner on the SCVMM database in SQL
    3) My SQL service account is a dbowner on the SCVMM database in SQL
    4) My SQL service account is a domain user (even made it a domain admin, just in case, and it still "doesn't have access to AD DS," which is obviously untrue)
    5) Neither service account is locked out
    Has anyone run in to this? It says in Technet that remote SQL 2008 is supported, as long as the SQL management studio is installed to the SCVMM server, and I installed and patched before I began the SCVMM installation. I just don't know what else to try - I have no errors in event logs, no issues during the installation itself...
    Andrew Topp

    That answer was very unhelpful fr33m4n. The individual mentions that they've received the error that points to the KB article. I currently receive the same error -- there seems to be no resolution. I've run the Microsoft VBS script to add TAUG to the WAAG
    as suggested by 331951, and that made absolutely no difference.
    1) My SCVMM service account is a local admin on the SCVMM server
    2) My SCVMM service account is a dbowner on the SCVMM database in SQL
    3) My SQL service account is a dbowner on the SCVMM database in SQL
    4) My SQL service account is a domain user (even made it a domain admin, just in case, and it still
    "doesn't have access to AD DS," which is obviously untrue)
    The user is also a member of WAAG, the machines have delegated authority to each other. Is there any other solution?

Maybe you are looking for

  • Getting Ripped DVD Video and Audio Into Encore

    Do you have previously authored DVDs that need rework?  Do you want to add menus with greater impact and functionality?  Do you want to add some additional program or supplemental material?  Does a client want their product demo DVD to be updated to

  • CUCM installation fails in ESX server

    Hi, I'm currently trying to install CUCM 9.1 in ESX server 5.1 Attached snap is the error message and my server specs. Kindly help me on this. Thanks & Regards, Sakthivel M

  • SaveAs Document Failed ... Deski document being saved to Favourites folder in Webi

    Post Author: amcc CA Forum: Administration I have been unable to work out what access right is needed for Webi users to be able to save a Deski document to their Favourites folder.  We have some migrated documents containing features that will not co

  • FM- Leave Details & Leave Quota

    Hi, Can anyone help me out with a FM that will give me the leave details and leave quota of an employee.

  • Windows Phone Notification Banner display too short

    So, searched and searched and didn't find anything with the basic keywords directly from the phone.  Amazing that this is not being asked and it being such a basic NEED. I get a TXT message.. any message, pick up the phone to see what is going on and