use Leo go alter proc dbo.proc_GetTransactions ( @yr smallint = null, @mo smallint = null ) as begin set @yr = isnull(@yr, year(getdate())) set @mo = isnull(@mo, month(getdate())) select Id, TrxDate, TrxDate_ISO8601, TrxDescription, TrxAmount, RunningBal from dbo.vw_BudgetRunningBalance where YEAR(TrxDate) = @yr and MONTH(TrxDate) = @mo end go