Please start any new threads on our new
site at https://forums.sqlteam.com. We've got lots of great SQL Server
experts to answer whatever question you can come up with.
| Author |
Topic |
|
AskSQLTeam
Ask SQLTeam Question
0 Posts |
Posted - 2001-03-21 : 18:18:20
|
Ryan writes "This question is more specified to parameter queries in any db. I would like to know if there's a way to set up a parameter query with some or all parameters being optional. For instance, I would like to build a search screen in which the user can put in first, last and/or middle names. It can be any combination. As it stands, I would have to either build 6 queries and call one with the correct parameters or build a long where clause. Well, I also have queries with 6-8 optional parameters. Building hundreds of queries isn't an option, so I'm back to dynamic sql.
And if the answer is no, then do you know why?" |
|
|
|
|
|