Служба компонентов database engine ошибка

Столкнулся с интересной ошибкой при установке MS SQL Server 2014 на новом сервере Windows Server 2012 R2. Установка SQL Server прерывается почти в самом конце с

Столкнулся с интересной ошибкой при установке MS SQL Server 2014 на новом сервере Windows Server 2012 R2. Установка SQL Server прерывается почти в самом конце с ошибкой «Не найден дескриптор запуска компонента Database Engine» (Could not find the Database Engine startup handle).

ошибка Could not find the Database Engine startup handle при установке SQL Server 2014

В логе установки Summary.txt при этом присутствует ошибка:

Feature: Database Engine Services
Status: Failed: see logs for details
Reason for failure: An error occurred during the setup process of the feature.
Next Step: Use the following information to resolve the error, uninstall this feature, and then run the setup process again.
Component name: SQL Server Database Engine Services Instance Features
Component error code: 0x851A0019
Error description: Could not find the Database Engine startup handle.

Данная ошибка установки MS SQL Server связана с тем, что используются стандартные настройки установки, при котором служба SQL Server запускается под непривилегированной учетной записью NT ServiceMSSQL$V2014. У данной учетной записи может быть недостаточно полномочий для запуска службы SQL Server, поэтому запустить службу невозможно, и установщик завершается с ошибкой «Could not find the Database Engine startup handle». Также эта ошибка может указывать на то, что ранее на компьютере уже пытались установить SQL Server и не очистили файлы и службы, оставшиеся от предыдущей установки.

Чтобы исправить ошибку установки SQL Server:

  1. Корректно деинсталлируйте все программы, связанные с SQL Server через Панель управления и перезагрузите сервер (проверьте, что не осталось файлов и папок в каталоге C:Program FilesMicrosoft SQL ServerMSSQL12.xxx);
  2. Запустите чистую установку из дистрибутива SQL Server. На вкладке «Server Configuration» убедитесь, что служба SQL Server Database Engine запускается под учетной записью NT ServiceMSSQLSERVER; учетная запись NT ServiceMSSQLSERVER для запуска службы SQL Server Database Engine
  3. Измените эту учетную запись на NT AUTHORITYSYSTEM; запуск установки MSSQLSERVER под NT AUTHORITYSYSTEM
  4. Продолжите установку SQL Server. Ошибка больше не должна появляться.

После окончания установки настоятельно рекомендуем изменить учетную запись, под которой запускается служба SQL Server Database Engine на непривилегированную учетную запись. Эта учетная запись не обязательно должна обладать правами локального администратора сервера (вполне достаточно полномочий внутри SQL Server). Можно использовать аккаунты с правами sysadmin — NT ServiceMSSQLSERVICE или NT ServiceSQLSERVERAGENT. Чтобы изменить учетную запись, под которой работает SQL Server:

  1. Запустите SQL Server Configuration Manager и перейдите в раздел SQL Server Services;
  2. Щелкните по SQL Server (MSSQLSERVER), нажмите кнопку Browse и в поле This account укажите учетную запись, под которой нужно запускать службу или используйте управляемую учетную запись — gMSA (Group Managed Service Accounts). Укажите пароль пользователя и сохраните изменения; измените учетную запись для запуска службы SQL Server (MSSQLSERVER),
  3. Перезапустите службы SQL Server.

Этот способ поможет вам исправить ошибку «Не найден дескриптор запуска компонента Database Engine» при установке любых версий SQL Server (2016, 2014, 2012 или 2008).


Table of Contents

  • Introduction
  • Problem Definition
  • Cause
  • Solution
    • Uninstall
    • Fresh install
  • Looking at SQL Server Errorlog
  • Forum threads related to this issue
  • Suggested Readings
  • See Also

 


Introduction

This article is about how to proceed when you get error message ‘Could not find database engine startup handle ‘ while installing SQL Server 2008 R2/2012 or 2014.

↑ Back to top


Problem Definition

 If you are an active member of
SQL Server Setup and Upgrade forum you must have noticed some users creating a thread with error messages of  ‘Could not find database engine startup handle ‘
while installing SQL Server . This article tries to provide a simple solution to this problem, that many users face during installation of SQL Server 2008 R2, SQL Server 2012 and SQL Server 2014 as well.

Let’s get started. For resources on installing SQL Server 2008/R2/2012/2014; there are lot of good articles which you find in Suggested Readings section .

Its common belief that installation of SQL Server is very easy,  just do *Next, Next * and installation would be complete.

It is correct, it’s simple but internally what all operations go a general user is not aware about it and when he faces issue he feels that SQL Server product is not good ( this is my forum experience where many of Original Poster (OP) get frustrated with
SQL Server installation error). It’s recommend to read below Microsoft articles before proceeding with installation of SQL Server

  1.  Hardware and Software requirement for installing SQL Server
  2.  Install SQL Server from installation wizard
  3.  How to use SQL Server in win 8 and Windows Server environment

Problem is when a user tries to install SQL Server 2012 or 2014 or 2008 R2 during installation error is flashed which says

Could not find database engine startup handle and some Hex error like ‘0x851a0019’ error could also be ‘Wait on the Database Engine recovery handle failed’.

↑ Back to top


Cause

Following can be the reason behind the error message.

  1. The account which user selected on Server Configuration page window ( during installation)  is somehow not able to bring SQL Server database engine services online. Either is lacks privilege or it is corrupted. During installation of database engine services
    SQL Server tries to bring online database services as a internal process but due to startup account either corrupt or not having appropriate privileges it fails to do so and ultimately installation fails.
  2. Other reason is when installation fails first time due to some reason and user uninstall failed installation from add remove program, the un-installation leaves account in broken state so any further attempt to install flashes this error message.
  3. The reason can be also that SQL Server installation was successful in installing SQL Server and its services but due to some other limitation in system or other system related errors SQL Server is not able to come online. The same has been discussed in
    section ‘Looking at SQL Server errorlog’ 

↑ Back to top


Solution

A simple solution to above problem is below.

Uninstall

Uninstall SQL Server completely from add remove program. Make sure no previous failed installation fragments are present on your system. Please use this
link for uninstalling existing instance of SQL Server. If you have SQL Server 2005
use this link.

Below Steps should ONLY be followed if removing SQL Server is giving error and if you have used all means to remove SQL Server and you have failed. If you have doubts about the approach please DONT follow it.

If you are unable to uninstall SQL Server completely because you deleted SQL Server files and un-installation is giving error please follow below method. This method is tested and suggested on

this thread and 
Forum.

Below Solution (about removing reg keys) will work correctly for SQL Server having Just one instance.
If you have multiple instances and you have messed up SQL Server installation please contact Microsoft Support personal to get better guidance on removal of SQL Server. Please DONT use this method if you are new to SQL Server take help of experienced
DBA to locate proper registry keys and remove them if you are not confident at all it would be better calling Microsoft Support.

Note: Removing necessary registry entries might cause SQL Server instance to crash so backup registry before doing changes.

  • 1. Uninstall the existing SQL Server  and all the components from the add remove program.
  • 2.
    Backup the registry.
  • 3. Delete the following keys using regedit:
    • —HKEY_LOCAL_MACHINESOFTWAREMicrosoftMicrosoft SQL Server
    • —HKEY_LOCAL_MACHINESOFTWAREMicrosoftMSSQLServer
  • 4. Go to HKEY_LOCAL_MACHINESOFTWAREMicrosoftWindowsCurrentVersionUninstall and delete all the sub-keys referencing SQL Server.
  • 5. Go to HKEY_LOCAL_MACHINESYSTEMCurrentControlSetServices and delete all the keys referencing SQL Server.
  • 6. Rename all the SQL Server folders in the computer.
  • 7. Reboot the machine.

Fresh install

2. Start a fresh installation. Locate Setup.exe file in SQL Server installable. It would be something like below

Always Right click on Setup file and select Run As Administrator to launch the setup.

After launching the setup and providing necessary details you would reach to Server Configuration page as below. When you reach this page please select startup account for Database Engine services as NT AuthoritySYSTEM which is also called as Local System
account.

Next you need to proceed as normally you do for installation.You will see this will solve the issue.

After installation completes please change Service Account from NT AUTHORITYSYSTEM to a low privileged domain account. Please refer to below Microsoft link about how to configure various accounts for SQL Server and what minimum rights to provide

  • Configure Windows Service Account and Permissions

To get information about Local System account please refer to below link

  • Local System Account

Looking at SQL Server Errorlog

Even after following above method if you still get the error this means that problem is not with SQL Server installation something different is blocking SQL Server installation. The important point to note here with such error is you will see SQL Server
installed but the services are not online( there might be few exception). Please check SQL Server configuration manager and Services.msc to check whether SQL Server services are present or not. If they are present but in stopped state you must look at

log files present at location

Drive:Program FilesMicrosoft SQL ServerMSSQL.nMSSQLLOGERRORLOG and
ERRORLOG.n files.

Where Drive is system drive on which you installed SQL Server. It can be system drive C or any user drive (D,E,F…) . MSSQLn here means version number of SQL Server
n=10 for SQL Server 2008/2008 R2
n= 11 for SQL Server 20012
n=12 for SQL Server 2014.
One such thread with similar issue
is this , The problem was not the SQL Server, services were installed but SQL Server cannot start due to error

Cannot
use file ‘C:Program FilesMicrosoft SQL ServerMSSQL11.MSSQLSERVERMSSQLDB_NAMEmaster.mdf’ because it was originally formatted
with sector size 4096
and is now on a volume
with sector size

Now above error is not related to SQL Server but related to disk drive formatting on which SQL Server master data file resides. Error is beyond the scope of this article hence would not be discussed.

↑ Back to top


Forum threads related to this issue

This article is an outcome of my answer provided to below forum threads which faced issue ‘Could not find Database engine startup handle’. Please have a look

  • Could not find database engine startup handle Thread 1
  • Could Not find database engine startup handle thread 2
  • Database engine startup handle issue
  • Similar Thread  

If you still cannot find solution to your problem please post your question on

SQL Server Setup and Upgrade forum for more assistance. 

