with Oracle I think you need to set the cursorlocation to client. And if using the Microsoft Oracle Driver, that might even work, in which case SELECT COUNT(*) may have to be issued in advance of your actual query.