What would be the quickest way to query a database ONLY to check if any rows were returned by the query?
So that in pseudo code:
If NoRows = True Then
'Skip and DON'T do anything
I can pass a complex query in as a string or call a stored procedure. I'm not sure how to do that. Any suggestions?