Avatar of Murali Gvr
Murali Gvr
Flag for India asked on

Issue on Replication

Hi,
Please help me to resolve the issue on Replication. While doing the replication between 2014 to 2012, screenshot attached.

I tried to add server as actual server name as Local, but the message showing as already exists.

Is there any other approach.

Regards
Murali
Repl.JPG
Microsoft SQL Server

Avatar of undefined
Last Comment
Murali Gvr

8/22/2022 - Mon
Jason clark

Deepak Chauhan

Check the server name is sys.servers system view.

You have two options:

Option 1. change the server name in replication setup which is showing in sys.servers
                 
select * from sys.servers where server_id=0 

Open in new window


Option 2. Change the server in system table using below command.

commands:
select * from sys.servers where server_id=0

sp_dropserver <Server Name which is showing in result>
go
sp_addserver <Server Name by which you connect the SQL instance>, LOCAL
go

Open in new window

Murali Gvr

ASKER
Thanks Deepak,

 I tried as same as your steps. But i faced same issue. Actually my requirement is 2014 server is subscriber and 2012 is publisher. As of now I tried to fix the issue, but never get to succeed.

Regards
Murali
Your help has saved me hundreds of hours of internet surfing.
fblack61
Deepak Chauhan

Distributor is local or Remote?  

Well... can you try by creating the aliase of subscriber at publisher server.
Murali Gvr

ASKER
Distributor is Local.

Actually Publisher is Local server(2012 Standard)  and Subscriber (2014 Standard) which is Cloud Server(AWS). I used to change the actual server name as 'es' server name. Even I tried to Replication from Local(2012) to AWS(2012) using same procedure it's working on good condition. Please help me how to fix this issue.

Regards
Murali
Deepak Chauhan

for which server you are getting connection error "can not connect to "SUbscriber" or Publisher\Distributor"

Have you checked the local server name.
SELECT SERVERPROPERTY(N'<servername>')
SELECT @@SERVERNAME

also check the server name and network name.
sp_helpserver

Are you able to connect all instance in ssms by the name which you are using in replication?
⚡ FREE TRIAL OFFER
Try out a week of full access for free.
Find out why thousands trust the EE community with their toughest problems.
Murali Gvr

ASKER
Yes both servers are using on their PublicIP. If we may not used to do Replication, its throwing error. That's why I used to connect using PublicIP.
Deepak Chauhan

Ok. Try by creating Aliase in SQl server configuration manager at publisher server.
Murali Gvr

ASKER
If create aliase in configuration manager, that it may not effect to server right?
I started with Experts Exchange in 2004 and it's been a mainstay of my professional computing life since. It helped me launch a career as a programmer / Oracle data analyst
William Peck
ASKER CERTIFIED SOLUTION
Deepak Chauhan

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.
Murali Gvr

ASKER
Deepak,

 As per your advise I did to change the server name and I finished on replication. Thanks for your support

Regards
Murali