MS-SQL export script