refining mssql support.  CURRENTLY BROKEN