Quantcast
Channel: SQLServerCentral » SQL Server 2014 » Administration - SQL Server 2014 » Latest topics
Viewing all articles
Browse latest Browse all 6525

Having same server name for principal and mirror server, does it work?

$
0
0
I have a mirrored database from server SRV-SQL01 (principal) to SRV-SQL02(mirror).Users/Developers access SRV-SQL01 via a DNS alias called "App-SQL".Developers have started using synonyms, meaning to access a table they use the synonym [App-SQL].[dbName].[schema].[tablebame]This doesn't work though as @@servername returns SRV-SQL01, and not App-SQL (which is the DNS Alias).A request came in to rename the server using:[center][i]sp_dropserver <old_name\instancename>;GOsp_addserver <new_name\instancename>, local;[/I][/center]My problem is that if I do that on the principal, I will have to do it on the mirror to ensure everything works in the event of a failover, and I don't know if I can establish a mirror between two sql servers who have the same name internally. I can always use the actual server name but I wanted to check to see if there are any complications?

Viewing all articles
Browse latest Browse all 6525

Trending Articles