is it possible to use a variable in a query with the IN
clause (a,b,c..z), without getting quotes or conversion
errors?

Answer Posted / guest

You can use a variable as your IN clause, but this requires
that you use the EXEC function to run the statement.

Is This Answer Correct ?    2 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

how to take backup bcp out for a column in table in sql server?

1877


Tell me what is the order in which the sql query is executed?

736


Explain full-text indexing?

730


How can you manage sql azure security?

99


How much memory that we are using in Logshipping Concept?

1592


What is the full meaning of dml?

757


Is resultset an interface?

752


How to create an inline table-valued function?

761


How to write the storeprocedure with in the store procedure? and how can we write the store procedure with in a trigger vice versa? plz post me the exact answer?

2370


You want to generate a report that is formatted as a chart. Can you use the report wizard to create such a report?

107


How will you decide the active and passive nodes?

828


How do you Implement SSIS Packages in your Project?

1711


What options are there to delete rows on the publisher and not on the subscriber? : sql server replication

958


Explain how dts is used to extract, transform and consolidate data?

803


what method you can use to reduce the overhead of Reporting Services data sources?

209