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

Explain the properties of subqueries in sql server?

1082


What is the difference between for trigger and after trigger?

1107


What are different types of database indexes?

1103


What is SubQuery in SQL Server 2008

1024


What is create statement?

959


What is the exact numeric data type in sql?

1003


In how many ways you can invoke ssrs reports?

139


What is a deadlock and what is a live lock?

1003


How many types of dimensions are there and what are they? : sql server analysis services, ssas

1071


What is an active database?

1014


How important do you consider cursors or while loops for a transactional database?

966


What are the different index configurations a table can have?

960


How to rebuild indexes with alter index ... Rebuild?

1127


What is read committed?

1092


What are the new features of sql server 2008 r2 reporting service?

209