code snippets from a sql server build