打开设计查询编辑器时 SSMS 崩溃

发布于 2024-10-19 00:04:35 字数 1322 浏览 2 评论 0原文

当您尝试使用 USE 数据库; 之前的 sql 语句打开设计查询编辑器时,SQL-Server 2005 Management Studio 中的崩溃是否有修复?

例如:

USE DB1;
SELECT * FROM Table1;

如果标记SELECT * FROM Table1;,则可以成功打开编辑器。 如果标记这两行,SSMS 将崩溃并显示“Microsoft SQL Server Management Studio 已停止工作”对话框(带有调试或关闭 SSMS 的选项)以及有关此问题的一些其他信息:

  Problem signature:
  Problem Event Name:   BEX
  Application Name: SqlWb.exe
  Application Version:  2005.90.5000.0
  Application Timestamp:    4d02772b
  Fault Module Name:    vdt80.dll
  Fault Module Version: 8.0.50727.1826
  Fault Module Timestamp:   480d6e41
  Exception Offset: 0032ae42
  Exception Code:   c0000409
  Exception Data:   00000000
  OS Version:   6.1.7601.2.1.0.16.7

SQL-Server

SELECT SERVERPROPERTY('productversion'), SERVERPROPERTY ('productlevel'), SERVERPROPERTY ('edition')
9.00.5000.00       SP4       Enterprise Edition (64-bit)

操作系统

Windows Server 2008 R2 Standard(SP 1)

编辑:如果我尝试使用如下 T-SQL 语句打开设计器,也会出现此问题:

IF EXISTS(
    SELECT *
    FROM ClosingDate
    WHERE DATEDIFF(DAY, DATEADD(DAY, -1, GETDATE()). ClosingDate) = 0
) UPDATE Table2 SET
    Column1 = 255
WHERE
    Column1 = 1

is there a fix for the crash in SQL-Server 2005 Management Studio when you try to open a design-query-editor with a sql-statementent preceding USE database;?

For example:

USE DB1;
SELECT * FROM Table1;

If you mark SELECT * FROM Table1;, you can open the editor succesfully.
If you mark both lines, SSMS will crash with a "Microsoft SQL Server Management Studio has stopped working"-Dialog(with the option to debug or close SSMS) and some additional information on this problem f.e.:

  Problem signature:
  Problem Event Name:   BEX
  Application Name: SqlWb.exe
  Application Version:  2005.90.5000.0
  Application Timestamp:    4d02772b
  Fault Module Name:    vdt80.dll
  Fault Module Version: 8.0.50727.1826
  Fault Module Timestamp:   480d6e41
  Exception Offset: 0032ae42
  Exception Code:   c0000409
  Exception Data:   00000000
  OS Version:   6.1.7601.2.1.0.16.7

SQL-Server version:

SELECT SERVERPROPERTY('productversion'), SERVERPROPERTY ('productlevel'), SERVERPROPERTY ('edition')
9.00.5000.00       SP4       Enterprise Edition (64-bit)

OS:

Windows Server 2008 R2 Standard(SP 1)

Edit: this problem also occurs if i try to open the designer with T-SQL Statement like:

IF EXISTS(
    SELECT *
    FROM ClosingDate
    WHERE DATEDIFF(DAY, DATEADD(DAY, -1, GETDATE()). ClosingDate) = 0
) UPDATE Table2 SET
    Column1 = 255
WHERE
    Column1 = 1

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

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

发布评论

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

评论(1

一抹微笑 2024-10-26 00:04:35

当然,取出 use db 语句并将代码更改为:

select * from DB1.dbo.Table1

此语法将允许您从同一服务器上不在您所在上下文中的其他数据库中选择数据。

sure, take out the use db statement and change the code to this:

select * from DB1.dbo.Table1

this syntax will allow you to select data from other databases on the same server in which you are not in the context of.

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