禁用自动自动代码格式化程序sql server

时间:2017-09-18 11:05:31

标签: sql sql-server sql-server-2016

我在ssms中创建了这样的存储过程:

USE [UnitTest]
GO

/****** Object:  StoredProcedure [dbo].[ProcedureName]    Script Date: 2017-09-18 15:30:44 ******/
SET ANSI_NULLS ON
GO

SET QUOTED_IDENTIFIER ON
GO

ALTER PROCEDURE [dbo].[ProcedureName]
@p1 INT=0, @p2 INT=0
AS
BEGIN
    SET NOCOUNT ON;
    SELECT @p1,
           @p2;
END

GO

但是当我保存存储过程并重新打开它时,自动ssms会改变这样的格式:

USE [UnitTest]
GO

/****** Object:  StoredProcedure [dbo].[ProcedureName]    Script Date: 2017-09-18 15:29:28 ******/
SET ANSI_NULLS ON
GO

SET QUOTED_IDENTIFIER ON
GO

CREATE PROCEDURE [dbo].[ProcedureName]
    @p1 INT=0,
    @p2 INT=0
AS
BEGIN
    SET NOCOUNT ON;
    SELECT @p1, @p2;
END

GO

如何禁用此功能?

0 个答案:

没有答案