title: How to fix error “SQL Server (MSSQLSERVER) stopped automatically?
body: <p>I am not able to login in my SQL server. I am getting this error message when I am trying to connect it.</p>
  
  <blockquote>
    <p>A network-related or instance-specific error occurred while
    establishing a connection to SQL Server. The server was not found or
    was not accessible. Verify that the instance name is correct and that
    SQL Server is configured to allow remote connections. (provider: Named
    Pipes Provider, error: 40 - Could not open a connection to SQL Server)
    (Microsoft SQL Server, Error: 2)</p>
  </blockquote>
  
  <p>When I look SQL Server Configuration manager then I have observed that my "SQL SERVER (MSSQLSERVER)" is being stopped automatically with in couple of seconds. I have tries to started yet but still it's being stopped.</p>
  
  <p>Have any one any idea on same.</p>
  
  <p><a href="https://i.stack.imgur.com/zTHqL.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/zTHqL.png" alt="enter image description here"></a></p>
  
  <p><a href="https://i.stack.imgur.com/u7d1R.png" rel="nofollow noreferrer">enter image description here</a></p>
  
  <p>Here the error log also</p>
  
  <pre><code>&gt; 2016-05-24 12:56:11.01 Server      Microsoft SQL Server 2014 -
  &gt; 12.0.4213.0 (Intel X86)   Jun  9 2015 12:17:04    Copyright (c) Microsoft Corporation     Standard Edition on Windows NT 6.1 &lt;X64&gt; (Build
  &gt; 7601: ) (WOW64)
  &gt; 
  &gt; 2016-05-24 12:56:11.01 Server      UTC adjustment: 5:30 2016-05-24
  &gt; 12:56:11.01 Server      (c) Microsoft Corporation. 2016-05-24
  &gt; 12:56:11.01 Server      All rights reserved. 2016-05-24 12:56:11.01
  &gt; Server      Server process ID is 3840. 2016-05-24 12:56:11.01 Server  
  &gt; System Manufacturer: 'Gigabyte Technology Co., Ltd.', System Model:
  &gt; 'To be filled by O.E.M.'. 2016-05-24 12:56:11.01 Server     
  &gt; Authentication mode is MIXED. 2016-05-24 12:56:11.01 Server     
  &gt; Logging SQL Server messages in file 'C:\Program Files (x86)\Microsoft
  &gt; SQL Server\MSSQL12.MSSQLSERVER\MSSQL\Log\ERRORLOG'. 2016-05-24
  &gt; 12:56:11.01 Server      The service account is 'NT
  &gt; Service\MSSQLSERVER'. This is an informational message; no user action
  &gt; is required. 2016-05-24 12:56:11.01 Server      Registry startup
  &gt; parameters:    -d C:\Program Files (x86)\Microsoft SQL
  &gt; Server\MSSQL12.MSSQLSERVER\MSSQL\DATA\master.mdf   -e C:\Program Files
  &gt; (x86)\Microsoft SQL Server\MSSQL12.MSSQLSERVER\MSSQL\Log\ERRORLOG      -l
  &gt; C:\Program Files (x86)\Microsoft SQL
  &gt; Server\MSSQL12.MSSQLSERVER\MSSQL\DATA\mastlog.ldf 2016-05-24
  &gt; 12:56:11.01 Server      Command Line Startup Parameters:   -s
  &gt; "MSSQLSERVER" 2016-05-24 12:56:11.23 Server      SQL Server detected 1
  &gt; sockets with 2 cores per socket and 4 logical processors per socket, 4
  &gt; total logical processors; using 4 logical processors based on SQL
  &gt; Server licensing. This is an informational message; no user action is
  &gt; required. 2016-05-24 12:56:11.23 Server      SQL Server is starting at
  &gt; normal priority base (=7). This is an informational message only. No
  &gt; user action is required. 2016-05-24 12:56:11.23 Server      Detected
  &gt; 3989 MB of RAM. This is an informational message; no user action is
  &gt; required. 2016-05-24 12:56:11.23 Server      Using conventional memory
  &gt; in the memory manager. 2016-05-24 12:56:11.24 Server      Buffer pool
  &gt; extension is not supported on the 32-bit architecture. 2016-05-24
  &gt; 12:56:11.24 Server      Default collation:
  &gt; SQL_Latin1_General_CP1_CI_AS (us_english 1033) 2016-05-24 12:56:11.26
  &gt; Server      The maximum number of dedicated administrator connections
  &gt; for this instance is '1' 2016-05-24 12:56:11.26 Server      This
  &gt; instance of SQL Server last reported using a process ID of 2632 at
  &gt; 5/24/2016 12:51:45 PM (local) 5/24/2016 7:21:45 AM (UTC). This is an
  &gt; informational message only; no user action is required. 2016-05-24
  &gt; 12:56:11.26 Server      Node configuration: node 0: CPU mask:
  &gt; 0x0000000f:0 Active CPU mask: 0x0000000f:0. This message provides a
  &gt; description of the NUMA configuration for this computer. This is an
  &gt; informational message only. No user action is required. 2016-05-24
  &gt; 12:56:11.26 Server      Using dynamic lock allocation.  Initial
  &gt; allocation of 2500 Lock blocks and 5000 Lock Owner blocks per node. 
  &gt; This is an informational message only.  No user action is required.
  &gt; 2016-05-24 12:56:11.27 Server      Software Usage Metrics is disabled.
  &gt; 2016-05-24 12:56:11.27 spid11s     Starting up database 'master'.
  &gt; 2016-05-24 12:56:11.31 spid11s     28 transactions rolled forward in
  &gt; database 'master' (1:0). This is an informational message only. No
  &gt; user action is required. 2016-05-24 12:56:11.31 spid11s     0
  &gt; transactions rolled back in database 'master' (1:0). This is an
  &gt; informational message only. No user action is required. 2016-05-24
  &gt; 12:56:11.37 Server      CLR version v4.0.30319 loaded. 2016-05-24
  &gt; 12:56:11.41 Server      Common language runtime (CLR) functionality
  &gt; initialized using CLR version v4.0.30319 from
  &gt; C:\Windows\Microsoft.NET\Framework\v4.0.30319\. 2016-05-24 12:56:11.52
  &gt; spid11s     SQL Server Audit is starting the audits. This is an
  &gt; informational message. No user action is required. 2016-05-24
  &gt; 12:56:11.52 spid11s     SQL Server Audit has started the audits. This
  &gt; is an informational message. No user action is required. 2016-05-24
  &gt; 12:56:11.53 spid11s     SQL Trace ID 1 was started by login "sa".
  &gt; 2016-05-24 12:56:11.53 spid11s     Server name is 'AZURE'. This is an
  &gt; informational message only. No user action is required. 2016-05-24
  &gt; 12:56:11.66 spid17s     A new instance of the full-text filter daemon
  &gt; host process has been successfully started. 2016-05-24 12:56:11.81
  &gt; spid19s     Starting up database 'msdb'. 2016-05-24 12:56:11.81
  &gt; spid20s     Starting up database 'ReportServer'. 2016-05-24
  &gt; 12:56:11.81 spid21s     Starting up database 'ReportServerTempDB'.
  &gt; 2016-05-24 12:56:11.81 spid16s     A self-generated certificate was
  &gt; successfully loaded for encryption. 2016-05-24 12:56:11.81 spid22s    
  &gt; Starting up database '360IT'. 2016-05-24 12:56:11.81 spid23s    
  &gt; Starting up database 'True_Athuntication_Release_1'. 2016-05-24
  &gt; 12:56:11.82 spid16s     Server is listening on [ 'any' &lt;ipv6&gt; 1433].
  &gt; 2016-05-24 12:56:11.82 spid16s     Server is listening on [ 'any'
  &gt; &lt;ipv4&gt; 1433]. 2016-05-24 12:56:11.82 spid16s     Server local
  &gt; connection provider is ready to accept connection on [
  &gt; \\.\pipe\SQLLocal\MSSQLSERVER ]. 2016-05-24 12:56:11.82 spid16s    
  &gt; Server named pipe provider is ready to accept connection on [
  &gt; \\.\pipe\sql\query ]. 2016-05-24 12:56:11.82 Server      Server is
  &gt; listening on [ ::1 &lt;ipv6&gt; 1434]. 2016-05-24 12:56:11.82 Server     
  &gt; Server is listening on [ 127.0.0.1 &lt;ipv4&gt; 1434]. 2016-05-24
  &gt; 12:56:11.82 Server      Dedicated admin connection support was
  &gt; established for listening locally on port 1434. 2016-05-24 12:56:11.82
  &gt; spid16s     SQL Server is now ready for client connections. This is an
  &gt; informational message; no user action is required. 2016-05-24
  &gt; 12:56:11.82 Server      SQL Server is attempting to register a Service
  &gt; Principal Name (SPN) for the SQL Server service. Kerberos
  &gt; authentication will not be possible until a SPN is registered for the
  &gt; SQL Server service. This is an informational message. No user action
  &gt; is required. 2016-05-24 12:56:11.82 Server      The SQL Server Network
  &gt; Interface library could not register the Service Principal Name (SPN)
  &gt; [ MSSQLSvc/azure ] for the SQL Server service. Windows return code:
  &gt; 0xffffffff, state: 63. Failure to register a SPN might cause
  &gt; integrated authentication to use NTLM instead of Kerberos. This is an
  &gt; informational message. Further action is only required if Kerberos
  &gt; authentication is required by authentication policies and if the SPN
  &gt; has not been manually registered. 2016-05-24 12:56:11.82 Server     
  &gt; The SQL Server Network Interface library could not register the
  &gt; Service Principal Name (SPN) [ MSSQLSvc/azure:1433 ] for the SQL
  &gt; Server service. Windows return code: 0xffffffff, state: 63. Failure to
  &gt; register a SPN might cause integrated authentication to use NTLM
  &gt; instead of Kerberos. This is an informational message. Further action
  &gt; is only required if Kerberos authentication is required by
  &gt; authentication policies and if the SPN has not been manually
  &gt; registered. 2016-05-24 12:56:11.83 spid24s     Starting up database
  &gt; 'True_Talent__staging_Release_1'. 2016-05-24 12:56:11.83 spid12s    
  &gt; Starting up database 'mssqlsystemresource'. 2016-05-24 12:56:11.83
  &gt; spid35s     Starting up database 'pkk'. 2016-05-24 12:56:11.83 spid32s
  &gt; Starting up database 'True_Athuntication_ver_1'. 2016-05-24
  &gt; 12:56:11.83 spid30s     Starting up database 'truehrms_actualdata'.
  &gt; 2016-05-24 12:56:11.83 spid31s     Starting up database
  &gt; 'TRUEHRM_DEMO'. 2016-05-24 12:56:11.83 spid27s     Starting up
  &gt; database 'True_Talent_Internal_1'. 2016-05-24 12:56:11.83 spid29s    
  &gt; Starting up database 'DEMO_TEST'. 2016-05-24 12:56:11.83 spid28s    
  &gt; Starting up database 'ATSAuthentication_live'. 2016-05-24 12:56:11.83
  &gt; spid25s     Starting up database 'True_Athuntication_Internal_1'.
  &gt; 2016-05-24 12:56:11.83 spid33s     Starting up database
  &gt; 'True_Talent_ver_1'. 2016-05-24 12:56:11.83 spid34s     Starting up
  &gt; database 'hrmlog'. 2016-05-24 12:56:12.05 spid12s     The resource
  &gt; database build version is 12.00.4100. This is an informational message
  &gt; only. No user action is required. 2016-05-24 12:56:12.87 spid21s     1
  &gt; transactions rolled forward in database 'ReportServerTempDB' (6:0).
  &gt; This is an informational message only. No user action is required.
  &gt; 2016-05-24 12:56:12.92 spid29s     1 transactions rolled forward in
  &gt; database 'DEMO_TEST' (13:0). This is an informational message only. No
  &gt; user action is required. 2016-05-24 12:56:12.97 spid34s     1
  &gt; transactions rolled forward in database 'hrmlog' (18:0). This is an
  &gt; informational message only. No user action is required. 2016-05-24
  &gt; 12:56:13.23 spid23s     1 transactions rolled forward in database
  &gt; 'True_Athuntication_Release_1' (8:0). This is an informational message
  &gt; only. No user action is required. 2016-05-24 12:56:13.29 spid28s     2
  &gt; transactions rolled forward in database 'ATSAuthentication_live'
  &gt; (12:0). This is an informational message only. No user action is
  &gt; required. 2016-05-24 12:56:13.48 spid21s     0 transactions rolled
  &gt; back in database 'ReportServerTempDB' (6:0). This is an informational
  &gt; message only. No user action is required. 2016-05-24 12:56:13.50
  &gt; spid12s     Recovery completed for database mssqlsystemresource
  &gt; (database ID 32767) in 1 second(s) (analysis 380 ms, redo 0 ms, undo
  &gt; 218 ms.) This is an informational message only. No user action is
  &gt; required. 2016-05-24 12:56:13.60 spid29s     0 transactions rolled
  &gt; back in database 'DEMO_TEST' (13:0). This is an informational message
  &gt; only. No user action is required. 2016-05-24 12:56:13.60 spid28s     0
  &gt; transactions rolled back in database 'ATSAuthentication_live' (12:0).
  &gt; This is an informational message only. No user action is required.
  &gt; 2016-05-24 12:56:13.83 spid25s     49 transactions rolled forward in
  &gt; database 'True_Athuntication_Internal_1' (10:0). This is an
  &gt; informational message only. No user action is required. 2016-05-24
  &gt; 12:56:13.86 spid35s     Recovery completed for database pkk (database
  &gt; ID 19) in 1 second(s) (analysis 165 ms, redo 0 ms, undo 216 ms.) This
  &gt; is an informational message only. No user action is required.
  &gt; 2016-05-24 12:56:14.15 spid23s     0 transactions rolled back in
  &gt; database 'True_Athuntication_Release_1' (8:0). This is an
  &gt; informational message only. No user action is required. 2016-05-24
  &gt; 12:56:14.15 spid23s     Recovery completed for database
  &gt; True_Athuntication_Release_1 (database ID 8) in 1 second(s) (analysis
  &gt; 261 ms, redo 0 ms, undo 276 ms.) This is an informational message
  &gt; only. No user action is required. 2016-05-24 12:56:14.76 spid34s     0
  &gt; transactions rolled back in database 'hrmlog' (18:0). This is an
  &gt; informational message only. No user action is required. 2016-05-24
  &gt; 12:56:14.76 spid34s     Recovery completed for database hrmlog
  &gt; (database ID 18) in 2 second(s) (analysis 186 ms, redo 89 ms, undo
  &gt; 1171 ms.) This is an informational message only. No user action is
  &gt; required. 2016-05-24 12:56:14.94 spid20s     1 transactions rolled
  &gt; forward in database 'ReportServer' (5:0). This is an informational
  &gt; message only. No user action is required. 2016-05-24 12:56:15.17 Logon
  &gt; Error: 18456, Severity: 14, State: 38. 2016-05-24 12:56:15.17 Logon   
  &gt; Login failed for user 'NT SERVICE\ReportServer'. Reason: Failed to
  &gt; open the explicitly specified database 'ReportServer'. [CLIENT:
  &gt; fe80::4cb1:8acf:dce2:e32a%11] 2016-05-24 12:56:15.23 spid32s     1
  &gt; transactions rolled forward in database 'True_Athuntication_ver_1'
  &gt; (16:0). This is an informational message only. No user action is
  &gt; required. 2016-05-24 12:56:15.47 spid25s     0 transactions rolled
  &gt; back in database 'True_Athuntication_Internal_1' (10:0). This is an
  &gt; informational message only. No user action is required. 2016-05-24
  &gt; 12:56:15.47 spid25s     Recovery completed for database
  &gt; True_Athuntication_Internal_1 (database ID 10) in 1 second(s)
  &gt; (analysis 264 ms, redo 50 ms, undo 1412 ms.) This is an informational
  &gt; message only. No user action is required. 2016-05-24 12:56:15.66
  &gt; spid20s     0 transactions rolled back in database 'ReportServer'
  &gt; (5:0). This is an informational message only. No user action is
  &gt; required. 2016-05-24 12:56:15.77 spid12s     Starting up database
  &gt; 'model'. 2016-05-24 12:56:15.81 spid32s     0 transactions rolled back
  &gt; in database 'True_Athuntication_ver_1' (16:0). This is an
  &gt; informational message only. No user action is required. 2016-05-24
  &gt; 12:56:16.30 spid12s     Error: 9003, Severity: 20, State: 1.
  &gt; 2016-05-24 12:56:16.30 spid12s     The log scan number (35:376:1)
  &gt; passed to log scan in database 'model' is not valid. This error may
  &gt; indicate data corruption or that the log file (.ldf) does not match
  &gt; the data file (.mdf). If this error occurred during replication,
  &gt; re-create the publication. Otherwise, restore from backup if the
  &gt; problem results in a failure during startup. 2016-05-24 12:56:16.30
  &gt; spid12s     SQL Server shutdown has been initiated 2016-05-24
  &gt; 12:56:16.30 spid12s     SQL Trace was stopped due to server shutdown.
  &gt; Trace ID = '1'. This is an informational message only; no user action
  &gt; is required.
  </code></pre>