I want to deploy database changes to an SQL Server using an Azure DevOps release Pipeline. There is a task called SQL Server Database Deploy, I see the option to deploy using SQL scripts however everywhere I read it is explained that this is to deploy a database.
My question is that if I have a directory of SQL scripts in my repository under /SQLScripts/*.sql could I use the scripts contained in this folder to deploy changes to stored procedures without effecting the remainder of the database?
e.i. Using something like the below script to update stored procedures...
USE [TESTDB]
GO
/****** Object: StoredProcedure [dbo].[TestSP] Script Date: 01/01/2023 12:00:00 PM ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
ALTER PROCEDURE [dbo].[TestSP]
-- Some new comment
I haven't attempted to deploy anything using this task as I don't want to risk altering the database in unintended ways. I would expect the task to run the stored procedures in order and for it to only update the scripts that I am passing through the pipeline.