I recently reinstalled the system and encountered some problems when installing the database. The following error is always prompted,
During the installation process, I only specified the installation directory of the database and checked the Installation Log (sqlstp. Log). The following error message is displayed:
######################################## #######################################
10 : 23 : 28 Process exit code :( - 1 )
10 : 23 : 34 InstallProgramAn error occurred while configuring the server. For more information, see Server Error Log and c: \ windows \ sqlstp. log.
10 : 23 : 34 Action cleanupinstall:
10 : 23 : 34 C: \ release E ~ 1 \ Admini ~ 1 \ Locals ~ 1 \ Temp \ sqlsetup \ bin \ scm.exe - Silent 1 - Action 4 - Service SQLServerAgent
10 : 23 : 34 Process exit code :( 1060 ) The specified service is not installed.
10 : 23 : 34 C: \ release E ~ 1 \ Admini ~ 1 \ Locals ~ 1 \ Temp \ sqlsetup \ bin \ scm.exe - Silent 1 - Action 4 - Service MSSQLServer
10 : 23 : 34 Process exit code :( 0 )
10 : 23 : 34 Statsgenerate returned: 2
10 : 23 : 34 Statsgenerate ( Zero X 80000000 , 0x1 , 0xf00000 , Zero x 100 , 2052 , 303 , 0x0 , 0x1 , 0 , 0 , 0
10 : 23 : 34 Statsgenerate - 1 , Administrator)
10 : 23 : 34 Installation failed.
Google may have a file in the installation directory and deleted the directory "C: \ Program Files \ Microsoft SQL Server". The installation still failed, which is strange. Recall my installation, is it because the specified database file directory has to be deleted, and then the data file directory I put on drive D has been deleted. Because it was previously installed, the "MSSQL" directory exists, after this directory is deleted, the installation is successful!
Tip:
- Before deleting the MSSQL directory, check whether the directory contains useful database files. If yes, back up the files to other directories.
- After you fail to reinstall SQL Server, follow these steps to install it multiple times without restarting it.
1. Enter Regedit in start-> running
2. to the HKEY_LOCAL_MACHINE \ SYSTEM \ CurrentControlSet \ Control \ Session Manager location
3. Select File> export and save (for security reasons)
4. Right-click pendingfilerenameoperations in the right window, select Delete, and then confirm