Career Sql Server Interview Questions: Store Procedures


by ADAM STURO - Date: 2007-05-12 - Word Count: 311 Share This!

A Store Procedure is a Sql Query that is stores in database in Sql Server. One thing is that there is no need to query to be write on front end code. Using store procedure improves performance now the question arise how its improve performance. Lets suppose we have to put some select query.

Here dotnetquestion is table and 1000 user are using this query at the same time. So lot of network traffic is there and network congestion occurs. Some of connection are disconnected due to network traffic and again reset and network traffic sent twice. So query really slow down the process.

So to get release from network traffic sends some little information on network. So all this things done when information is stored on Sql Server. Store procedure plays there role to execute store procedure we need only a little command to handle store procedure. Another advantage of store procedure is overhead means when we run some ad hoc queries it must compiled mainly every time when they are run but store procedure are precompiled. When store procedure gone in compiling plan is already in memory as compares to Sql Query a plan is created on the basis of joins and where clauses. So store procedures are fasters.

Another great advantage of DBMS is that when there is any change in query only we have to change the query only at one place that is on the servers.

But there are also situations when store procedure is not helpful where query are changed frequently. There are different types of store procedure some of these store procedure are as folm.

1. user defined store procedure 2. Systems Store Procedure 3. Extended Store Procedure

To learn more on Dot Net Interview Questions visit dotnetquestion.info

Adam Sturo provides you the latest interview questions on Sql Server 2000 Interview Questions and Xml Interview Questions.


Related Tags: dot net faq, dot net questions, dot net interview questions, sql server interview questions

Your Article Search Directory : Find in Articles

© The article above is copyrighted by it's author. You're allowed to distribute this work according to the Creative Commons Attribution-NoDerivs license.
 

Recent articles in this category:



Most viewed articles in this category: