Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

incoming null values 4 sproc

Status
Not open for further replies.

Zarcom

Programmer
May 7, 2002
1,275
CA
Hello

Got me a question. I have a sproc that I am using to return a result set with a changing where clause.

If a value coming into the sproc is null then I don't want to include that value into my where clause.
In thread183-393720 I found that I could do this using a string a building the entire select depending on what incoming values are available.

Is there another way of doing this? If so what advantages/disadvantages do the methods have over each other?

Thanks for your answers/comments That'l do donkey, that'l do
[bravo] Mark
If you are unsure of forum etiquette check here faq796-2540
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top