ALTER Procedure [dbo].[sp_reportMonthly]
@inputReportPart varchar(20)
as
begin
IF(@inputReportPart = '1' or @inputReportPart = 'debug')
BEGIN
select a,b,c from table1
END
IF(@inputReportPart = '2' or @inputReportPart = 'debug')
BEGIN
select q,w,e from table2
END
end
ALTER Procedure [dbo].[sp_reportMonthly]
@inputReportPart varchar(20)
as
begin
IF(@inputReportPart = '1' or @inputReportPart = 'debug')
BEGIN
select a,b,c from table1
END
IF(@inputReportPart = '2' or @inputReportPart = 'debug')
BEGIN
select q,w,e from table2
END
end