Excel 中的查询超时设置
我是该网站的新手,我想尝试一下,看看是否可以获得有关 Excel 中 SQL 查询的任何答案。
如果 Microsoft Excel 中发生超时(主要是 Win XP/Vista/7 上的 2007/2010),是否有办法处理?如您所知,您可以将 Excel 连接到 Microsoft SQL Server 并通过 Excel 运行查询。唯一的问题是我似乎没有找到任何超时选项。举个例子,如果有一个错误的查询,这可能会锁定 SQL Server (2005) 数据库中的其他表。
我不是在寻找剧本。它更像是我需要的设置,如果可能的话,我想将这些超时设置添加到特定的 Windows 用户帐户。 SQL Server 2005 或 Microsoft Excel 2007/2010 中的设置。
此致 /亨里克
new to the site I'd like to give it a shot and see if I can get any answers regarding SQL Querys in Excel.
Is there a way to handle if a Timeout occurs in Microsoft Excel (mostly 2007/2010 on Win XP/Vista/7)? As you know you can connect Excel to a Microsoft SQL Server and run your query via Excel. The only thing is that I don't seem to find any Timeout options for this. And for an example, if there is a bad query, this might lock other tables in the SQL Server (2005) database.
I'm not looking for a script. It's more like settings I need and if possible I would like to add these Timeout settings to a specific Windows user account. Settings in either SQL Server 2005 or in Microsoft Excel 2007/2010.
Best regards
/Henrik
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
使用CommandTimeout属性
Use the CommandTimeout property