Sql server 2005 uninstalled and reinstalled

Sql server 2005 uninstalled and reinstalled

Sql sercer 2005 needs to be uninstalled before reinstalling. Since the components of Sql sercer 2005 are scattered, it is necessary to find the corresponding location and uninstall one by one when uninstalling. If the uninstallation is not clean, many problems will occur when reinstalling, resulting in installation failed. Two tools are needed here: Windows Install Clean Up (msicuu2.exe) and SRVINSTE.EXE.

insert image description here

1. Sql server 2005 complete uninstall tutorial

Step 1 : Stop all services of SQL server 2005.

Step 2 : Open the Control Panel to remove the program.

insert image description here

Note: uninstall sequence, reverse uninstall:

Microsoft SQL Server VSS Writer
Microsoft SQL Server Setup Support Files(English)
Microsoft SQL Server Native Client
Microsoft SQL Server 2005 Books Online(English)
Microsoft SQL Server 2005 Backward compatibillty
Microsoft SQL Server 2005

Step 3 : Install Windows Installer Clean Up. (msicuu2.exe file). Run after installation.

insert image description here

Select the following items and press Remove:

Microsoft SQL Server VSS Writer
Microsoft SQL Server Setup Support Files(English)
Microsoft SQL Server Native Client
Microsoft SQL Server 2005 Tools
Microsoft SQL Server 2005 Books Online(English)
Microsoft SQL Server 2005 Backward compatibillty
Microsoft SQL Server 2005

Step 4 : Run the SRVINSTW.exe file, choose to remove the service, and proceed to the next step.

insert image description here

Select the type of computer to execute as the local machine.

insert image description here

insert image description here

Select the following service names respectively.

SQL Server VSS Writer
SQL Server FullText Search(MSSQL)
SQL Server Browser
SQL Server Agent(MSSQLSERVER)
SQL Server Active Directory Helper
SQL Server (MSSQLSERVER)

Click Next to proceed with the removal.

Step 5 : In the start menu, run: Regedit, delete the following registry:

HKEY_CURRENT_USER/Software/Microsoft/Microsoft SQL Server
HKEY_LOCAL_MACHINE/SOFTWARE/Microsoft/Microsoft SQL Server 
HKEY_LOCAL_MACHINE/SOFTWARE/Microsoft/MSSQLServer
HKEY_LOCAL_MACHINE/SOFTWARE/Microsoft/SQLXML4

Step 6 : Finally delete the following two directories:

C:/Program Files/Microsoft SQL Server
C:/Program Files/SQLXML 4

Step Seven : Restart the computer.

2. Sql server 2005 installation tutorial

Prepare the SQL Server 2005 installation CD or installation file, double-click the "setup.exe" file on the installation CD or run the installation file, enter the installation program, accept the license agreement, and click the "Next" button.

insert image description here

The "Install Prerequisite Components" interface appears, wait patiently for the system to automatically install the necessary components.

insert image description here

After waiting for a while, enter the "Welcome to the Microsoft SQL Server Installation Wizard" interface.

insert image description here

The "System Configuration Check" interface appears, and the system will be checked automatically.

insert image description here

Click Next, the installer prepares the installation wizard, and then starts the preparatory work before installation.

insert image description here

The registration interface pops up, enter your name and company.

insert image description here

Click "Next" to select the components to be installed, generally select all. You can also make more detailed settings after advanced options.

insert image description here

Select the default instance, and proceed to "Next".

insert image description here

Set the service account, select the built-in system account of the cause, and check the following services.

insert image description here

Enter the authentication mode, select the mixed mode (Windows authentication and sql server authentication), and enter the password and confirm the password.

insert image description here

Click Next to enter the collation settings, select Chinese_PRC, and check Accent Sensitive.

insert image description here

Enter the error and usage report setting interface, and proceed directly to the next step.

insert image description here

Show all component options.
insert image description here

After clicking the installation, the system starts to configure the selection, and click one more step to enter the installation progress interface.

insert image description here

insert image description here

After all components are installed, the interface is as follows.

insert image description here

Click Finish to complete the installation.

insert image description here

3. Problems and solutions during installation

When there is a problem during installation, the component installation will fail, as shown in the following figure:

insert image description here
Issue 1: Unable to open key, please verify access,

insert image description here

Solution: The administrator runs the command prompt, and then enters the following code to press Enter.

insert image description here

Question 2: The Sql Server service cannot be started.
insert image description here

Solution: Do not click Retry, and replace the files sqlservr.exe and sqlos.dll under C:\Program Files\Microsoft SQL Server\MSSQL.1\MSSQL\Binn in the computer (sqlservr.exe and sqlos.dll The replacement file is in the SP4 patch file), and then try again.

Guess you like

Origin blog.csdn.net/weixin_45627039/article/details/132056364
Recommended