I've got a search form that could potentially return thousands of records; I'd like to show a message if the query returns more than 500 or so and make the user refine the search to get fewer results.
Am I stuck with doing a Select Count before running the actual query? What's the best practice here?