【发布时间】:2011-03-21 13:39:36
【问题描述】:
我在 SSMS 中打开一个新窗口并运行:
SET ANSI_DEFAULTS ON
GO
CREATE PROCEDURE [dbo].[zzz_test2]
(
@a int
)
AS
SET NOCOUNT ON
SET @a=1
RETURN 0
GO
然后关闭窗口,这会导致以下警告:
There are uncommitted transactions. Do you wish to commit these before closing the window?
发生了什么事??
当我打开一个新的 SSMS 窗口并运行它时:
SET ANSI_NULLS ON
GO
CREATE PROCEDURE [dbo].[zzz_test2]
(
@a int
)
AS
SET NOCOUNT ON
SET @a=1
RETURN 0
GO
然后关闭窗口,我没有收到任何警告。
【问题讨论】:
标签: sql-server sql-server-2005 tsql