OptimizedDataAdapter check the query before proceed