简体   繁体   English

迁移SQL Server,担心服务器名

[英]Migrating SQL server, concern about servername


I'm getting ready to migrate from SQL Server 2005 onto a new server with SQL Server 2012, and a question was brought up this morning (and the migration is tomorrow of course). 我已经准备好从SQL Server 2005迁移到带有SQL Server 2012的新服务器上,并且今天早晨提出了一个问题(迁移当然是明天了)。
The old server was called XYZ and the DB had the same name. 旧服务器称为XYZ,并且数据库具有相同的名称。 So, in connection strings we were just using XYZ to connect. 因此,在连接字符串中,我们仅使用XYZ进行连接。
On the new server, I also named the DB XYZ, but to connect I use NewServer/XYZ. 在新服务器上,我也将数据库命名为XYZ,但要进行连接,请使用NewServer / XYZ。
The plan is that tmrw when we go live with the new DB to rename the server XYZ and give it the old servers IP address so that everything that connects to it will run, business as usual. 计划是,当我们使用新数据库上线时,tmrw会重命名服务器XYZ并为其提供旧服务器的IP地址,以便连接到它的所有设备都能正常运行。
The concern from one of the sysops is that once we change the servername we'll need to use XYZ/XYZ to connect to the new server. 其中一个系统操作员担心的是,一旦我们更改了服务器名称,就需要使用XYZ / XYZ连接到新服务器。
I was hoping that someone could point me towards how to test for this before going live? 我希望有人能指出我如何在上线之前对此进行测试? Having to change all the connections would be a big job and include a lot of downtime. 必须更改所有连接将是一项艰巨的工作,其中包括大量的停机时间。

You can't change the instance name (the bit after the \\ ). 您不能更改实例名称(\\后面的位)。 So you'll need to connect using XYZ\\XYZ. 因此,您需要使用XYZ \\ XYZ进行连接。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 在SQL Server 2014中更改SQL ServerName - Changing SQL ServerName in SQL Server 2014 SQL Server @@ SERVERNAME返回旧计算机名称? - SQL Server @@SERVERNAME returning old machine name? @@ SERVERNAME的SQL Server数据库阻止问题 - SQL Server database blocking issue with @@SERVERNAME 强制@@ Servername在SQL Server中返回其他内容 - Force @@Servername to return something else in SQL Server 将数据从XML文档传输到SQL Server时,有两个问题:with子句中出现错误以及对日期时间的担忧 - Two questions in transferring data from an XML document to SQL Server: an error emerging in the with clause and a concern about datetime 如何在SQL Server中将服务器名称和实例名称与@@ servername分开 - How to Separate server name and instance name from @@servername in SQL Server 迁移对SQL Server的访问 - Migrating access to SQL Server 如何在 SQL Server Management Studio 中获取服务器名称? - How could I get the servername in SQL Server Management Studio? 在 SQL Server 中,例如“使用 &lt;<DatabaseName> &gt;”,如何“使用&lt;<ServerName> &gt;&quot; 查询命令 - In SQL Server, like "use <<DatabaseName>>", how to "use <<ServerName>>" Query command 远程服务器上的 SELECT @@ServerName 返回本地 @@ServerName - SELECT @@ServerName on remote server returns local @@ServerName
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM