简体   繁体   English

SQL 服务器 Microsoft.Data.SqlClient.SqlException (0x80131904):执行超时在 azure 上过期

[英]SQL server Microsoft.Data.SqlClient.SqlException (0x80131904): Execution Timeout Expired on azure

I am using external SQL Server to host our database and ASP.NET MVC Core application is hosted on Azure.我正在使用外部 SQL Server 来托管我们的数据库,并且 ASP.NET MVC Core 应用程序托管在 Azure 上。 Locally on Dev machine, the Web application works fine when a complex query executed but on Azure I get an exception在本地开发机器上,Web 应用程序在执行复杂查询时工作正常,但在 Azure 上出现异常

Microsoft.Data.SqlClient.SqlException (0x80131904): Execution Timeout Expired

I am using the same database and connection string, also we do not use Azure SQL we use our own SQL Server which is hosted remotely.我使用的是相同的数据库和连接字符串,我们也不使用 Azure SQL,而是使用我们自己的远程托管的 SQL Server。 Why complex queries stop working on Azure, I have no idea where to look for the problem.为什么复杂的查询在 Azure 上停止工作,我不知道在哪里寻找问题。

The connection string:连接字符串:

data source=xx.xx.xx.xx;initial catalog=ca-xx;user id=ca-xx;password=xxxx;connection timeout=600

When utilizing the Azure Sql database and the Azure Release, I had the identical problem.在使用 Azure Sql 数据库和 Azure Release 时,我遇到了同样的问题。 I discovered that the database performance is an issue.我发现数据库性能是个问题。 It works well once I upgraded the database's DTUs.升级数据库的 DTU 后,它运行良好。

在此处输入图像描述

暂无
暂无

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

相关问题 Microsoft.Data.SqlClient.SqlException (0x80131904): ',' 附近的语法不正确 - Microsoft.Data.SqlClient.SqlException (0x80131904): Incorrect syntax near ',' System.Data.SqlClient.SqlException (0x80131904):超时已过期。 三种不同的情况 - System.Data.SqlClient.SqlException (0x80131904): Timeout expired. Three different cases SqlException:System.Data.SqlClient.SqlException(0x80131904) - SqlException: System.Data.SqlClient.SqlException (0x80131904) MVC 应用程序 System.Data.SqlClient.SqlException (0x80131904): - MVC App System.Data.SqlClient.SqlException (0x80131904): 连接字符串问题:System.Data.SqlClient.SqlException (0x80131904) - 无法连接到 SQL Server Management Studio - Connection String Issue: System.Data.SqlClient.SqlException (0x80131904) - Unable to connect to SQL Server Management Studio c#System.Data.SqlClient.SqlException(0x80131904) - c# System.Data.SqlClient.SqlException (0x80131904) 不规则:SQL连接错误:System.Data.SqlClient.SqlException(0x80131904) - Irregular: SQL Connection Error: System.Data.SqlClient.SqlException (0x80131904) SqlException(0x80131904) - SqlException (0x80131904) System.Data.SqlClient.SqlException (0x80131904)) 从字符到字符串的转换数据或时间 - System.Data.SqlClient.SqlException (0x80131904)) conversion data or time from character to string 错误:System.Data.SqlClient.SqlException(0x80131904):将数据类型nvarchar转换为数值时出错 - Error:System.Data.SqlClient.SqlException (0x80131904): Error converting data type nvarchar to numeric
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM