Stored Procedures are Precompiled
means SQL Server compiles each Stored Procedure once and then re
utilizes the execution plan. This results in great performance improvements
when Stored Procedures are called frequently. It Reduced load on the network
bandwidth. Stored Procedures can be used by multiple users and client programs.
If you utilize them in a planned manner then you'll find the development cycle
requires less time. You can grant users permission to execute a Stored
Procedure independently of underlying table permissions.
Why we can't execute a stored procedure from a User Defined function(UDF)
Functions cannot "touch" any database but read them only. Stored procedures can do anything and everything with databases. You ...
-
SQL Server: Global Temporary tables This SQL Server tutorial explains how to use the GLOBAL TEMPORARY TABLES in SQL Server (Trans...
-
Both UNION and UNION ALL is used to combine results of two SELECT queries, main difference between them is that UNION doesn't includ...
-
Properties of Sub-Query A sub-query must be enclosed in the parenthesis. A sub-query must be put in the right hand of the compariso...