t-sql code library