Quantcast
Channel: SQL Server Setup & Upgrade Forum
Viewing all articles
Browse latest Browse all 7701

Renaming SQL Server 2008 R2. Connection possible with new name but @@servername still shows old name and replication setup also doesn´t work.

$
0
0

Because for some reason we can´t setup new instances on one of our old SQL server 2005 hosts (named liniesql3), we decided to setup a new server "liniesql3neu" with SQL Server 2008 R2, copy the databases and then rename the new server to "liniesql3".

After copying the databases the old server was shutdown, the hostname of the new server changed to "liniesql3". Then we used

EXEC master.dbo.sp_dropserver‘liniesql3neu\lx‘

EXECmaster.dbo.sp_addserverliniesql3\lx,‘local’

for all instances, restarting instance and sql server agent for that instance. In the logfile, the instancename was shown as 'liniesql3\lx'. Everything looks still fine.

But select @@servername (and also a look into view sys.servers) still shows the old servername.

Howerver, i can connect to the new server with 'liniesql3\lx' and a valid username.

What is not working: I can´t setup any replication.

TITLE: Configure Distribution Wizard
------------------------------

SQL Server is unable to connect to server 'liniesql3\l9'.

For help, click: http://go.microsoft.com/fwlink?ProdName=Microsoft+SQL+Server&ProdVer=10.50.1600.1&EvtSrc=Microsoft.SqlServer.Management.UI.ConfigureWizardErrorSR&EvtID=CantConnect&LinkId=20476

Do i have to restart the instance after dropserver and addserver? I did execute both command in one step and restarted the instance only once.

Greetings, Jörg


Viewing all articles
Browse latest Browse all 7701

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>