Hosting Knowledge Store Procedures Vs User Defined Functions is MS SQL Server
SocialTwist Tell-a-Friend
Advertisement

Store Procedures Vs User Defined Functions is MS SQL Server


SQL Server user-defined functions and stored procedures offer similar functionality. Both allow us to create bundles of SQL statements that are stored on the server for future use. This offers a tremendous efficiency benefit, as you can save programming time.

    1. Reusing code from one program to another

    2. Hiding the SQL details, allowing database developers to worry about SQL and application developers to deal only in higher-level languages

    3. Centralize maintenance, allowing you to make business logic changes in a single place that automatically affect all dependent applications.

Difference between the functions and stored procedures:

Stored procedures are called independently, using the EXEC command, while Functions are called from within another SQL statement.

Stored procedure allow you to enhance application security by granting users and applications permission to use stored procedures, rather than permission to access the underlying tables.

Functions must always return a value (either a scalar value or a table). Stored procedures may return a scalar value, a table value or nothing at all. Stored Procedures returns more than one value at a time while Functions return only one value at a time.


Rate This Article


  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
poorGreat

Recent Comments


gfdgfdh


Posted by : reterty Mar 2nd, 2009

thhyjuj


Posted by : a Mar 2nd, 2009

Add comment


  • Your name :
  • Email :
  • *Comment :
  • Word Verification

Web Hosting Directory

  • The web hosting directory is for anyone who is searching for website hosting and hosting related resources. The directory is listing Shared, VPS and Dadicated server plans in descending order for customer ratings !!! This web hosting directory is listing plans on the basis of 100% unbiased customer ratings. TheWebHostingDir.com provides you nice tool to easily search all types of web hosting plans including cheap web hosting, ASP.Net hosting, php mysql hosting, Cheap VPS Hosting, Windows VPS, HyperV VPS, Xen VPS and Cpanel VPS Hosting.



Quick search

Request a Quote

If you wish to receive proposals from Web Hosting Companies Suited to your needs.