↑ Back to top


Suggested Readings

  • How to Identify SQL Server Setup issue using setup log files
  • How to install SQL Server 2014 
  • How To Install SQL Server On Windows 8
  • How to Install SQL
    Server 2012
  • How to find location of setup log files generated after SQL Server Installation
  • Installing SQL Server 2012 with SP1 and Product update in One Go  

See Also

  • SQL Server General & Database Engine Resources on the TechNet Wiki
  • List of articles by Shanky
  • SQL Server 2014 Portal

Здравствуйте. У меня такая же проблема. На windosq server 20122 r2 ставлю ms sql 2014 express. Инсталяция заканчивается с ошибками.
Вот сводный журнал
Overall summary:
Final result: Ошибка: дополнительные сведения см. ниже
Exit code (Decimal): -2061893606
Start time: 2016-11-07 09:21:28
End time: 2016-11-07 09:56:15
Requested action: Install

Setup completed with required actions for features.
Troubleshooting information for those features:
Next step for RS: Устраните ошибку, пользуясь следующими сведениями, удалите компонент, а затем запустите установку еще раз.
Next step for SQLEngine: Устраните ошибку, пользуясь следующими сведениями, удалите компонент, а затем запустите установку еще раз.
Next step for FullText: Устраните ошибку, пользуясь следующими сведениями, удалите компонент, а затем запустите установку еще раз.
Next step for Replication: Устраните ошибку, пользуясь следующими сведениями, удалите компонент, а затем запустите установку еще раз.

Machine Properties:
Machine name: SERVERJKX
Machine processor count: 4
OS version: Windows Server 2012
OS service pack:
OS region: Россия
OS language: русский (Россия)
OS architecture: x64
Process architecture: 64-разрядная версия
OS clustered: Нет

Product features discovered:
Product Instance Instance ID Feature Language Edition Version Clustered Configured

Package properties:
Description: Microsoft SQL Server 2014
ProductName: SQL Server 2014
Type: RTM
Version: 12
SPLevel: 0
Installation location: E:InstallSQL ExpressSQLEXPRADV_x64_RUSx64setup
Installation edition: Express

Product Update Status:
Не обнаружено.

Параметры пользовательского ввода:
ACTION: Install
ADDCURRENTUSERASSQLADMIN: true
AGTSVCACCOUNT: NT AUTHORITYNETWORK SERVICE
AGTSVCPASSWORD: *****
AGTSVCSTARTUPTYPE: Disabled
ASBACKUPDIR: Backup
ASCOLLATION: Latin1_General_CI_AS
ASCONFIGDIR: Config
ASDATADIR: Data
ASLOGDIR: Log
ASPROVIDERMSOLAP: 1
ASSERVERMODE: MULTIDIMENSIONAL
ASSVCACCOUNT: <не заполнено>
ASSVCPASSWORD: <не заполнено>
ASSVCSTARTUPTYPE: Automatic
ASSYSADMINACCOUNTS: <не заполнено>
ASTEMPDIR: Temp
BROWSERSVCSTARTUPTYPE: Disabled
CLTCTLRNAME: <не заполнено>
CLTRESULTDIR: <не заполнено>
CLTSTARTUPTYPE: 0
CLTSVCACCOUNT: <не заполнено>
CLTSVCPASSWORD: <не заполнено>
CLTWORKINGDIR: <не заполнено>
COMMFABRICENCRYPTION: 0
COMMFABRICNETWORKLEVEL: 0
COMMFABRICPORT: 0
CONFIGURATIONFILE:
CTLRSTARTUPTYPE: 0
CTLRSVCACCOUNT: <не заполнено>
CTLRSVCPASSWORD: <не заполнено>
CTLRUSERS: <не заполнено>
ENABLERANU: true
ENU: false
ERRORREPORTING: false
FEATURES: SQLENGINE, REPLICATION, FULLTEXT, RS, CONN, BC, SDK, BOL, SSMS, ADV_SSMS
FILESTREAMLEVEL: 0
FILESTREAMSHARENAME: <не заполнено>
FTSVCACCOUNT: NT ServiceMSSQLFDLauncher
FTSVCPASSWORD: <не заполнено>
HELP: false
IACCEPTSQLSERVERLICENSETERMS: true
INDICATEPROGRESS: false
INSTALLSHAREDDIR: C:Program FilesMicrosoft SQL Server
INSTALLSHAREDWOWDIR: C:Program Files (x86)Microsoft SQL Server
INSTALLSQLDATADIR: <не заполнено>
INSTANCEDIR: C:Program FilesMicrosoft SQL Server
INSTANCEID: MSSQLSERVER
INSTANCENAME: MSSQLSERVER
ISSVCACCOUNT: NT AUTHORITYNetwork Service
ISSVCPASSWORD: <не заполнено>
ISSVCSTARTUPTYPE: Automatic
MATRIXCMBRICKCOMMPORT: 0
MATRIXCMSERVERNAME: <не заполнено>
MATRIXNAME: <не заполнено>
NPENABLED: 0
PID: *****
QUIET: false
QUIETSIMPLE: false
ROLE: AllFeatures_WithDefaults
RSINSTALLMODE: DefaultNativeMode
RSSHPINSTALLMODE: DefaultSharePointMode
RSSVCACCOUNT: NT ServiceReportServer
RSSVCPASSWORD: <не заполнено>
RSSVCSTARTUPTYPE: Automatic
SAPWD: *****
SECURITYMODE: SQL
SQLBACKUPDIR: E:BackUpSQL
SQLCOLLATION: Cyrillic_General_CI_AS
SQLSVCACCOUNT: NT ServiceMSSQLSERVER
SQLSVCPASSWORD: <не заполнено>
SQLSVCSTARTUPTYPE: Automatic
SQLSYSADMINACCOUNTS: LEPELJKX1prog
SQLTEMPDBDIR: <не заполнено>
SQLTEMPDBLOGDIR: <не заполнено>
SQLUSERDBDIR: D:BasesSQL
SQLUSERDBLOGDIR: <не заполнено>
SQMREPORTING: false
TCPENABLED: 0
UIMODE: AutoAdvance
UpdateEnabled: true
UpdateSource: MU
USEMICROSOFTUPDATE: false
X86: false

Configuration file: C:Program FilesMicrosoft SQL Server120Setup BootstrapLog20161107_092126ConfigurationFile.in i

Detailed results:
Feature: Средства управления — полный набор
Status: Завершено

Feature: Средства связи клиентских средств
Status: Завершено

Feature: Пакет SDK клиентских средств
Status: Завершено

Feature: Обратная совместимость клиентских средств
Status: Завершено

Feature: Средства управления — основные
Status: Завершено

Feature: Службы Reporting Services в собственном режиме
Status: Ошибка. Дополнительные сведения см. в журнале.
Reason for failure: Возникла ошибка для одной из зависимостей компонента, вызвавшая сбой процесса его установки.
Next Step: Устраните ошибку, пользуясь следующими сведениями, удалите компонент, а затем запустите установку еще раз.
Component name: Экземпляры служб компонента SQL Server Database Engine
Component error code: 0x851A001A
Error description: Ошибка при ожидании дескриптора восстановления компонента Database Engine. Возможные причины см. в журнале ошибок SQL Server.
Error help link: http://go.microsoft.com/fwlink… 01306%4026

Feature: Службы компонента Database Engine
Status: Ошибка. Дополнительные сведения см. в журнале.
Reason for failure: Произошла ошибка во время процесса установки компонента.
Next Step: Устраните ошибку, пользуясь следующими сведениями, удалите компонент, а затем запустите установку еще раз.
Component name: Экземпляры служб компонента SQL Server Database Engine
Component error code: 0x851A001A
Error description: Ошибка при ожидании дескриптора восстановления компонента Database Engine. Возможные причины см. в журнале ошибок SQL Server.
Error help link: http://go.microsoft.com/fwlink… 01306%4026

Feature: Полнотекстовый и семантический поиск
Status: Ошибка. Дополнительные сведения см. в журнале.
Reason for failure: Возникла ошибка для одной из зависимостей компонента, вызвавшая сбой процесса его установки.
Next Step: Устраните ошибку, пользуясь следующими сведениями, удалите компонент, а затем запустите установку еще раз.
Component name: Экземпляры служб компонента SQL Server Database Engine
Component error code: 0x851A001A
Error description: Ошибка при ожидании дескриптора восстановления компонента Database Engine. Возможные причины см. в журнале ошибок SQL Server.
Error help link: http://go.microsoft.com/fwlink… 01306%4026

Feature: Репликация SQL Server
Status: Ошибка. Дополнительные сведения см. в журнале.
Reason for failure: Возникла ошибка для одной из зависимостей компонента, вызвавшая сбой процесса его установки.
Next Step: Устраните ошибку, пользуясь следующими сведениями, удалите компонент, а затем запустите установку еще раз.
Component name: Экземпляры служб компонента SQL Server Database Engine
Component error code: 0x851A001A
Error description: Ошибка при ожидании дескриптора восстановления компонента Database Engine. Возможные причины см. в журнале ошибок SQL Server.
Error help link: http://go.microsoft.com/fwlink… 01306%4026

Feature: Браузер SQL
Status: Завершено

Feature: Компоненты документации
Status: Завершено

Feature: Модуль записи SQL
Status: Завершено

Feature: Файлы поддержки программы установки
Status: Завершено

Уже удаляла и ставила по-новому несколько раз с перезагрузкой сервера. Помогите пожалуйста.

Системное администрирование

1
Посты

1
Пользователи

0
Likes

4,540
Просмотры

10-150 Okolokompa Форум

(@dom)

Сообщения: 200

Honorable Member

Я столкнулся с интересной ошибкой при установке MS SQL Server 2014 на новую виртуальную машину под управлением Windows Server 2012 R2. Установка SQL Server была прервана почти в конце с ошибкой « Не удалось найти дескриптор запуска компонента Database Engine ». 

В журнале установки SQL произошла следующая ошибка (файл summary.txt):

