Friday, 22 September 2017

What is the difference between an SQL query and a stored procedure?

SQL query and Stored procedure do the same thing.
But the difference is that, a query should be compiled every time the query is executed, while the stored procedure is in compiled form when executed first time.
If we use stored procedure we can avoid recompilation of the query.

No comments:

Post a Comment

Popular Posts