helpful sql scripts, mostly t-sql