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
What are the dis_advantages of stored procedures, triggers, indexes?
Explain the properties of the relational tables?
What is the process of normalising?
Are semicolons required at the end of sql statements in sql server 2005?
Explain about service Broker functions?
how would you write a sql query to compute a frequency table of a certain attribute involving two joins? What changes would you need to make if you want to order by or group by some attribute? What would you do to account for nulls?
How to verify a user name with sqlcmd tool?
How to use wildcard characters in like operations in ms sql server?
When is update_statistics command used?
What is the purpose of data source?
In which sql server version report builder introduced?
What do you mean by cardinality?
What does nvl stand for?
What does select 1 mean?
Do you know clustered and non-clustered index?