ALTER proc [dbo].[NJ_AddWhere] @strSQL varchar(256) output, @isWhere bit output
as
begin
if @isWhere = 0
begin
set @strSQL = @strSQL + ' Where ';
set @isWhere = 1;
end
else
begin
set @strSQL = @strSQL + ' AND ';
end
return ;
end