View Single Post
  #11 (permalink)  
Old 02-09-10, 09:47
corncrowe corncrowe is offline
Registered User
 
Join Date: Aug 2004
Location: Dallas, Texas
Posts: 343
Quote:
Originally Posted by BeerOclock View Post
corncrowe, leaving a parameter undefined or null causes the query to return nothing. In the example you provided, if @id was null, then no rows would be returned. I could get rid of the where clause entirely however...

Thanks for your help all. If no one else has any tricks for me, then I guess I have to bite the bullet and dissect this procedure line by line...
Yep, I was kinda of hinting at not using the parameter. There is something to be said about undocumented code. Eh?
Reply With Quote