SQL Server does not install the copy component on this instance of SQL Server.

Source: Internet
Author: User
When copying and subscribing, sqlserver2005 appears: Because the replication components are not installed on this instance of SQL Server, Microsoft SQL Server cannot access these components. For details, see SqlServer solution: to configure a publishing and subscription, but always report: replication requires an actual server name to connect to the server,

When copying and subscribing, sqlserver2005 appears: Microsoft SQL server cannot access these components because the replication components are not installed on this instance of SQL Server. See SQL server solution: because you need to configure a publishing subscription, but always report: "sqlserver replication requires an actual server name to connect to the server,

Sqlserver2005 appears during replication and subscription:  

"Microsoft SQL server cannot access these components because the replication components are not installed on this instance of SQL Server. For details, see SQL server ......"

Solution:

  You need to configure a publishing and subscription, but always report: "SQL server replication requires an actual server name to connect to the server. You cannot connect to the server by alias, IP address, or any other backup name. Specify the actual server name "xxxx" (Replication Utlities ). "

After some analysis, we found that the machine name was modified after SQL server was installed. Run the following two statements:

Use master

Go

Select @ servername;
Select serverproperty ('servername ')

If the two results are inconsistent, the machine name is changed and the above error is reported during configuration replication.

-- To fix this problem
-- Execute the following statement and restart the SQL service.

If serverproperty ('servername') <> @ servername
Begin
Declare @ server sysname
Set @ server =servername
Exec sp_dropserver @ server = @ server
Set @ server = cast (serverproperty ('servername') as sysname)
Exec sp_addserver @ server = @ server, @ local = 'local'
End



Finally, don't forget to restart the service. After the service is started, run:

Use master

Go

Select @ servername;
Select serverproperty ('servername ')

Everything works, and replication works!

  The above is a reference from other netizens. After setting the above method, the same prompt is returned.

Solution:

Do not use IP addresses when connecting to the database. Enter the computer name in the server name.

  

  

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.