You can use sqlPackage.exe to restrict the changes by specifying the types you don’t want to deploy with the parameter /p:ExcludeObjectTypes
. e.g.
/p:ExcludeObjectTypes="StoredProcedures;ScalarValuedFunctions;TableValuedFunctions"
to exclude stored procedures, scalar-valued functions, and table-valued functions from being deployed.
Alternatively, you can use the /p:ExcludeObjectFromChangeScript
parameter to exclude specific objects from the deployment script and customize the deployment process by avoiding deploying unnecessary components.
sqlpackage.exe /Action:Publish /SourceFile:MyDatabase.dacpac
/TargetDatabaseName:MyDatabase
/p:ExcludeObjectFromChangeScript=MyStoredProcedure
nb: line break for readability only
see: