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   interview questions urls   External Links  Contact Us     Login  |  Sign Up                      
Do you have a collection of Interview Questions and interested to share with us!!
Please send that collection to along with your userid / name. ThanQ
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
What is the diff between Static Queries and Dynamic queries
give me some examples
 Question Submitted By :: Bhaskar
I also faced this Question!!     Rank Answer Posted By  
 
  Re: What is the diff between Static Queries and Dynamic queries give me some examples
Answer
# 1
Static queries are the queries we normally use like SELECT *
FROM EMPLOYEE. where as dynamic queries can be built and
executed dynamically. sp_executesql system stored procedure 
is used to execute dynamic sql statements.

Eg: sp_executesql N'select * from employee'

dynamic sql queries will take more time to execute when
compared to static queries
 
Is This Answer Correct ?    2 Yes 0 No
Praveen
 

 
 
 
Other SQL Server Interview Questions
 
  Question Asked @ Answers
 
How to Generate a Series of Random Integers With T-SQL?  1
How do you find the error, how can you know the number of rows effected by last SQL statement?  2
What is the basic difference between clustered and a non-clustered index?  2
Can we create clustered index on non primary key column CTS11
what is curser.  7
How to find the date and time of last updated table?  3
What are the main control-of-flow T-SQL constructs?  1
internal language used in sql server 2000?  1
select top 5 * from emp order by newid() my question is , how this query get executed?  2
Wht is SQL Injection Attack ?  1
Which is the subset of SQL commands used to manipulate Oracle Database structures, including tables?  1
What are the new features in SQL Server 2005? Emphasis2
What's the maximum size of a row?  4
What are the different ways of moving data/databases between servers and databases in SQL Server? HCL2
How do we get month name in SQL Server 2000, Oracle, MS Access?  4
What are the different types of replication? How are they used?  3
What is a function? Give some example?  1
Explain DBMS, RDBMS?  4
In performance wise distinct is good or group by is good? eg:select name from emp group by name; select distinct name from emp; Infosys2
What is the use of CASCADE CONSTRAINTS?  2
 
For more SQL Server Interview Questions Click Here 
 
 
 
 
 
   
Copyright Policy  |  Terms of Service  |  Help  |  Site Map 1  |  Articles  |  Site Map  |   Site Map  |  Contact Us
   
Copyright © 2007  ALLInterview.com.  All Rights Reserved.

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