[英]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.