简体   繁体   English

从命名实例连接到SQL Server默认实例

[英]Connect to SQL Server Default Instance From Named Instance

I am doing a side by side upgrade from 2k8 to 2k12. 我正在从2k8并行升级到2k12。 The original machine is a named instance and the new machine is a default instance. 原始计算机是命名实例,新计算机是默认实例。 The goal is to not change connection strings from applications. 目的是不更改应用程序的连接字符串。

If I were going from a default instance to a default instance I could change the DNS A record and have it connect. 如果我要从默认实例转到默认实例,则可以更改DNS A记录并将其连接。 However, the application are storing the connection string as OLDSERVER\\OLDINSTANCE. 但是,应用程序将连接字符串存储为OLDSERVER \\ OLDINSTANCE。 The A record is only going to change the OLDSERVER name but the connection is still looking for the \\OLDINSTANCE. A记录仅将更改OLDSERVER名称,但连接仍在查找\\ OLDINSTANCE。

Can SQL Server 2012 be configured to have the default instance accept connections when they are made to an instance that does not exist? 将SQL Server 2012配置为不存在的实例时,是否可以将其配置为让默认实例接受连接?

Thanks, Chris 谢谢克里斯

I went through this exact process a few weeks ago, and what I found out sadly is that it does not appear to be possible without uninstalling the old instance (which I wanted nothing to do with). 几周前,我经历了这个确切的过程,可悲的是,我发现,如果不卸载旧实例,这似乎是不可能的(我不希望这样做)。 Here were some of the many links that I found on the subject and which I imagine you have probably been through as well. 这是我在该主题上发现的许多链接中的一些,我想您可能也曾经浏览过。

StackOverflow 堆栈溢出

SQLServerCentral SQLServerCentral

MSDN MSDN

I tried a number of different things on my local and not one of them worked for me. 我在本地尝试了多种不同的方法,但没有一种对我有用。 In my case, if I could have upgraded the server (downtime would have happened) I would have done it, but we were going from SQL 2K8 Enterprise to SQL 2K12 Standard so that was not possible either. 在我的情况下,如果我可以升级服务器(可能会发生停机),那么我会做到的,但是我们要从SQL 2K8 Enterprise升级到SQL 2K12 Standard,所以也不可能。

I will be interested in seeing if anyone comes up with a way that this can be done outside of an uninstall, but I could not come up with one and everything that I read seemed to back that up. 我将感兴趣的是查看是否有人提出了一种可以在卸载之外完成此操作的方法,但是我无法提出一种方法,并且我阅读的所有内容似乎都可以证明这一点。 Maybe someday we will get an sp_dropserver/sp_addserver that will change instance names. 也许有一天,我们将获得一个sp_dropserver / sp_addserver,它将更改实例名称。

A default instance, as far as the client connecting to it is concerned, is the one listening on 1433. 就连接的客户端而言,默认实例是监听1433的实例。

If you install a named instance with the same name on the new server, and then change it's port to 1433, a client would be able to connect using both NEWSERVER\\OLDINSTANCE and NEWSERVER, as long as the browser is running. 如果在新服务器上安装了具有相同名称的命名实例,然后将其端口更改为1433,则只要浏览器正在运行,客户端就可以使用NEWSERVER \\ OLDINSTANCE和NEWSERVER进行连接。

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

相关问题 连接 SQL 没有公共域的实例/服务器 - Connecting SQL Instance/Server without common Domain 无法从容器实例连接到 Azure Postgres db - Not able to connect to Azure Postgres db from container instance Azure容器实例未按主机名连接到VM - Azure Container Instance does not connect to a VM by hostname 使用动态外部 IP 从计算机连接到 Azure SQL 服务器 - Connect to Azure SQL Server from computer with dynamic external IP 具有相同实例和不同地址的安装服务器 - Setup Server with same instance and different address 如何从子域外部访问OpenStack VM实例的实例? - How to access the instance of OpenStack VM instance from outside the subnent? SQL 2005实例不适用于DNS - SQL 2005 instance won't work with DNS 如何使用非域注册的Linux机箱中的SQuirreL SQL连接到SQL Server? - how to connect to SQL Server with SQuirreL SQL from non domain registered Linux box? 从 GoDaddy 创建子域并指向 GCP 实例 - Create a subdomain from GoDaddy and point to GCP instance 将自己的域重定向到Amazon EC2 Windows Server 2012实例 - Redirect own domain to Amazon EC2 Windows Server 2012 Instance
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM