initial mssql support. not completely tested.