Особенность: Услуги СУБД
Статус: Ошибка: подробности см. В журналах.
Причина сбоя: во время процесса установки функции произошла ошибка.
Следующий шаг: используйте следующую информацию для устранения ошибки, удалите эту функцию, а затем снова запустите процесс установки.
Имя компонента: функции экземпляра служб СУБД SQL Server
Код ошибки компонента: 0x851A0019
Описание ошибки: не удалось найти дескриптор запуска компонента Database Engine.

Эта ошибка установки MS SQL Server связана со стандартными параметрами установки, когда SQL Server запускается под непривилегированной учетной записью NT Service MSSQL $ V2014 . Эта учетная запись может не иметь права на запуск службы SQL Server, поэтому она не может быть запущена, и установщик возвращает ошибку «Не удалось найти дескриптор запуска компонента Database Engine». Кроме того, эта ошибка может указывать на то, что кто-то уже пытался установить SQL Server на этот компьютер, а файлы или службы, оставшиеся после установки, не были удалены.

Чтобы исправить ошибку установки SQL Server:

  • Правильно удалите все программы, связанные с SQL Server, из панели управления и перезапустите сервер (убедитесь, что в папке C: Program Files Microsoft SQL Server MSSQL12.xxx нет файлов или папок).
  • Запустите установку из дистрибутива SQL Server с нуля. На вкладке Конфигурация сервера убедитесь, что служба ядра СУБД SQL Server запущена с учетной записью NT Service MSSQLSERVER;
  • Измените эту учетную запись на NT AUTHORITY SYSTEM;
  • Продолжите установку SQL Server. Ошибка не должна появиться снова.

После завершения установки мы настоятельно рекомендуем изменить учетную запись, под которой запускается компонент SQL Server Database Engine, на непривилегированную учетную запись.

Вам не нужно предоставлять этой учетной записи права локального администратора (достаточно предоставить необходимые привилегии в настройках безопасности SQL Server).

Вы можете использовать учетные записи с привилегиями системного администратора: NT Service MSSQLSERVICE или NT Service SQLSERVERAGENT.

Чтобы изменить учетную запись, под которой работает SQL Server:

  1. Запустите диспетчер конфигурации SQL Server и перейдите к службам SQL Server;
  2. Нажмите SQL Server (MSSQLSERVER), затем нажмите кнопку «Обзор» и в поле «Эта учетная запись» укажите учетную запись, под которой должна быть запущена служба, или используйте gMSA (учетная запись группы управляемых служб). Введите пароль пользователя и сохраните изменения;
  3. Перезапустите службы SQL Server.

Этот метод поможет вам исправить ошибку «Не удалось найти дескриптор запуска компонента Database Engine» во время установки любых версий SQL Server (2016, 2014, 2012 или 2008 r2).

Размещено : 03/03/2020 5:46 дп

img

When I decided to install SharePoint 2016 IT Preview I figured I should install it on a Windows Server 2016 Technical Preview, along with SQL Server 2016 Community Technology Preview (CTP). I bet you didn’t realize there are so many different names today for what used to be simply referred to as “BETA” back in the good ol’ days. Actually, we used to  have Alpha, Beta, Release Candidate, and the Final product. But that was then, this is now. If you are really curious as to why Microsoft decided to use terminology like Community Technology Preview, visit this MSDN blog post.

Windows Server 2016 Technical Preview installation was simple but when I started to install SQL Server 2012 on Windows Server 2016 Technical Preview in Hyper-V I ran into some issues. No problem, I decided to install SQL Server 2014 but it too had some issues so I decided it makes sense to install SQL Server 2016 so let’s try that. I have installed SQL Server tons of times on different versions of SQL Server over the years and didn’t really had any major issues that I wasn’t able to resolve. When I started to run into some errors during SQL Server 2016 CTP2.3 install, I decided it better fix these issues because the 2016 version will be the most compatible version with Windows Server 2016 and SharePoint Server 2016. All these products are still in beta so I had to be patient and fix these errors before I start to install these products for my business clients down the road. Here’s the first problem and a solution. I will document the second problem and a solution in my next post.



PROBLEM

During SQL Server installation, you may run into the following error:

Could not find the Database Engine startup handle

CouldNotFindDBEngine

The word handle is misspelled in the above screenshot. Microsoft should be excused because at the time I wrote this article, SQL Server 2016 was still in beta. The screenshots in this article are from SQL Server 2016 CTP2.3 running on Windows Server 2016 Technical Preview. I have experienced this error only in SQL Server 2016 CTP2.3 but you may also experience this error in SQL Server 2014 or 2008.

Here’s a solution that I found on Microsoft TechNet Wiki. There’s a lot more information in the wiki post. Here I am just documenting the steps in detail that I used to make the recommended change in the post.

SOLUTION

  1. If you have installed SQL Server then you should remove it completely through the Control Panel and restart the server. If you need help, visit this wiki post for more information.
  2. When you get to the Server Configuration page as shown below, you will notice that the SQL Server Database Engine service is using the account NT ServiceMSSQLSERVER.
    ChangeDBEngineService
  3. Change the account from NT ServiceMSSQLSERVER to NT AUTHORITYSYSTEM by clicking on the drop-down box, selecting browse and then typing SYSTEM in Select User, Computer, Service Account, or Group window in Active Directory. Click OK to accept the new account.
    SYSTEM-account
  4. Your screen should look similar to the screenshot below.
    NT-Authority-System
  5. Continue on with the installation as you normally would.
  6. You should no longer receive the error Could not find the Database Engine startup handle during installation.

Best Practice: You should restart the Windows server after SQL Server installation is complete. Yes, even if you are not prompted by the system to restart the server you must restart the server after installation of SQL Server, SharePoint Server, etc. or else you may run into problems.

The wiki post recommends that after the installation is complete you should change this account back to a low-privileged domain account that will run the SQL Database Engine service. If you are still experiencing the error, please visit the wiki post because it has a lot more detail, references, links to forums, etc.

UPDATE: January 17, 2017

To change the account back to a low-privileged domain account, as mentioned above, follow the steps in this section. The domain account can be just a regular domain user account, not an administrator but it may need special permissions in SQL Server (not Windows Server, or Active Directory Domain). For example, the NT ServiceMSSQLSERVICE and NT ServiceSQLSERVERAGENT both have sysadmin permissions on the SQL Server by default, which means your domain account used as a service account will require these permissions on the SQL Server.

WARNING! You should only change the SQL Server service account if you are comfortable working with the SQL Server and understand how SQL Server account permissions work. If you are not sure what type of permissions are required for your SQL Server service account in your environment, I would recommend you don’t change the service account and contact a qualified SQL Server consultant or expert. Also, keep in mind that restarting the SQL Server means you are making the SQL Server unavailable until the service is started again. Although this is usually a short period, it is best that you perform this step outside of normal business hours.

  1. Backup the SQL Server, including all databases.
  2. Go to the SQL Server Configuration Manager.
  3. Click SQL Server Services.
  4. In the right-hand pane double-click SQL Server (MSSQLSERVER).
  5. Click Browse and make sure the location is set to your domain, rather than your local SQL Server. If not, click Locations, select Entire Directory, and then click OK.
  6. Type the name of the domain account that you want to use, click Check Names and then click OK.
  7. Enter the password and then click OK.
  8. You will be prompted to restart the SQL Server service. Click Yes to restart the service.
  9. Your SQL Service account is now changed to a domain account.

Copyright © 2015 SeattlePro Enterprises, LLC. All rights reserved.

This div height required for enabling the sticky sidebar

We use cookies on our website to give you the most relevant experience by remembering your preferences and repeat visits. By clicking “Accept”, you consent to the use of ALL the cookies.

Содержание

  1. Ошибка установки SQL Server: Could not find the Database Engine startup handle
  2. Component error code 0x851a001a
  3. Код ошибки 0x851a001a
  4. Ошибка установки SQL Server: Could not find the Database Engine startup handle
  5. Код ошибки 0x851a001a
  6. Код ошибки 0x851a001a
  7. Все коды ошибок Центра обновления Windows
  8. Коды ошибок Центра обновления Windows

Ошибка установки SQL Server: Could not find the Database Engine startup handle

Столкнулся с интересной ошибкой при установке MS SQL Server 2014 на новом сервере Windows Server 2012 R2. Установка SQL Server прерывается почти в самом конце с ошибкой «Не найден дескриптор запуска компонента Database Engine» (Could not find the Database Engine startup handle).

В логе установки Summary.txt при этом присутствует ошибка:

Feature: Database Engine Services

Данная ошибка установки MS SQL Server связана с тем, что используются стандартные настройки установки, при котором служба SQL Server запускается под непривилегированной учетной записью NT ServiceMSSQL$V2014. У данной учетной записи может быть недостаточно полномочий для запуска службы SQL Server, поэтому запустить службу невозможно, и установщик завершается с ошибкой «Could not find the Database Engine startup handle». Также эта ошибка может указывать на то, что ранее на компьютере уже пытались установить SQL Server и не очистили файлы и службы, оставшиеся от предыдущей установки.

Чтобы исправить ошибку установки SQL Server:

  1. Корректно деинсталлируйте все программы, связанные с SQL Server через Панель управления и перезагрузите сервер (проверьте, что не осталось файлов и папок в каталоге C:Program FilesMicrosoft SQL ServerMSSQL12.xxx);
  2. Запустите чистую установку из дистрибутива SQL Server. На вкладке «Server Configuration» убедитесь, что служба SQL Server Database Engine запускается под учетной записью NT ServiceMSSQLSERVER;

После окончания установки настоятельно рекомендуем изменить учетную запись, под которой запускается служба SQL Server Database Engine на непривилегированную учетную запись. Эта учетная запись не обязательно должна обладать правами локального администратора сервера (вполне достаточно полномочий внутри SQL Server). Можно использовать аккаунты с правами sysadmin — NT ServiceMSSQLSERVICE или NT ServiceSQLSERVERAGENT. Чтобы изменить учетную запись, под которой работает SQL Server:

  1. Запустите SQL Server Configuration Manager и перейдите в раздел SQL Server Services;
  2. Щелкните по SQL Server (MSSQLSERVER), нажмите кнопку Browse и в поле This account укажите учетную запись, под которой нужно запускать службу или используйте управляемую учетную запись — gMSA (Group Managed Service Accounts). Укажите пароль пользователя и сохраните изменения;
  3. Перезапустите службы SQL Server.

