vCenter Server 4.1 Data Migration tool error
DB logs: HResult 0x2, Level 16, State 1
Named Pipes Provider: Could not open a connection to SQL Server .
[ERROR] Sqlcmd: Error: Microsoft SQL Native Client : An error has occurred while establishing a connection to the server. When connecting to SQL Server 2005, this failure may be caused by the fact that under
the default settings SQL Server does not allow remote connections..
Sqlcmd: Error: Microsoft SQL Native Client : Login timeout expired.
[ERROR] Error: vCenter Server DB backup failed
Resolution:This issue can occur if the vCenter Server is mis configured.
Troubleshoot this issue:Note: To verify some of these settings, it is necessary to install Microsoft Studio Manager Express on the source server.You can download this utility from the Microsoft Download Center
1. Check whether the SQL Server service itself is running on the existing vCenter Server.
Having this service disabled or not running can cause this issue and prevent the script from running. To ensure that it is running:
1. Click Start > Run, type services.msc and click OK.
2. Right-click SQL Server (SQLEXP_VIM), then click Start.
2. Check whether the firewall is blocking the MSSQL server:
Ensure there are no firewalls blocking access to the SQL Server instance on the vCenter Server. If you are unsure, disable these services during migration.
3. Check Named Pipes and TCP/IP protocols are enabled on the server.
To ensure they are enabled:
- Launch the SQL Server Configuration Manager utility and go to SQL Server 2005 Network Configuration.
4. Check there are no Invalid entries in the Named Pipes Protocol under SQL Server 2005 Network Configuration.
To check if there are invalid entries:
- Launch the SQL Server Configuration Manager utility and navigate to SQL Server 2005 Network Configuration.
5. Now remove the data folder from the location C:\datamigration and rerun the backup.exe. Backup completed successfully.