Options

Script generation

pkettlewpkettlew Posts: 15 Bronze 1
Hello,

I am new user to SQL Source Control

I would like the scripts that are generated from SQLServer via SQL Source Control to Source Control to include drop statements for dml objects . The default seems only to script as a create without a drop

I would like something like :

IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[DIF].[usp_GetBookList]') AND type IN (N'P', N'PC'))
DROP PROCEDURE [DIF].[usp_GetBookList]
GO

CREATE PROCEDURE [DIF].[usp_GetBookList]
AS


Is this possible to configure this with SQL Source Control so it does ?

thanks

Comments

Sign In or Register to comment.