Этот способ поможет вам исправить ошибку «Не найден дескриптор запуска компонента Database Engine» при установке любых версий SQL Server (2016, 2014, 2012 или 2008).

Источник

Component error code 0x851a001a

I am trying to isntall SQL Server 2012 on Windows Server 2008 R2, but the Database Engine Services failed to install, and I cannot start the MSSQLSERVER Service after installation.

Installation error :

Error installing SQL Server Database Engine Services Instance Features
Wait on the Database Engine recovery handle failed. Check the SQL Server error log for potential causes.
Error code: 0x851A001A

W3WP.EXE Crash :

I noticed that during installation w3wp.exe has crashed:

Application: w3wp.exe
Framework Version: v4.0.30319
Description: The process was terminated due to an unhandled exception.
Exception Info: System.TypeInitializationException
Stack:
at System.Web.Caching.SqlCacheDependencyManager.Dispose(Int32)
at System.Web.HttpRuntime.Dispose()
at System.Web.HttpRuntime.ReleaseResourcesAndUnloadAppDomain(System.Object)
at System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean)
at System.Threading.QueueUserWorkItemCallback.System.Threading.IThreadPoolWorkItem.ExecuteWorkItem()
at System.Threading.ThreadPoolWorkQueue.Dispatch()
at System.Threading._ThreadPoolWaitCallback.PerformWaitCallback()

A process serving application pool ‘HTTP Pool’ suffered a fatal communication error with the Windows Process Activation Service. The process id was ‘4544’. The data field contains the error number.

MSSQL Service :

When I try to start the MSSQL service, I get the following errors in the event log:

For target, «5B2DA06D-898A-43C8-9309-39BBBE93EBBD.package0.event_file», the parameter «filename» passed is invalid. Target parameter at index 0 is invalid
Event session «system_health» failed to start. Refer to previous errors in the current session to identify the cause, and correct any associated problems.
Script level upgrade for database ‘master’ failed because upgrade step ‘u_tables.sql’ encountered error 25641, state 0, severity 16. This is a serious error condition which might interfere with regular operation and the database will be taken offline. If the error happened during upgrade of the ‘master’ database, it will prevent the entire SQL Server instance from starting. Examine the previous errorlog entries for errors, take the appropriate corrective actions and re-start the database so that the script upgrade steps run to completion.
Cannot recover the master database. SQL Server is unable to run. Restore master from a full backup, repair it, or rebuild it. For more information about how to rebuild the master database, see SQL Server Books Online.

Installation Log :

Overall summary:
Final result: Failed: see details below
Exit code (Decimal): -2061893606
Start time: 2013-06-10 23:02:24
End time: 2013-06-11 00:06:27
Requested action: Install

Setup completed with required actions for features.
Troubleshooting information for those features:
Next step for SQLEngine: Use the following information to resolve the error, uninstall this feature, and then run the setup process again.

Machine Properties:
Machine name: SERVER01
Machine processor count: 4
OS version: Windows Server 2008 R2
OS service pack: Service Pack 1
OS region: United States
OS language: English (United States)
OS architecture: x64
Process architecture: 64 Bit
OS clustered: No

Product features discovered:
Product Instance Instance ID Feature Language Edition Version Clustered

Package properties:
Description: Microsoft SQL Server 2012 Service Pack 1
ProductName: SQL Server 2012
Type: RTM
Version: 11
Installation location: N:SoftwareWindows ServerMicrosoft SQL Server 2012 SP1 (x64)x64setup
Installation edition: Web

Slipstream: True
SP Level 1
Patch Level: 11.1.3128.0

Product Update Status:
Success: KB 2674319, KB 2793634

Product Updates Selected for Installation:
Title: Service Pack 1
Knowledge Based Article: KB 2674319
Version: 11.1.3000.0
Architecture: x64
Language: 1033

Title: SQL Server 2012 SP1 GDR Product Update
Knowledge Based Article: KB 2793634
Version: 11.1.3128.0
Architecture: x64
Language: All

Update Source: MU

User Input Settings:
ACTION: Install
ADDCURRENTUSERASSQLADMIN: false
AGTSVCACCOUNT: NT ServiceSQLSERVERAGENT
AGTSVCPASSWORD: *****
AGTSVCSTARTUPTYPE: Manual
ASBACKUPDIR: Backup
ASCOLLATION: Latin1_General_CI_AS
ASCONFIGDIR: Config
ASDATADIR: Data
ASLOGDIR: Log
ASPROVIDERMSOLAP: 1
ASSERVERMODE: MULTIDIMENSIONAL
ASSVCACCOUNT:
ASSVCPASSWORD:
ASSVCSTARTUPTYPE: Automatic
ASSYSADMINACCOUNTS:
ASTEMPDIR: Temp
BROWSERSVCSTARTUPTYPE: Disabled
CLTCTLRNAME:
CLTRESULTDIR:
CLTSTARTUPTYPE: 0
CLTSVCACCOUNT:
CLTSVCPASSWORD:
CLTWORKINGDIR:
COMMFABRICENCRYPTION: 0
COMMFABRICNETWORKLEVEL: 0
COMMFABRICPORT: 0
CONFIGURATIONFILE: C:Program FilesMicrosoft SQL Server110Setup BootstrapLog20130610_224552ConfigurationFile.ini
CTLRSTARTUPTYPE: 0
CTLRSVCACCOUNT:
CTLRSVCPASSWORD:
CTLRUSERS:
ENABLERANU: false
ENU: true
ERRORREPORTING: false
FEATURES: SQLENGINE, SSMS
FILESTREAMLEVEL: 0
FILESTREAMSHARENAME:
FTSVCACCOUNT:
FTSVCPASSWORD:
HELP: false
IACCEPTSQLSERVERLICENSETERMS: true
INDICATEPROGRESS: false
INSTALLSHAREDDIR: C:Program FilesMicrosoft SQL Server
INSTALLSHAREDWOWDIR: C:Program Files (x86)Microsoft SQL Server
INSTALLSQLDATADIR: E:MSSQL
INSTANCEDIR: C:Program FilesMicrosoft SQL Server
INSTANCEID: MSSQLSERVER1
INSTANCENAME: MSSQLSERVER
ISSVCACCOUNT: NT AUTHORITYNetwork Service
ISSVCPASSWORD:
ISSVCSTARTUPTYPE: Automatic
MATRIXCMBRICKCOMMPORT: 0
MATRIXCMSERVERNAME:
MATRIXNAME:
NPENABLED: 0
PID: *****
QUIET: false
QUIETSIMPLE: false
ROLE:
RSINSTALLMODE: DefaultNativeMode
RSSHPINSTALLMODE: DefaultSharePointMode
RSSVCACCOUNT:
RSSVCPASSWORD:
RSSVCSTARTUPTYPE: Automatic
SAPWD:
SECURITYMODE:
SQLBACKUPDIR:
SQLCOLLATION: Latin1_General_CI_AS
SQLSVCACCOUNT: NT ServiceMSSQLSERVER
SQLSVCPASSWORD:
SQLSVCSTARTUPTYPE: Automatic
SQLSYSADMINACCOUNTS: ELXTECHAdministrator
SQLTEMPDBDIR:
SQLTEMPDBLOGDIR:
SQLUSERDBDIR:
SQLUSERDBLOGDIR:
SQMREPORTING: false
TCPENABLED: 1
UIMODE: Normal
UpdateEnabled: true
UpdateSource: MU
X86: false

Configuration file: C:Program FilesMicrosoft SQL Server110Setup BootstrapLog20130610_224552ConfigurationFile.ini

Detailed results:
Feature: Management Tools — Basic
Status: Passed

Feature: Database Engine Services
Status: Failed: see logs for details
Reason for failure: An error occurred during the setup process of the feature.
Next Step: Use the following information to resolve the error, uninstall this feature, and then run the setup process again.
Component name: SQL Server Database Engine Services Instance Features
Component error code: 0x851A001A
Error description: Wait on the Database Engine recovery handle failed. Check the SQL Server error log for potential causes.
Error help link: http://go.microsoft.com/fwlink?LinkId=20476&ProdName=Microsoft+SQL+Server&EvtSrc=setup.rll&EvtID=50000&ProdVer=11.0.3128.0&EvtType=0xD15B4EB2%400x4BDAF9BA%401306%4026&EvtType=0xD15B4EB2%400x4BDAF9BA%401306%4026

Feature: SQL Browser
Status: Passed

Feature: SQL Writer
Status: Passed

Feature: SQL Client Connectivity
Status: Passed

Feature: SQL Client Connectivity SDK
Status: Passed

Источник

Код ошибки 0x851a001a

Ошибка установки SQL Server: Could not find the Database Engine startup handle

Столкнулся с интересной ошибкой при установке MS SQL Server 2014 на новом сервере Windows Server 2012 R2. Установка SQL Server прерывается почти в самом конце с ошибкой «Не найден дескриптор запуска компонента Database Engine» (Could not find the Database Engine startup handle).

В логе установки Summary.txt при этом присутствует ошибка:

Feature: Database Engine Services
Status: Failed: see logs for details
Reason for failure: An error occurred during the setup process of the feature.
Next Step: Use the following information to resolve the error, uninstall this feature, and then run the setup process again.
Component name: SQL Server Database Engine Services Instance Features
Component error code: 0x851A0019
Error description: Could not find the Database Engine startup handle.

Данная ошибка установки MS SQL Server связана с тем, что используются стандартные настройки установки, при котором служба SQL Server запускается под непривилегированной учетной записью NT ServiceMSSQL$V2014. У данной учетной записи может быть недостаточно полномочий для запуска службы SQL Server, поэтому запустить службу невозможно, и установщик завершается с ошибкой «Could not find the Database Engine startup handle». Также эта ошибка может указывать на то, что ранее на компьютере уже пытались установить SQL Server и не очистили файлы и службы, оставшиеся от предыдущей установки.

Чтобы исправить ошибку установки SQL Server:

  1. Корректно деинсталлируйте все программы, связанные с SQL Server через Панель управления и перезагрузите сервер (проверьте, что не осталось файлов и папок в каталоге C:Program FilesMicrosoft SQL ServerMSSQL12.xxx);
  2. Запустите чистую установку из дистрибутива SQL Server. На вкладке «Server Configuration» убедитесь, что служба SQL Server Database Engine запускается под учетной записью NT ServiceMSSQLSERVER;
  3. Измените эту учетную запись на NT AUTHORITYSYSTEM;
  4. Продолжите установку SQL Server. Ошибка больше не должна появляться.

После окончания установки настоятельно рекомендуем изменить учетную запись, под которой запускается служба SQL Server Database Engine на непривилегированную учетную запись. Эта учетная запись не обязательно должна обладать правами локального администратора сервера (вполне достаточно полномочий внутри SQL Server). Можно использовать аккаунты с правами sysadmin — NT ServiceMSSQLSERVICE или NT ServiceSQLSERVERAGENT. Чтобы изменить учетную запись, под которой работает SQL Server:

  1. Запустите SQL Server Configuration Manager и перейдите в раздел SQL Server Services;
  2. Щелкните по SQL Server (MSSQLSERVER), нажмите кнопку Browse и в поле This account укажите учетную запись, под которой нужно запускать службу или используйте управляемую учетную запись — gMSA (Group Managed Service Accounts). Укажите пароль пользователя и сохраните изменения;
  3. Перезапустите службы SQL Server.

Этот способ поможет вам исправить ошибку «Не найден дескриптор запуска компонента Database Engine» при установке любых версий SQL Server (2016, 2014, 2012 или 2008).

Код ошибки 0x851a001a

Пытаюсь поставить на Windows Server 2012 R2 Standart x64 (ru) базу MS SQL 2014 Enterprise Core Edition x64 (ru).
В конце установки выбивает такую ошибку:

И в итоге показывает следующее:

Подскажите, пожалуйста, в чём проблема и как её решать? Что-то ни нагуглить, ни разобраться не получается.

От: Olaf
Дата: 14.04.16 09:57
Оценка:

Здравствуйте, push, Вы писали:

P>Пытаюсь поставить на Windows Server 2012 R2 Standart x64 (ru) базу MS SQL 2014 Enterprise Core Edition x64 (ru).
P>В конце установки выбивает такую ошибку:
P>.

P>И в итоге показывает следующее:
P>.

P>Вот лог: ссылка.

P>Подскажите, пожалуйста, в чём проблема и как её решать? Что-то ни нагуглить, ни разобраться не получается.

А вы пробовали сделать то, что рекомендует установщик, т.е. удалить компонент SQL Server Database Engine и установить его заново?

Next Step: Устраните ошибку, пользуясь следующими сведениями, удалите компонент, а затем запустите установку еще раз.
Component name: Экземпляры служб компонента SQL Server Database Engine

Error description: Ошибка при ожидании дескриптора восстановления компонента Database Engine. Возможные причины см. в журнале ошибок SQL Server.

От: push
Дата: 14.04.16 10:21
Оценка:
От: Olaf
Дата: 14.04.16 10:40
Оценка:

Здравствуйте, push, Вы писали:

O>>Журнал ошибок смотрели, о котором идет речь в логе?
P>Вот три error лога: Лог 1, Лог 2, Лог 3. Насколько я понял оно не смогло «change default collation to Cyrillic_General_CI_AS» и ещё возникли проблемы с SSL. Я прав? Как тогда решить эти проблемы?

Для смены collation было предупреждение и критичного там ничего нет на мой взгляд. А настоящие проблемы начинаются с сообщений:

2016-04-13 18:52:43.52 spid18s Error: 17190, Severity: 16, State: 1.
2016-04-13 18:52:43.52 spid18s Initializing the FallBack certificate failed with error code: 1, state: 20, error number: 0.
2016-04-13 18:52:43.52 spid18s Unable to initialize SSL encryption because a valid certificate could not be found, and it is not possible to create a self-signed certificate.
2016-04-13 18:52:43.52 spid18s Error: 17182, Severity: 16, State: 1.
2016-04-13 18:52:43.52 spid18s TDSSNIClient initialization failed with error 0x80092004, status code 0x80. Reason: Unable to initialize SSL support. Cannot find object or property.
2016-04-13 18:52:43.52 spid18s Error: 17182, Severity: 16, State: 1.
2016-04-13 18:52:43.52 spid18s TDSSNIClient initialization failed with error 0x80092004, status code 0x1. Reason: Initialization failed with an infrastructure error. Check for previous errors. Cannot find object or property.
2016-04-13 18:52:43.52 spid18s Error: 17826, Severity: 18, State: 3.
2016-04-13 18:52:43.52 spid18s Could not start the network library because of an internal error in the network library. To determine the cause, review the errors immediately preceding this one in the error log.
2016-04-13 18:52:43.52 spid18s Error: 17120, Severity: 16, State: 1.
2016-04-13 18:52:43.52 spid18s SQL Server could not spawn FRunCommunicationsManager thread. Check the SQL Server error log and the Windows event logs for information about possible related problems.

От: push
Дата: 14.04.16 12:08
Оценка:

Ok. по ссылке написано следующее:

> How to resolve this issue now?
Recreate the user Profile for startup account of SQLServer- by following below steps.
1.Right click on computer, and select propertie
2.Right click on computer, and select properties
3.Click on System Advanced Configuration
4.Select Advanced options Tab
5.On user profiles frames click on configuration
6.Select the user from the list and then delete it
7.Now the profile will be respawned the next time the user logs on

Я застрял на пункте 6, какого юзера мне удалить? У меня нет юзера sqladmin, я ставил текущего юзера — а это Администратор данной машины. В профилях в у меня много юзеров, но только два относятся к SQL:
1) NT SERVICEMSSQLFDLauncher
2) NT SERVICEMSSQLSERVER

Какой из них удалить? Или оба?

От: _ABC_
Дата: 14.04.16 12:47
Оценка:
От: push
Дата: 23.04.16 22:44
Оценка:
От: LuciferNovoros
Дата: 24.04.16 04:26
Оценка:

Здравствуйте, push, Вы писали:

P>Захожу в SQL Server Configuration Manager и вижу
P>Image: SQL-dont-loaded.PNG
P>Ок, пробую запустить службу SQL Server — так оно не может запуститься.
В свойствах сервиса MSSQL поставь запуск от имени системы. И будет тебе счастье.

От: push
Дата: 24.04.16 12:09
Оценка:

Здравствуйте, LuciferNovoros, Вы писали:

LN>В свойствах сервиса MSSQL поставь запуск от имени системы. И будет тебе счастье.

Что-то я не вижу в свойствах сервиса возможность запуска от имени администратора.
Или имеется ввиду что надо переключить эту радиокнопку?

От: LuciferNovoros
Дата: 24.04.16 17:05
Оценка:

Здравствуйте, push, Вы писали:

P>Что-то я не вижу в свойствах сервиса возможность запуска от имени администратора.
P>Или имеется ввиду что надо переключить эту радиокнопку?

Да. Если сервер успешно запустится, то и можно оставить. Хотя на боевом я бы так не делал.

От: push
Дата: 26.04.16 07:44
Оценка:
От: LuciferNovoros
Дата: 27.04.16 05:34
Оценка:

Здравствуйте, push, Вы писали:

P>Хм, что ещё можно сделать, чтобы получилось установить этот SQL сервер? (блин ну что ж за проблема на проблеме! )

Вестимо, что. Для начала почитать журналы. Как самого сервера, так и виндовые. На предмет поиска ошибок. Ну и проверить соответствующие права пользователей, под которыми должны стартовать сервисы. На отсечение ничего не дам, но процентов 90 за то, что не хватает прав на папки с базами и (или) сертификатами, если ты их используешь. Или пользователи вообще не имеют прав запуска сервисов.

Код ошибки 0x851a001a

I am trying to isntall SQL Server 2012 on Windows Server 2008 R2, but the Database Engine Services failed to install, and I cannot start the MSSQLSERVER Service after installation.

Installation error :

Error installing SQL Server Database Engine Services Instance Features
Wait on the Database Engine recovery handle failed. Check the SQL Server error log for potential causes.
Error code: 0x851A001A

W3WP.EXE Crash :

I noticed that during installation w3wp.exe has crashed:

Application: w3wp.exe
Framework Version: v4.0.30319
Description: The process was terminated due to an unhandled exception.
Exception Info: System.TypeInitializationException
Stack:
at System.Web.Caching.SqlCacheDependencyManager.Dispose(Int32)
at System.Web.HttpRuntime.Dispose()
at System.Web.HttpRuntime.ReleaseResourcesAndUnloadAppDomain(System.Object)
at System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean)
at System.Threading.QueueUserWorkItemCallback.System.Threading.IThreadPoolWorkItem.ExecuteWorkItem()
at System.Threading.ThreadPoolWorkQueue.Dispatch()
at System.Threading._ThreadPoolWaitCallback.PerformWaitCallback()

A process serving application pool ‘HTTP Pool’ suffered a fatal communication error with the Windows Process Activation Service. The process id was ‘4544’. The data field contains the error number.

MSSQL Service :

When I try to start the MSSQL service, I get the following errors in the event log:

For target, «5B2DA06D-898A-43C8-9309-39BBBE93EBBD.package0.event_file», the parameter «filename» passed is invalid. Target parameter at index 0 is invalid
Event session «system_health» failed to start. Refer to previous errors in the current session to identify the cause, and correct any associated problems.
Script level upgrade for database ‘master’ failed because upgrade step ‘u_tables.sql’ encountered error 25641, state 0, severity 16. This is a serious error condition which might interfere with regular operation and the database will be taken offline. If the error happened during upgrade of the ‘master’ database, it will prevent the entire SQL Server instance from starting. Examine the previous errorlog entries for errors, take the appropriate corrective actions and re-start the database so that the script upgrade steps run to completion.
Cannot recover the master database. SQL Server is unable to run. Restore master from a full backup, repair it, or rebuild it. For more information about how to rebuild the master database, see SQL Server Books Online.

