Quantcast
Channel: Forum SQL Server Database Engine
Viewing all articles
Browse latest Browse all 15889

Select @@Servername shows incorrect entry

$
0
0

Hello,

i migrated all databases from a SQL Server 2008r2 Cluster (Name: Cluster01) to a SQL Server 2012 Cluster (Name: Cluster08). After the migration I renamed the 2008r2 Cluster to ClusterOL and the 2012 Cluster to Cluster01. So I dont have to configure the applications that uses the old 2008r2 Cluster.

Since then the Maintenance Plans dont work anymore and even so the database mail. The event-entrys say that the local server instance could not be found. Network Error 26. Clients can connect the server and find their databases without problem.

So I check different things:

sp_helpserver = cluster01

Select @@servername = Cluster08

so i executed:

sp_dropserver 'cluster08', null = The server cannot be found.

sp_addserver 'cluster01', local = the server already exists.

Well then even when I try to add a server with the old name, so eventually i can delete it then:

sp_addserver 'cluster08',local = server already exists (mention sp_dropserver says it doesnt exist).

In the registry under NKLM\Software\Microsoft\MSSQLServer\Cluster\clustername is the old name Cluster08.


I already tested the renaming process of the 2012 cluster before without problems, but with names that didnt exists in our network before. Only the production renaming shows this behaviour:(

I dont know how to correct this, so that database mail and mps are working again. renaming the cluster again to cluster04 and back to cluster01? 

Any ideas plz?


Viewing all articles
Browse latest Browse all 15889

Trending Articles



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