helal.mobasher 13209 (3/3/2015)
Thanks Luic for dynamic SQL. Very elaborate and I need to test it. However, on your note "Are you seriously taking the advice and code from someone from the internet without testing it? Do you at least understand it? Or can it easily kill your server?" you made several assumptions. For one, how do you that I didn't test Jeff's codes? in fact I did for three years of data that add up to 60K records. Results were a snap. Second taking anything from Internet...well true that SQL Servercentral is internet source, but I thought only people with great skills or want to have better skills in SQL join SQL servercentral. And Do I even understand it? I am not as well versed as you and Jeff, but yes, I do understand it and did some incremental testing on Jeff's codes. Again, thank you for sharing your efficient solution with me and I appreciate that but I didn't appreciate your condescending comments.Helal
Understand that that's just his signature line. It's his reminder to everyone not to just take something from the internet and blindly use it. It's not directed at you in particular. It appears on all of his posts.
--Jeff Moden
Change is inevitable... Change for the better is not.