January 5, 2012 at 1:46 am
I think you're looking at catch all queries.
Try this blog post by Gail[/url]
January 5, 2012 at 2:23 am
Your selection logic is flawed. You should read Gail's article, but I think that this would be closer to what you need:
select * from test_data
where Eid = (case when @param='%' then Eid else @param end)
No doubt you already know this, but using select * is generally considered bad practice.
January 5, 2012 at 3:53 am
thanks Phil, i do know the implications of *..
January 5, 2012 at 4:04 am
Viewing 4 posts - 1 through 5 (of 5 total)
You must be logged in to reply to this topic. Login to reply