更新,删除或插入记录时SQL Server超时已过期,但选择时则不过期 [英] SQL Server Timeout expired when update, delete or insert record but not when select

查看:106
本文介绍了更新,删除或插入记录时SQL Server超时已过期,但选择时则不过期的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

SQL Server Timeout在更新,删除或插入记录时过期但在select

解决方案

时没有过期您提供的错误消息,即命令超时问题。或者你可以说,SQL Server执行insert / update / delete命令花了太长时间。您可以尝试将超时设置为更长,这意味着客户端需要更长时间才能实现服务器。



您还可以考虑改善服务器的性能(基本上是插入/更新/删除查询)。这取决于操作的任务和重要性。



参考 SqlCommand.CommandTimeout [ ^ ]属性以获取更多信息。





< DD> - 阿米特

SQL Server Timeout expired when update, delete or insert record but not when select

解决方案

The error message you provided, that is a command timeout issue. Alternatively you can say, "SQL Server took too long to execute the insert/update/delete command". You can try to set the timeout to be longer which means that it takes longer for the client to realize that the server.

You can also look into improving performance on the server(Basically Insert/Update/Delete queries). It depends on the task and importance of the operation.

Refer SqlCommand.CommandTimeout[^] property for more information.


--Amit


这篇关于更新,删除或插入记录时SQL Server超时已过期,但选择时则不过期的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