Core component of SQL Server for storing, processing, and securing data
0x84B40002 in this case means the Database Engine feature was never successfully configured, so Repair cannot fix it. The supported next step is to remove the failed or partial SQL Server feature/instance, then run Setup again.
Recommended path:
- Do not use Repair again for this failed Engine feature Repair only works for features from a successful installation. The command-line repair workflow also requires a valid existing instance name and features to repair.
- Check the Setup logs first
Open the SQL Server Setup log folder and review Summary.txt for the underlying failure from the original install attempt. Search for
errororfailed. This is the key step when Setup shows only a generic feature failure. - Remove any partial installation left by the failed attempt Since SQL Server 2019 and 2022 were previously installed and removed, and this 2025 install never completed, a partial installation is the most likely blocker. Remove the incomplete SQL Server feature/instance, then retry the installation.
- If the failure happens again, verify disk sector size SQL Server Setup failures and Database Engine startup-handle failures can occur when the storage device reports a sector size larger than 4 KB, which is a known issue on some Windows 11/NVMe configurations.
- Verify OS support for the SQL Server version Confirm that the SQL Server version and servicing level being installed are supported on the Windows version in use.
- Retry installation from full media if possible A moderator recommendation for repeated setup failures is to use Download Media and run Setup from the ISO, which can provide better diagnostics.
- If installing through the wizard, confirm the correct feature selection On Feature Selection, choose Database Engine Services for a new Database Engine instance.
If a command-line reinstall is used, the Database Engine-only feature value is:
/FEATURES=SQLEngine
If a repair is attempted later on a successfully installed instance, the documented syntax is:
setup.exe /q /ACTION=Repair /INSTANCENAME=<instancename>
That syntax does not apply to the current failed install because the Engine feature was never successfully configured.
- Troubleshoot SQL Server installation errors
- Install, configure, or uninstall SQL Server on Windows from the command prompt
- Install, configure, or uninstall SQL Server on Windows from the command prompt
- Install SQL Server from the Installation Wizard (Setup)
- sql server database engine service how can i resolve this in windows 11 - Microsoft Q&A