I have a case similar to this MySQL question regarding the IN
clause, but for SQL Server.
Specifically, I am building an executable SQL string, and within it is the potential for a VERY long list of enumerated items for use within an IN
clause (I.E. 1000+).
Is this an efficient way of constructing my filter from a dynamic list of criteria, or should I insert the criteria data into a temp table and then JOIN
it to my export table for the filtering operation?
Pros and Cons of each approach would be appreciated if the answer isn't quite straight forward.
I apologize if this question has been asked. The linked MySQL question is rather old. I'd imagine that this is a duplicate for SQL Server, but I can't find it.