Installation Log :

Overall summary:
Final result: Failed: see details below
Exit code (Decimal): -2061893606
Start time: 2013-06-10 23:02:24
End time: 2013-06-11 00:06:27
Requested action: Install

Setup completed with required actions for features.
Troubleshooting information for those features:
Next step for SQLEngine: Use the following information to resolve the error, uninstall this feature, and then run the setup process again.

Machine Properties:
Machine name: SERVER01
Machine processor count: 4
OS version: Windows Server 2008 R2
OS service pack: Service Pack 1
OS region: United States
OS language: English (United States)
OS architecture: x64
Process architecture: 64 Bit
OS clustered: No

Product features discovered:
Product Instance Instance ID Feature Language Edition Version Clustered

Package properties:
Description: Microsoft SQL Server 2012 Service Pack 1
ProductName: SQL Server 2012
Type: RTM
Version: 11
Installation location: N:SoftwareWindows ServerMicrosoft SQL Server 2012 SP1 (x64)x64setup
Installation edition: Web

Slipstream: True
SP Level 1
Patch Level: 11.1.3128.0

Product Update Status:
Success: KB 2674319, KB 2793634

Product Updates Selected for Installation:
Title: Service Pack 1
Knowledge Based Article: KB 2674319
Version: 11.1.3000.0
Architecture: x64
Language: 1033

Title: SQL Server 2012 SP1 GDR Product Update
Knowledge Based Article: KB 2793634
Version: 11.1.3128.0
Architecture: x64
Language: All

Update Source: MU

User Input Settings:
ACTION: Install
ADDCURRENTUSERASSQLADMIN: false
AGTSVCACCOUNT: NT ServiceSQLSERVERAGENT
AGTSVCPASSWORD: *****
AGTSVCSTARTUPTYPE: Manual
ASBACKUPDIR: Backup
ASCOLLATION: Latin1_General_CI_AS
ASCONFIGDIR: Config
ASDATADIR: Data
ASLOGDIR: Log
ASPROVIDERMSOLAP: 1
ASSERVERMODE: MULTIDIMENSIONAL
ASSVCACCOUNT:
ASSVCPASSWORD:
ASSVCSTARTUPTYPE: Automatic
ASSYSADMINACCOUNTS:
ASTEMPDIR: Temp
BROWSERSVCSTARTUPTYPE: Disabled
CLTCTLRNAME:
CLTRESULTDIR:
CLTSTARTUPTYPE: 0
CLTSVCACCOUNT:
CLTSVCPASSWORD:
CLTWORKINGDIR:
COMMFABRICENCRYPTION: 0
COMMFABRICNETWORKLEVEL: 0
COMMFABRICPORT: 0
CONFIGURATIONFILE: C:Program FilesMicrosoft SQL Server110Setup BootstrapLog20130610_224552ConfigurationFile.ini
CTLRSTARTUPTYPE: 0
CTLRSVCACCOUNT:
CTLRSVCPASSWORD:
CTLRUSERS:
ENABLERANU: false
ENU: true
ERRORREPORTING: false
FEATURES: SQLENGINE, SSMS
FILESTREAMLEVEL: 0
FILESTREAMSHARENAME:
FTSVCACCOUNT:
FTSVCPASSWORD:
HELP: false
IACCEPTSQLSERVERLICENSETERMS: true
INDICATEPROGRESS: false
INSTALLSHAREDDIR: C:Program FilesMicrosoft SQL Server
INSTALLSHAREDWOWDIR: C:Program Files (x86)Microsoft SQL Server
INSTALLSQLDATADIR: E:MSSQL
INSTANCEDIR: C:Program FilesMicrosoft SQL Server
INSTANCEID: MSSQLSERVER1
INSTANCENAME: MSSQLSERVER
ISSVCACCOUNT: NT AUTHORITYNetwork Service
ISSVCPASSWORD:
ISSVCSTARTUPTYPE: Automatic
MATRIXCMBRICKCOMMPORT: 0
MATRIXCMSERVERNAME:
MATRIXNAME:
NPENABLED: 0
PID: *****
QUIET: false
QUIETSIMPLE: false
ROLE:
RSINSTALLMODE: DefaultNativeMode
RSSHPINSTALLMODE: DefaultSharePointMode
RSSVCACCOUNT:
RSSVCPASSWORD:
RSSVCSTARTUPTYPE: Automatic
SAPWD:
SECURITYMODE:
SQLBACKUPDIR:
SQLCOLLATION: Latin1_General_CI_AS
SQLSVCACCOUNT: NT ServiceMSSQLSERVER
SQLSVCPASSWORD:
SQLSVCSTARTUPTYPE: Automatic
SQLSYSADMINACCOUNTS: ELXTECHAdministrator
SQLTEMPDBDIR:
SQLTEMPDBLOGDIR:
SQLUSERDBDIR:
SQLUSERDBLOGDIR:
SQMREPORTING: false
TCPENABLED: 1
UIMODE: Normal
UpdateEnabled: true
UpdateSource: MU
X86: false

Configuration file: C:Program FilesMicrosoft SQL Server110Setup BootstrapLog20130610_224552ConfigurationFile.ini

Detailed results:
Feature: Management Tools — Basic
Status: Passed

Feature: Database Engine Services
Status: Failed: see logs for details
Reason for failure: An error occurred during the setup process of the feature.
Next Step: Use the following information to resolve the error, uninstall this feature, and then run the setup process again.
Component name: SQL Server Database Engine Services Instance Features
Component error code: 0x851A001A
Error description: Wait on the Database Engine recovery handle failed. Check the SQL Server error log for potential causes.
Error help link: http://go.microsoft.com/fwlink?Link >

Feature: SQL Browser
Status: Passed

Feature: SQL Writer
Status: Passed

Feature: SQL Client Connectivity
Status: Passed

Feature: SQL Client Connectivity SDK
Status: Passed

Все коды ошибок Центра обновления Windows

При обновлении системы или установке пакетов через Центр обновлений Windows могут появляться ошибки. На этой странице собраны все распространенные коды ошибок, которые можно увидеть при попытке обновить Windows 7, 8 или 10.

Большинство кодов ошибок универсальны и позволяют исправить проблему вне зависимости от версии Windows. Нажатие на любой код откроет страницу с инструкцией, где подробно расписаны методы решения.

Универсальная инструкция по исправлению ошибок Центра обновления:

  1. Открываем (от имени администратора) Пуск -> Выполнить -> cmd.exe, в командной строке пишем sfc /scannow, Enter.
  2. Ждем проверки, пишем вторую команду DISM.exe /Online /Cleanup-image /Restorehealth, ждем. Пробуем установить обновление заново.
  3. Если не получается — заходим на catalog.update.microsoft.com. или microsoft.com/ru-ru/download и загружаем/устанавливаем нужное обновление вручную, воспользовавшись поиском или каталогом для загрузки нужного обновления.

Если простой способ не помог, следует найти свою ошибку в списке и попробовать решить её при помощи подробной инструкции.

Коды ошибок Центра обновления Windows

0x80070002 ERROR_FILE_NOT_FOUNDНе удается найти указанный файл.
Центру обновлений не удается найти файлы, нужные для установки. Решение: сканирование системы, восстановление системных файлов, в случае неудачи — установка нужного обновления вручную из каталога Microsoft.

0x8007000D ERROR_INVALID_DATAНедопустимые данные.
Ошибка появляется при установке Windows (файлы повреждены, может потребоваться новый установочный архив), при восстановлении системы (повреждена точка восстановления), при активации (ошибка в разделе реестра CurrentControlSetEnumRoot), а также при обновлении Windows через Центр обновлений.

Решение: использовать Microsoft Easy Fix или установить обновление вручную. Программа Fix It более не поддерживается Microsoft, поэтому придется искать её в неофициальных источниках. Также можно использовать Media Creation Tool или ISO-образ системы (для Windows 10).

0x800F081F CBS_E_SOURCE_MISSINGИсточника пакета или файл не найден.
Ошибка загрузки компонента .NET Framework 3.5 на Windows 8/8.1, 10 и Server 2012/2016. Ошибка 0x800f081f возникает, когда указан альтернативный источник установки, но при этом:

  1. По адресу находятся не все нужные компоненты для установки.
  2. Пользователь не имеет прав доступа к файлам.
  3. В указанном расположении нет файлов, нужных для установки или обновления.

Для исправления ошибки нужно проверить, правильно ли указан путь, есть ли нужные файлы/обновления по адресу и есть ли у пользователя доступ на чтение этих файлов. При обновлении Windows может помочь ручная установка и утилита DISM.exe.

0x80073712 ERROR_SXS_COMPONENT_STORE_CORRUPTХранилище компонентов находится в несогласованном состоянии.
Причиной ошибки является поврежденный компонент манифеста CBS. Это чисто системная ошибка, из-за которой система не может установить обновление. До Windows 10 ошибку можно исправить при помощи утилиты CheckSUR.

В Windows 10 нужно загрузить с сайта Microsoft программу MediaCreationTool.exe, нажать «Обновить этот компьютер сейчас» и следовать инструкции на экране. Использование загрузочного образа Win 10 (формат ISO) позволит устранить системные ошибки, при этом личные документы и файлы на компьютере останутся без изменений.

0x800736CC ERROR_SXS_FILE_HASH_MISMATCHФайл компонента не соответствует сведениям проверки, указанным в манифесте компонента.
Ошибка появляется при попытке установить NET Framework 3.5 (includes .NET 2.0 and 3.0), либо при попытке обновить Windows без установленного NET Framework 3.5.

