Hi Jeff Thanks for your response and great article. But i have a concern that you are using custom year next to the declaration.
SELECT @fromYear='1913-01-01', @toYear='1998-01-01'
I don't want this to be hard coded. because the range applied on the formula may change some point of time, The current formula
set @start = year(getdate()) - 15
set @Upto = year(getdate()) - 100
Here 15, 100 may get changed in near future. so i don't want this to be card coded. is there any way to avoid this to be hard coded.
Look again... it's NOT my code. I quoted someone else's code.
is pronounced ree-bar and is a Modenism for R
First step towards the paradigm shift of writing Set Based code: Stop thinking about what you want to do to a row... think, instead, of what you want to do to a column.
Although they tell us that they want it real bad, our primary goal is to ensure that we dont actually give it to them that way.
Although change is inevitable, change for the better is not.
Just because you can do something in PowerShell, doesnt mean you should. Helpful Links:
How to post code problemsHow to post performance problemsForum FAQs