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.

 All Forums
 SQL Server 2000 Forums
 Transact-SQL (2000)
 Implementing a Dynamic WHERE Clause

Author  Topic 

burbakei
Yak Posting Veteran

80 Posts

Posted - 2002-11-12 : 12:38:53
I have read an article in sqlteam.com site that we can use COALESCE in where
clause instead of using dynamic EXEC.
my problem is that i have IN in where clause. i want to write something lik

SELECT *
FROM MyTable
WHERE MyCol IN (...)

and i dont know what i do want for search for in IN clause in advance.
can anybody help me how can i do it without EXEC?

Merkin
Funky Drop Bear Fearing SQL Dude!

4970 Posts

Posted - 2002-11-12 : 18:44:49
Hi

The answer to this is on the front page

http://www.sqlteam.com/item.asp?ItemID=11499

Damian
Go to Top of Page
   

- Advertisement -