简体   繁体   English

与Microsoft Azure SQL数据库的连接松动

[英]Loosing connection with Microsoft Azure SQL Database

I'm having really frequent and occasional connection problems between my local instance of Microsoft SQL Server 2014 Management Studio (SSMS) and my cloud Microsoft Azure SQL Database. 我的Microsoft SQL Server 2014 Management Studio(SSMS)本地实例与云Microsoft Azure SQL数据库之间确实经常出现偶发连接问题。

Sporadically, my SSMS reports Disconnected along with the following error message when asking queries: 偶尔,我的SSMS在询问查询时报告断开连接以及以下错误消息:
Msg 10054, Level 20, State 0, Line 0
A transport-level error has occurred when receiving results from the server. (provider: TCP Provider, error: 0 - An existing connection was forcibly closed by the remote host.)

Unfortunately, Googling this problem doesn't give me any clue on how to solve it. 不幸的是,谷歌搜索这个问题并没有给我任何解决方法的线索。

Facts: 事实:

  • I don't have any bad or lousy internet connection. 我没有任何不良或糟糕的互联网连接。 It is fast and stable! 快速稳定!
  • I don't have any problems connecting to other remote SQL Server Databases. 连接到其他远程SQL Server数据库没有任何问题。
  • My cloud Microsoft Azure SQL Database is just for learning purpose - there is not heavy load on it since I'm the only user. 我的云Microsoft Azure SQL数据库仅用于学习目的-因为我是唯一的用户,所以它的负担并不大。

Does anyone know what's the problem here? 有人知道这是什么问题吗?

Have you been able to reproduce the same behavior with a fresh SQL database? 您是否能够使用新的SQL数据库重现相同的行为? I suggest firing up one with near identical setup (such as service tier, performance level, server, etc.) to get closer to the root cause. 我建议使用几乎相同的设置(例如服务层,性能级别,服务器等)启动一个,以更接近根本原因。

What does the portal report when you get into a DISCONNECTED mode? 进入断开模式时,门户网站会报告什么? If there is a correlation between what SSMS is stating and what the portal is stating, then we know the issue lies NOT locally on your machine or with SSMS. 如果SSMS所声明的内容与门户网站所声明的内容之间存在相关性,那么我们知道问题不在您的计算机本地或与SSMS有关。

Also, take a look at the following troubleshooting page to see if you can tease out more info: http://social.technet.microsoft.com/wiki/contents/articles/1719.aspx 另外,请查看以下疑难解答页面,以查看是否可以逗弄更多信息: http : //social.technet.microsoft.com/wiki/contents/articles/1719.aspx

I have the same problem but i can not comment bcs of SO crappy reputation system so: 我有同样的问题,但我无法评论卑鄙信誉体系的公元前,所以:

To answer SteveSeow: 要回答SteveSeow:

What does the portal report when you get into a DISCONNECTED mode? 进入断开模式时,门户网站会报告什么? If there is a correlation between what SSMS is stating and what the portal is stating, then we know the issue lies NOT locally on your machine or with SSMS. 如果SSMS所声明的内容与门户网站所声明的内容之间存在相关性,那么我们知道问题不在您的计算机本地或与SSMS有关。

The portal reports that everything is OK. 门户报告一切正常。 and i can reconnect after ~10 sec. 我可以在约10秒后重新连接。

EDIT: OK means that there is some DTU load but it is under 50%. 编辑:确定意味着有一些DTU负载,但低于50%。

Also: Not only SSMS is disconnected, my website running on azure also can not connect to the Database for this period of time. 另外:不仅SSMS已断开连接,我在Azure上运行的网站在这段时间内也无法连接到数据库。 This fact alone should rule out any local issue i might have. 单凭这个事实就可以排除我可能遇到的任何本地问题。

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

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM