Difference between writing SQL query and stored procedure ?

Answer Posted / prakash

1. SP is easy to allocate GRANT AND REVOKE (Privileges)
Rights for user

2. SP is execute more faster than query statement

3. SP, is already compiled Object

4. Query is Sql Statement where as SP batch of Sql Statement

5. In a query memory management is more high than the SP

Is This Answer Correct ?    27 Yes 8 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How to delete existing triggers using "drop trigger"?

558


How do I perform an unattended install of sql server 2000?

604


How you can change a cross join into an inner join?

553


How to generate create procedure script on an existing stored procedure?

514


What is the osql utility?

538






write an SQL query to list the employees who joined in the month of January?

1152


Mention what are the core components of ssrs?

208


Where the sql logs gets stored?

542


hi, how to link a text file and a .rpt file in my tables of sql server and to retrieve those records for further use. reply me as soon as possible.

1559


Explain primary key, foreign key and unique key?

546


What is the minimum and maximum number of partitions required for a measure group? : sql server analysis services, ssas

599


How to name query output columns in ms sql server?

536


What is field with example?

516


What does the on update no action do?

589


What is the current pricing model of SQL Azure?

90