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

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. Server alias and IP address are not supported
Address or any other backup name. 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 server 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'
Go
Sp_addserver 'current _ computer_name ', 'local'

In this case, run select @ servername again, and the null value may be obtained. Restart sqlserver
Service, 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.