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...

Difference between writing SQL query and stored procedure ?

Answer Posted / gayathri

Every query is submited it will be compiled & then
executed.where as stored procedure is compiled
when it is submitted for the first time and this compiled
content is stored in something called procedure cache,
for subsequent calls no compilation,just execution & hence
better performance than query.
In Query we can execute only 1 statement. Stored Procedure:
In Stored Procedure we can execute Batch of Queries

Is This Answer Correct ?    103 Yes 11 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Why normalization is used?

1066


Explain how many types of relationship?

1083


Define union, union all, minus, intersect?

1032


Difference between report and query parameter.

1141


What is stored procedures?

1107


What is the difference between grant and with grant while giving permissions to the user?

1024


What will happen if a column containing char type data is changed to the nchar data type?

1148


What are dml triggers and types of dml triggers?

1028


Explain user defined functions?

1045


Do you know concepts and capabilities of sql server?

1107


How to delete a database in ms sql server?

1316


What are the differences between web role and worker role?

124


What happens when transaction log is full?

989


What is use of except clause? How does it differ from not in clause?

1064


Issues related in upgrading SQL Server 2000 to 2005 / 2008

1939