modika11
Programmer
- Jan 31, 2008
- 20
Hi All,
although i have done this using several ways i am sitting here thinking what way is actually the best? I have a job search which will search against mutiple criteria. I have written stored procedures whith loads of conditional statments depending on what search criteria has been provided depends on how the SQL is written, this is not dynamic SQL it is normal SQL with a very detailed (complicated) where clause. I have also done it using dynamic SQL within a stored procedure, obviously with some conditional statements to see what needs to go in the where clause.
How do you guys deal with searches, in particular ones with mutiple criteria?
Thanks,
Rob
although i have done this using several ways i am sitting here thinking what way is actually the best? I have a job search which will search against mutiple criteria. I have written stored procedures whith loads of conditional statments depending on what search criteria has been provided depends on how the SQL is written, this is not dynamic SQL it is normal SQL with a very detailed (complicated) where clause. I have also done it using dynamic SQL within a stored procedure, obviously with some conditional statements to see what needs to go in the where clause.
How do you guys deal with searches, in particular ones with mutiple criteria?
Thanks,
Rob