在 SQL Management studio 中更改 CommandTimeout

发布于 2024-07-28 01:40:24 字数 52 浏览 4 评论 0原文

如何更改 SQL Management Studio 中的 CommandTimeout?

How can I change the CommandTimeout in SQL Management Studio?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(4

感受沵的脚步 2024-08-04 01:41:13

在表设计器上时,您会收到错误:“超时已过期。在操作完成之前超时时间已过,或者服务器未响应。”

删除以下复选框:工具 --> 选项 --> 设计师--> 表和数据库设计器 --> 覆盖表设计器更新的连接字符串超时值

在此处输入图像描述

然后超时,指的是“连接字符串执行超时”

因此,如果取消选中它,则必须关闭ssms并启动重新

打开时,在“连接到服务器”对话框中,在连接之前,按选项按钮,转到“连接属性”选项卡,
并确保“执行超时”值设置为零(这意味着无限制)

在此处输入图像描述

While on the table designer, you get error : "Timeout expired. The timeout period elapsed prior to completion of the operation or the server is not responding."

Remove check box under : Tools --> Options --> Designers --> Table and Database Designers --> Override connection string time-out value for table designer updates

enter image description here

Then timeout, refers to "connection string execution timeout"

So if you uncheck it, you have to close ssms and launch it again

When reopening, at "connect to server" dialouge, before connecting, press options button, go to "connection properties" tab,
and make sure "execution time-out" value set to zero (it means unlimited)

enter image description here

心意如水 2024-08-04 01:41:04

在查询窗格中右键单击,选择查询选项...,然后在“执行”->“常规”部分(首次打开时的默认设置)中出现执行超时代码 > 设置。

Right click in the query pane, select Query Options... and in the Execution->General section (the default when you first open it) there is an Execution time-out setting.

没︽人懂的悲伤 2024-08-04 01:40:56

Management Studio中更改命令执行超时:

单击“工具”->“ 选项

从左侧树中选择查询执行,并在“执行超时”控件中输入命令超时。

更改服务器中的命令超时:

在对象浏览器树中右键单击给您超时的服务器,然后从上下文菜单中选择“属性”。

现在,在“服务器属性 -.....”对话框中,单击“选择页面”列表(左侧)中的“连接”页面。 在右侧您将获得属性,

Remote query timeout (in seconds, 0 = no timeout):
[up/down control]

您可以在向上/向下控制中设置值。

Changing Command Execute Timeout in Management Studio:

Click on Tools -> Options

Select Query Execution from tree on left side and enter command timeout in "Execute Timeout" control.

Changing Command Timeout in Server:

In the object browser tree right click on the server which give you timeout and select "Properties" from context menu.

Now in "Server Properties -....." dialog click on "Connections" page in "Select a Page" list (on left side). On the right side you will get property

Remote query timeout (in seconds, 0 = no timeout):
[up/down control]

you can set the value in up/down control.

撩动你心 2024-08-04 01:40:48

如果您在表设计器上遇到超时,请更改工具 --> 下的“事务超时时间”值。 选项 --> 设计师--> 表和数据库设计器

这将消除以下消息:“超时已过期。在操作完成之前超时时间已过,或者服务器没有响应。”

在此处输入图像描述

If you are getting a timeout while on the table designer, change the "Transaction time-out after" value under Tools --> Options --> Designers --> Table and Database Designers

This will get rid of this message: "Timeout expired. The timeout period elapsed prior to completion of the operation or the server is not responding."

enter image description here

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文