ALLInterview.com :: Home Page KalAajKal.com
 Advertise your Business Here     
Browse  |   Placement Papers  |   Company  |   Code Snippets  |   Certifications  |   Visa Questions
Post Question  |   Post Answer  |   My Panel  |   Search  |   Articles  |   Topics  |   ERRORS new
   Refer this Site  Refer This Site to Your Friends  Site Map  Bookmark this Site  Set it as your HomePage  Contact Us     Login  |  Sign Up                      
info       Did you received any Funny E-Mails from your Friends and like to share with rest of our friends? Yeah!! you can post that stuff   HERE
Google
 
Categories  >>  Software  >>  Databases  >>  SQL Server
 
 


 

 
 Oracle interview questions  Oracle Interview Questions
 SQL Server interview questions  SQL Server Interview Questions
 MS Access interview questions  MS Access Interview Questions
 MySQL interview questions  MySQL Interview Questions
 Postgre interview questions  Postgre Interview Questions
 Sybase interview questions  Sybase Interview Questions
 DB Architecture interview questions  DB Architecture Interview Questions
 DB Administration interview questions  DB Administration Interview Questions
 DB Development interview questions  DB Development Interview Questions
 SQL PLSQL interview questions  SQL PLSQL Interview Questions
 Databases AllOther interview questions  Databases AllOther Interview Questions
Question
is it possible to use a variable in a query with the IN 
clause (a,b,c..z), without getting quotes or conversion 
errors?
 Question Submitted By :: Guest
I also faced this Question!!     Rank Answer Posted By  
 
  Re: 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
# 1
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 ?    0 Yes 1 No
Guest
 
  Re: 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
# 2
It is possible by using Dynamic SQL.
 
Is This Answer Correct ?    0 Yes 0 No
Kishor Kumar
 
 
 

 
 
 
Other SQL Server Interview Questions
 
  Question Asked @ Answers
 
what is bit data type? and what are the information that can be stored inside a bit column?  2
is it possible to use a variable in a query with the IN clause (a,b,c..z), without getting quotes or conversion errors?  2
What is the system function to get the current user's user id? TCS3
can we call stored Procedure in Function in Sql Server 2000 and vice versa. eSoft2
How to find the date and time of last updated table?  3
SQL stops working in every 15 days displaying message that database log file is full. Log file size is 3.95 GB. It is happening after shrinking the database also. What is solution to overcome this problem. Please help me as it's urgent.  5
What is the difference between a Local temporary table and a Global temporary table? How is each one used?  1
what command is used to create a table by copying the structure of another table?  5
write down the sql query? Table Name : emp1 empid empname 1 bala 2 guna Table Name : emp2 empid empname 1 <Null> 2 <Null> Solution : emp1 names are updated in emp2, write a query?  7
1. What are the grouping function in SQL ? 2. If base table of a view deleted means, what will happen while we querying on view ? will give any error ? 3. Difference between DROP, DELETE, TRUNCATE table ? 4. What is constraints and types ? 5. What is max size of nchar & nvarchar ? 6. Define ROLLBACK, COMMIT, SAVE POINT 7. How non-clustered better ? or rank the Clustered, Non-Clustered and Table scan in performance wise 8. Select 10 rows from a table ? 9. Define DML, DDL, DCL, DTL commands ? 10. What is mean by NULL value ? NULL means "" or 0 or undefined ? 11. Default constraints ? 12. Can we have more then primary Key in table ? 13. Type of integrity ? Entity, Referential, Domain ? Perot-Systems8
Difference Between varchar and nvarchar datatype? Satyam2
Lets say due to N/W or Security issues client is not able to connect to server or vice versa. How do you troubleshoot?  1
how to find number of columns in a table in sql server 2000 and 2005 also Virtusa10
What are sub-queries? Give example? In which case sub-queries are not feasible? Infosys3
how can i store resumes in database? HCL2
how to replace double quotes by single quotes in sql server CAC2
what is physical sort data and logical sort data in index?  2
What is the use of placing primary key and foreign key constrains on columns. Value-Labs2
Accidentally i deleted my table. How can i get that table?  4
After using delete statement in sql query to delete some records...to retrieve the deleted records we can get using rollback command but till that where it stores means particular location name i need....(after deleting and rollback ) iGate2
 
For more SQL Server Interview Questions Click Here 
 
 
 
 
 
   
Copyright Policy  |  Terms of Service  |  Help  |  Site Map 1  |  Articles  |  Site Map  |   Site Map  |  Contact Us interview questions urls   External Links 
   
Copyright © 2007  ALLInterview.com.  All Rights Reserved.

ALLInterview.com   ::  Forum9.com   ::  KalAajKal.com