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 / kishor kumar

It is possible by using Dynamic SQL.

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

If user is owning any SQL Objects, can we drop that user

1825


What is BLOCK statements in SQL?

1009


How to connect php with different port numbers?

738


What is the difference between a clustered index and a non-clustered index?

733


How to create hyperlink from returned sql query ?

843


Do you know what is user defined datatypes and when you should go for them?

726


Where views are stored in sql server?

736


how to create “alternate row colour”?

128


you want to be sure that queries in a database always execute at the maximum possible speed. To achieve this goal you have created various indexes on tables which other statement will keep the database in good condition? : Sql server administration

757


How to list all triggers in the database with sys.triggers in ms sql server?

776


Explain what is the difference between union and union all?

759


How to rename an existing column with sql server management studio?

697


Please illustrate physical database architecture? : SQL Server Architecture

755


How do you rebuild an identity column?

732


What are the steps you can take to avoid “deadlocks”?

700