Scripting for MSSQL 2008 databases