SQL Server replication requires an actual Server name to connect to the Server

Source: Internet
Author: User

The WIN2008 R2 installed on the server does not care about the machine name. After the SQL2008 R2 database is installed, the machine name is changed when the AD domain is configured.

Then, when you start configuring database image synchronization, you first try to copy and publish the database. The result shows that "SQL Server replication requires an actual Server name to connect to the Server. Connection by server alias, IP address, or any other backup name is not supported. Specify the actual server name... ", as shown in.

After checking the information on the Internet, some students concluded that the machine name is incorrect. This reminds me that the machine name was modified before, but the instance linked to the database uses an IP address or an alias. Okay. The solution is as follows:

1. Check the server (MACHINE) Name and run the following command in the default database instance or non-named database instance:

Use mastergoselect @ servername; select serverproperty ('servername ')

2. If the server name obtained from the preceding SQL query does not match the actual computer name, run the following command:

Sp_dropserver 'old _ server_name 'gosp _ addserver' current _ computer_name ', 'local'

3. Execute Step 1 again. If the server name is not changed or is displayed as null, restart the SQLSERVER service. Perform Step 1. The server name is displayed normally.

NOTE: If multiple instances exist, each instance must go through the preceding three steps.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.