Monday, May 02, 2005

Multiple filters on a SQL WHERE clause

Sometimes I had to develop a report or a something to show data, but previously the user‘d have the possibility to apply multiple filters so as so view the info that wants to be found.

As ever I designed the User Interface with the filters then passed the filters through the different layers and finally, they came to a stored procedure that makes the query.

It returns the data and that’s all.

Several times I heard some colleagues telling that they must show data applying multiple filters and they finally at the stored procedure did not find another way to make the query than building a string and then executing it with the EXEC sql Command or making several SELECT sentences.

I published an article about applying several filters on on a SQL WHERE clause


You can find it at


http://www.codeproject.com/useritems/sql_WHERE_clause.asp

0 Comments:

Post a Comment

<< Home