fix build for sqlserver