We have a customer's server that is setup and running SQL Server 2014 with no issues.
They then changed the server name (from SERVER1 to SERVER1-OH) and i ran the commands to get SQL Server setup correctly.
Now, SELECT @@servername returns SERVER1-OH as it should.
but, when trying to setup SQL Merge Replication:
exec sp_adddistributor @distributor='SERVER1-OH'
it returns an error:
When executing sp_adddistributor for a remote Distributor, you must use a password. The password specified for the @password parameter must be the same when the procedure is executed at the Publisher and at the Distributor.
I have also tried:
exec sp_adddistributor @distributor=@@servername
And that also fails with the same message. I honestly can't remember, but i might have tried to setup replication before the server name was changed (I didn't request the server name change, their IT people did it themselves).
So, where in the internals of SQL could the old name still be in there so it is thinking that its name is SERVER1 instead of SERVER1-OH, that the @@servername is returning.
No idea where to go.
Thanks in advance.
darin