Решение: использовать команду Dism /online /enable-feature /featurename:NetFx3 /All в командной строке от имени администратора для установки фреймфорка. Альтернативный вариант — загрузить ISO-образ нужной версии Windows и использовать команду dism.exe /online /enable-feature /featurename:NetFX3 /Source:d:sourcesico, где d:sourcesico — диск и расположение образа системы. Без установленного NET Framework 3.5 Центр обновления Windows работать не будет, поэтому придется использовать командную строку.

0x800705B9 ERROR_XML_PARSE_ERRORНе удалось обработать запрошенные XML-данные.
Сравнительно редкая системная ошибка при обновлении. Если код 0x800705B9 появился на Windows 7, Vista или 8/8.1, для исправления ситуации нужно:

  1. Скачать Media Creation Tool с сайта Microsoft.
  2. Запустить, выбрать Upgrade this PC now (обновить сейчас).
  3. Нажать Next (далее) и дождаться окончания процесса.

В Windows 10 для восстановления системных файлов также используется Media Creation Tool и ISO-образ системы. Также можно ввести в командную строку ряд команд, которые очистят все системные файлы и сбросят настройки.

0x80070246 ERROR_ILLEGAL_CHARACTERОбнаружен недопустимый символ.
Нестандартная ошибка, которая может быть связана как с системным сбоем, так и с ошибками со стороны пользователя. Решение ошибка 0x80070246 «Обнаружен недопустимый символ» осложняется тем, что при ней нельзя запустить утилиту swf /scannow (и ряд других системных служб).

Для исправления этого кода ошибки Центра обновлений нужно:

  1. Сделать резервную копию реестра и важных файлов на случай проблем.
  2. Запустить режим устранения неполадок центра обновлений: Пуск -> ввести в поиске «устранение неполадок» -> Enter -> нажать «Просмотреть все» в левой панели -> найти «Центр обновления Windows». Следовать появившемся инструкциям.
  3. Для Windows 10: Пуск -> Параметры -> Обновление и безопасность -> Устранение неполадок.

Если это не помогло, придется восстановить исходное состояние Центра обновления Windows. Вручную это может занять до часа времени и более — желательно иметь хотя бы общее понимание своих действий, а также резервные копии важных данных и реестра Windows.

0x8007370D ERROR_SXS_IDENTITY_PARSE_ERRORСтрока удостоверения повреждена.
На сайте Microsoft ошибка с кодом 0x8007370D описана как ошибка повреждения, возникающая при повреждении системных файлов. Это стандартная ошибка, решить которую может центр исправления неполадок. Встроенная утилита восстановит целостность системных файлов, после чего перестанут появляться ошибки при скачивании и установке обновлений.

В Windows Vista или XP нужно запустить средство устранения неполадок Центра управления Windows. Найти его можно через поиск в меню Пуск или в Панели управления.

В Windows 7, 8/8.1 и 10 все также просто, но для полноценной работы средства устранения неполадок требуется подключение к интернету. В противном случае шанс на успешное решение проблемы уменьшается, поскольку система не сможет загрузить недостающие файлы.

Для запуска нужно: в поиске ввести «Устранение неполадок», открыть, выбрать Параметры -> Устранение неполадок. Найти раздел Система и безопасность, в нем нажать на пункт Устранение неполадок с помощью Центра обновления Windows, после чего нажать кнопку Далее. Дождаться окончания сканирования системы и устранения неисправностей.

Microsoft советует использовать этот метод для следующих кодов ошибок (для Windows 7, Vista, XP):

  • 0x80245003 — Служба Центра обновления Windows повреждена или не работает.
  • 0x80070514 — Служба Центра обновления Windows повреждена или не работает.
  • 0x8DDD0018 — Библиотеки BITS.dll повреждены.
  • 0x80246008 — Библиотеки BITS.dll повреждены.
  • 0x80200013 — Библиотеки BITS.dll повреждены.
  • 0x80004015 — Библиотеки BITS.dll повреждены.
  • 0x80070003 — Библиотеки BITS.dll повреждены.
  • 0x800A0046 — Библиотеки BITS.dll повреждены.
  • 0x800A01AD — Библиотеки DLL Центра обновления Windows не зарегистрированы.
  • 0x80070424 — Библиотеки DLL Центра обновления Windows не зарегистрированы.
  • 0x800B0100 — Ошибка проверки подписи. (кроме Windows XP)
  • 0x80070005 — Ошибка определения хранилища данных. (кроме Windows XP)
  • 0x80248011 — Ошибка определения хранилища данных.
  • 0x80070002 — Ошибка определения хранилища данных.
  • 0x80070003 — Ошибка определения хранилища данных.

В Windows 10 для восстановления системы после ошибок также может использоваться ISO-образ системы (доступен на сайте Microsoft) и встроенная утилита DISM.exe.

0x8007370B ERROR_SXS_INVALID_IDENTITY_ATTRIBUTE_NAMEИмя атрибута в удостоверении находится вне допустимого диапазона.
Ошибка обновления Windows с кодом 0x8007370B обозначает, что хранилище компонентов Windows повреждено. Вне зависимости от причины, нужен доступ в интернет, сканирование системы и дозагрузка поврежденных или недостающих файлов. Как и в других случаях, ошибка исправляется при помощи DISM.exe или средства проверки готовности системы к обновлению.

0x8007370A ERROR_SXS_INVALID_IDENTITY_ATTRIBUTE_VALUEЗначение атрибута в удостоверении находится вне допустимого диапазона.
В большинстве случаев ошибка возникает на Windows 10. На сайте поддержки Microsoft советуется решать проблему при помощи одной из двух команд, которые требуется ввести в Командную строку от имени администратора: DISM /Online /Enable-Feature /FeatureName:NetFx3 /All /LimitAccess /Source:d:sourcessxs или DISM /online /cleanup-image /RestoreHealth /source:d:sources /LimitAccess, если первая команда не помогла.

Вместо d: должен быть указан диск, на который установлена Windows 10 (или располагается виртуальный образ). Если проблема связана с Net Framework 3.5, может потребоваться полная переустановка этого фреймворка. Если ничего не помогает, остается запустить процесс установки Windows и выбрать пункт «обновление с сохранением данных». Предварительно можно сохранить на внешнем носителе все нужные файлы во избежание потери важной информации (хотя риск при восстановлении минимален).

0x80070057 ERROR_INVALID_PARAMETERНеправильный параметр.
При появлении ошибки с кодом 0x80070057 в Центре обновления стоит попробовать установить его вручную, загрузив файлы из каталога Microsoft или центра обновлений.

Если ошибка при обновлении остается, стоит сделать резервную копию редактора реестра и удалить следующий ключ: KEY_LOCAL_MACHINE SYSTEM CurrentControlSet services eventlog Microsoft-Windows-PrintService /Operational. Ключ также может находиться в разделе HKEY_LOCAL_MACHINE SYSTEM CurrentControlSet services eventlog. После удаления ключа нужно перезагрузить компьютер и запустить установку обновления заново.

0x800B0100 TRUST_E_NOSIGNATUREВ этом объекте нет подписи.
При появлении ошибки 0x800B0100 следует убедиться, что все файлы типа .mum и .cat находятся в каталоге %windir%TempCheckSURservicing, а все файлы типа .manifest должны быть в каталоге %windir%TempCheckSURmanifests.

После копирования файлов в нужные каталога нужно заново запустить средство проверки готовности системы к обновлению. Если это не помогло, нужно удалить обновление KB2488113 (если стоит) и временно отключить компонент Microsoft .Net Framework 3.5.1. После этого нужно выполнить частичную загрузку системы и заново запустить средство проверки.

При помощи DISM.exe, команды sfc /scannow, средства проверки готовности системы к обновлению и загрузочного образа Windows также можно исправить следующие проблемы:

  • 0x80092003 CRYPT_E_FILE_ERROR — При попытке чтения или записи файла Центром обновления Windows произошла ошибка.
  • 0x800B0101 CERT_E_EXPIRED — Истек или не наступил срок действия требуемого сертификата при проверке по системным часам или отметке времени в подписанном файле.
  • 0x8007371B ERROR_SXS_TRANSACTION_CLOSURE_INCOMPLETE — Отсутствуют один или несколько обязательных членов транзакции.
  • 0x80070490 ERROR_NOT_FOUND — Не удалось выполнить поиск новых обновлений.

Надпись ERROR_NOT_FOUND может говорить о временных ошибках с сетью или проблемах с интернет-соединением. Если проблема не пропадает, нужно попробовать установить обновление вручную.

Статья находится в состоянии редактирования, поскольку кодов ошибок у Центра обновлений достаточно. По мере появления новой информации, информация на странице будет обновляться.

Источник

 Windows OS Hub / SQL Server / SQL Server Install Error: Could Not Find the Database Engine Startup handle

I came across an interesting error when installing MS SQL Server 2014 on a new VM running Windows Server 2012 R2. SQL Server setup was interrupted almost at the end with the error “Could not find the Database Engine startup handle”.

Could not find the Database Engine startup handle - SQL Server 2014 Install error

There was the following error in the SQL installation log (summary.txt file):

Feature: Database Engine Services
Status: Failed: see logs for details
Reason for failure: An error occurred during the setup process of the feature.
Next Step: Use the following information to resolve the error, uninstall this feature, and then run the setup process again.
Component name: SQL Server Database Engine Services Instance Features
Component error code: 0x851A0019
Error description: Could not find the Database Engine startup handle.

This MS SQL Server installation error is related to standard installation settings when SQL Server is run under an unprivileged account NT ServiceMSSQL$V2014. This account may not have the privilege to run SQL Server service, so the service cannot be run and the installer returns the “Could not find the Database Engine startup handle” error. Also, this error may indicate that somebody has already tried to install SQL Server on this computer and files or services left after the installation have not been removed.

To fix the SQL Server install error:

  1. Correctly uninstall all programs related to SQL Server from the Control Panel and restart your server (make sure there are no files or folders in the folder C:Program FilesMicrosoft SQL ServerMSSQL12.xxx).;
  2. Run the installation from the SQL Server distribution from scratch. On the Server Configuration tab, make sure that the SQL Server Database Engine service is run under NT ServiceMSSQLSERVER account; SQL Server Database Engine - service account name NT ServiceMSSQLSERVER
  3. Change this account to NT AUTHORITYSYSTEM; install Sql Server under NT AUTHORITYSYSTEM
  4. Continue the SQL Server installation. The error shouldn’t appear again.

