Re: Using CASE statement in CONTAINS predicate ( For FullText Sear
- From: "Daniel Crichton" <msnews@xxxxxxxxxxxxxxxx>
- Date: Tue, 23 Oct 2007 09:11:35 +0100
Vijay wrote on Tue, 23 Oct 2007 00:34:09 -0700:
Hi,
I donot want to use Multiple IF blocks as my IF criterias are huge...i
want to use some thing like
SELECT [ID] ,[Source] ,[Description],name
FROM [Search]
WHERE Source = CASE WHEN @allowSearchALL = 1 THEN Source ELSE 'mail'
END
You can't - Hilary was suggesting the only viable alternative, other than
creating dynamic SQL.
--
Dan
.
- References:
- Prev by Date: Re: Using CASE statement in CONTAINS predicate ( For FullText Sear
- Next by Date: Re: '%phrase%' search
- Previous by thread: Re: Using CASE statement in CONTAINS predicate ( For FullText Sear
- Next by thread: Re: Using CASE statement in CONTAINS predicate ( For FullText Sear
- Index(es):