Some sqlserver changes