Add SQL Server support

This branch adds SQL Server support to the SQL export functionality.