After the installation is complete, we strongly recommend to change the account, under which SQL Server Database Engine is run, to an unprivileged account. You don’t need to grant this account local administrator permissions ( it’s enough to provide necessary privileges inside SQL Server security settings). You can use accounts with sysadmin privileges: NT ServiceMSSQLSERVICE or NT ServiceSQLSERVERAGENT. To change the account, under which SQL Server runs:

  1. Run the SQL Server Configuration Manager and go to SQL Server Services;
  2. Click SQL Server (MSSQLSERVER), then click Browse and in the “This account” field specify the account, under which the service must be run, or use a gMSA  (Group Managed Service Account). Enter the user password and save the changes; Changing The SQL Server Service Account In SQL
  3. Restart SQL Server services.

This method will help you to fix the “Could not find the Database Engine startup handle” error during the installation of any SQL Server versions (2016, 2014, 2012 or 2008 r2).

Thanks a lot Shanky_621. You gave me the confidence to make this ‘simple’ change . I will go through the entire process on a step-by step.

I made the change in the ‘Log on as’ property  (NT Authority, see picture) for the SQL Server 2016 Database Engine (previously NT Service).

Steps to accomplish this change:

1) Open SQL Server Configuration Manager
2) Under SQL Server Services Select Your Server
3) Right Click and Select Properties
4) Log on Tab Change to Built-in-account
5) In the drop down list select Network Service
6) Apply and start the service

At the hindsight, I realized that this change is a must for the Reporting Services 2016 Engine too; I changed this for SQL Server 2016 Launch Pad also, just to test (though I did not know anything about the LaunchPad !)  

The change for the Database Engine 2016 initially started the service, which was previously not starting(the reporting services 2016 engine was starting earlier too (though not working in the Report Server/Manager side, or even while connecting via SSMS
to the Reporting Services Engine), even before this change, with NT Service itself.) See picture (screenshot taken after the final modifications are completed).

I was delighted that the Database Engine 2016 started, and tried to connect via SSMS 2016; I found some other error!

***********************************

(I do not have the screenshot for this below error, since this is in now resolved, apologize for it, but had copied to a notepad.)

TITLE: Connect to Server
——————————

Cannot connect to MachineNameSQL2016DEV.

——————————
ADDITIONAL INFORMATION:

Login failed for user ‘MachineNameAdministrator’. (Microsoft SQL Server, Error: 18456)

For help, click: http://go.microsoft.com/fwlink?ProdName=Microsoft%20SQL%20Server&EvtSrc=MSSQLServer&EvtID=18456&LinkId=20476

——————————
BUTTONS:

OK
—————————— 

The error 18456 is too generic, and after some online reading I could not sort out. 

In the SSMS (2016) error message box  the «Technical Details»  section , I found the following:

Server Name: MachineNameSQL2016DEV
Error Number: 18456
Severity: 14
State: 1
Line Number: 65536

********************************************

Solution:

Go to  — 

Control PanelAll Control Panel ItemsAdministrative Tools Event Viewer :

I found this:

Login failed for user ‘MachineNameAdministrator’. 
Reason: Could not find a login matching the name provided. [CLIENT: <local machine>]

(This message in the Event Viewer)

********************************************

While installing the database engine, I opted for mixed mode authentication; but neither the Windows login nor the sa login were connecting via SSMS ! They threw me the same above error, all while the Database Engine 2016 was STILL running !

After some online reading, I tried this:  i.e. opt for SQL Server Login with sa and no password, it works! I do not know how on earth this is successful! But to get this I struggled for over 3 hours!

Once this sa/no-password SQL Server login was successful, I did this:

CREATE LOGIN [<domainName><login_name>] FROM WINDOWS;
GO

The above domain/login is my Windows account (MachineNameSQL2016DEV); I can then get into the SSMS, and give maximum permission to this account.

Now, I am able to use my Windows login to open the SSMS 2016. See below.

Even after this, my problems did not end.  I realized that the SSRS — Reporting Services 
Engine was not connecting with the Windows authentication in SSMS (obviously SSRS does not
have SQL Server authentication) with NT Service, even though this service itself is STILL working (just as the case of Database Engine, a little earlier).

I needed to change this SSRS 2016 Service too to NT Authroity, and make appropriate modifications in the Reporting Services Configuration Manager (this also took more than 2 hours, but do not want
to elaborate).

I had to create the Report Server database using the Reporting Services Configuration Manager,
and restart the SSRS service a couple of times to make the URL of Report Server and Report Manager
to work. 

After some trial and error, I am able to open the Reporting Services Engine from my SSMS,
using Windows Authentication.

I am also able to work with the Report Manager. 

In a nutshell, I did this:

DB Engine, Reporting Services Engine: change to NT Authority (earlier NT Service), and make these services running. You do
not need to uninstall/reinstall SQL Server 2016 for this.  Remember, I am using a built-in administrator account — MachineNameAdministrator. I am not sure whether this will work when you are using some other
type of account.

Once you get these 2 services running, you connect them via SSMS, and handle issues.

Honestly, installing Microsoft SQL Server 2016 in Windows 10 OS is somewhat complicated, with separate installations for SSMS and SSDT, which were not required in previous versions such as 2012, 2008R2, etc.

Thanks

Thanks a lot Shanky_621. You gave me the confidence to make this ‘simple’ change . I will go through the entire process on a step-by step.

I made the change in the ‘Log on as’ property  (NT Authority, see picture) for the SQL Server 2016 Database Engine (previously NT Service).

Steps to accomplish this change:

1) Open SQL Server Configuration Manager
2) Under SQL Server Services Select Your Server
3) Right Click and Select Properties
4) Log on Tab Change to Built-in-account
5) In the drop down list select Network Service
6) Apply and start the service

At the hindsight, I realized that this change is a must for the Reporting Services 2016 Engine too; I changed this for SQL Server 2016 Launch Pad also, just to test (though I did not know anything about the LaunchPad !)  

The change for the Database Engine 2016 initially started the service, which was previously not starting(the reporting services 2016 engine was starting earlier too (though not working in the Report Server/Manager side, or even while connecting via SSMS
to the Reporting Services Engine), even before this change, with NT Service itself.) See picture (screenshot taken after the final modifications are completed).

I was delighted that the Database Engine 2016 started, and tried to connect via SSMS 2016; I found some other error!

***********************************

(I do not have the screenshot for this below error, since this is in now resolved, apologize for it, but had copied to a notepad.)

TITLE: Connect to Server
——————————

Cannot connect to MachineNameSQL2016DEV.

——————————
ADDITIONAL INFORMATION:

Login failed for user ‘MachineNameAdministrator’. (Microsoft SQL Server, Error: 18456)

For help, click: http://go.microsoft.com/fwlink?ProdName=Microsoft%20SQL%20Server&EvtSrc=MSSQLServer&EvtID=18456&LinkId=20476

——————————
BUTTONS:

OK
—————————— 

The error 18456 is too generic, and after some online reading I could not sort out. 

In the SSMS (2016) error message box  the «Technical Details»  section , I found the following:

Server Name: MachineNameSQL2016DEV
Error Number: 18456
Severity: 14
State: 1
Line Number: 65536

********************************************

Solution:

Go to  — 

Control PanelAll Control Panel ItemsAdministrative Tools Event Viewer :

I found this:

Login failed for user ‘MachineNameAdministrator’. 
Reason: Could not find a login matching the name provided. [CLIENT: <local machine>]

(This message in the Event Viewer)

********************************************

While installing the database engine, I opted for mixed mode authentication; but neither the Windows login nor the sa login were connecting via SSMS ! They threw me the same above error, all while the Database Engine 2016 was STILL running !

After some online reading, I tried this:  i.e. opt for SQL Server Login with sa and no password, it works! I do not know how on earth this is successful! But to get this I struggled for over 3 hours!

Once this sa/no-password SQL Server login was successful, I did this:

CREATE LOGIN [<domainName><login_name>] FROM WINDOWS;
GO

The above domain/login is my Windows account (MachineNameSQL2016DEV); I can then get into the SSMS, and give maximum permission to this account.

Now, I am able to use my Windows login to open the SSMS 2016. See below.

Even after this, my problems did not end.  I realized that the SSRS — Reporting Services 
Engine was not connecting with the Windows authentication in SSMS (obviously SSRS does not
have SQL Server authentication) with NT Service, even though this service itself is STILL working (just as the case of Database Engine, a little earlier).

I needed to change this SSRS 2016 Service too to NT Authroity, and make appropriate modifications in the Reporting Services Configuration Manager (this also took more than 2 hours, but do not want
to elaborate).

I had to create the Report Server database using the Reporting Services Configuration Manager,
and restart the SSRS service a couple of times to make the URL of Report Server and Report Manager
to work. 

After some trial and error, I am able to open the Reporting Services Engine from my SSMS,
using Windows Authentication.

I am also able to work with the Report Manager. 

In a nutshell, I did this:

DB Engine, Reporting Services Engine: change to NT Authority (earlier NT Service), and make these services running. You do
not need to uninstall/reinstall SQL Server 2016 for this.  Remember, I am using a built-in administrator account — MachineNameAdministrator. I am not sure whether this will work when you are using some other
type of account.

Once you get these 2 services running, you connect them via SSMS, and handle issues.

Honestly, installing Microsoft SQL Server 2016 in Windows 10 OS is somewhat complicated, with separate installations for SSMS and SSDT, which were not required in previous versions such as 2012, 2008R2, etc.

Thanks

Понравилась статья? Поделить с друзьями:
  • Служба интел рст не работает как исправить
  • Служба интел rst не работает как исправить
  • Служба звука не отвечает windows 10 как исправить на ноутбуке
  • Служба группирования сетевых участников не запущена windows 7 как исправить
  • Служба беспроводной связи windows не запущена на этом компьютере windows 10 как исправить