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

Source: Internet
Author: User

WIN2008 R2 installed on the server, and then did not care about the machine name, installed the SQL2008 R2 database, configure the AD domain when the machine name was modified.

Then, when you start to configure Database mirroring synchronization, you first try the database replication publication, which indicates that SQL Server replication requires the actual server name to connect to the server. Connecting through a server alias, IP address, or any other alternate name is not supported. Please specify the actual server name ..., as shown in the following figure.

Online Check the next, a classmate summed up that is the machine name is wrong, this just remembered to have actually modified the machine name, but this time the link database in the case of the IP or alias form of the address. Well, the solution is as follows:

1. Check server (machine) name, execute in database default instance or unnamed instance:

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

2. The server name and the actual computer name that are found in the above SQL query are not met, execute the following:

 

3. Perform step 1 again and discover that the server name has not changed or is displayed as a null value, restarting the SQL Server service. Finally, perform step 1, and the server name appears normal.

Note: If you have more than one instance, each instance will go through the 3 steps above.

Related Article

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.