SQL Server replication requires an actual Server name to connect to the Server. Error Solution

Source: Internet
Author: User

The following exception occurs during the configuration of Transactional Replication in SQL Server 2005/2008.

Exception information: Replication. Utilities
----------

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 "xxxxxxx ".

SQL Server replication requires the actual server name to make a connection to the server. Connections through a server alias, IP address, or any other alternate name are not supported.

Exception:

Solution:

1. Check the SQL Server Name:

SELECT @ SERVERNAME

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

Sp_dropserver 'old _ server_name '-- previous name
GO
Sp_addserver 'current _ computer_name ', 'local' -- new name

In this case, run SELECT @ SERVERNAME again, and the NULL value may be obtained. Restart the SQLSERVER service and run the query statement again to obtain the real name of the SERVER.

 

========================================================== ========

 

Error
The server 'lc04 'cannot be deleted because it is used as the Publishing Server during replication. (Microsoft SQL Server, error: 20582)

Solution

Select * from msdb. dbo. MSdistpublishers
Delete from msdb. dbo. MSdistpublishers
Select * from msdb. dbo. MSdistpublishers
Exec sp_droplinkedsrvlogin 'lc04 ', null
Exec sp_dropserver 'lc04 ', 'droplogins'
Exec sp_addserver 'mssqlserver ', 'local'
Restart SQLServer Service

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.