Quote:
Originally Posted by jmcilhinney
While Matt's advice is sound enough, filtering at the client is not always desirable. What if you have millions of records in total? In that case filtering at the clinet would be slow to load the data initially and slow to filter each time. Retrieving a subset of data from the database each time would be a better choice. Local filtering is certainly easier and potentially quicker for relatively small amounts of data though.
As for the original question, maybe you could point out to us where the exception is thrown, so we don't have to search the code to find the problem in the first place.
|
True.
I'll recommend cjard's thread on PQs for further reading shruti:
The Ins and OUTs of Parameterized Queries... - Visual Basic .NET Forums