Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

What is the diff between Static Queries and Dynamic queries
give me some examples

Answer Posted / praveen

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 ?    18 Yes 5 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Mention a few common trace flags used with sql server?

923


How to verify a user name with sqlcmd tool?

1070


what is a correlated sub-query? : Sql server database administration

935


Is it true that rules do not apply to data already existing in a database at the time the rule is created?

1031


What is self join in sql server joins?

1051


Determine how to use the inserted and deleted pseudo tables?

981


How do you trace the traffic hitting a sql server?

1134


Explain a differential backup?

1001


What is impersonation? What are the different impersonation options available in ssas? : sql server analysis services, ssas

969


Where are sql server usernames and passwords stored in the sql server?

1105


You are designing a database for your human resources department in the employee table, there is a field for social security number, which cannot contain null values if no value is given, you want a value of unknown to be inserted in this field what is the best approach?

1097


Explain an incremental backup?

992


Is a null value equal to anything? Can a space in a column be considered a null value? Why or why not?

1059


What is etl - extraction, transformation, and loading?

913


What is the use of for clause?

1103