SQL Server stored procedure one

Source: Internet
Author: User

What is a stored procedure

Stored procedures are functions similar to those in the C language that are used to perform administrative tasks or to apply complex business rules. Stored procedures can take parameters, or they can return results

(Contains data manipulation statements, variables, logical control statements, etc.)

Advantages and Disadvantages

Fast execution speed allows modular programming to improve system security and reduce network traffic

Disadvantage of poor database portability

Classification of stored procedures

System stored procedures are defined by the system and stored in the master database with names beginning with "sp_" or "xp_"

Sp_databases list all databases on the server

Sp_tables returns the list of objects that can be queried in the current environment

sp_helpdb report information about a specified database or all databases

Sp_renamedb modifying the name of the database

Sp_columns returns information for a table column

sp_help View all information for a table

Sp_helpconstraint viewing constraints on a table

Sp_helpindex to view the index of a table table

Sp_stored_procedures lists all stored procedures in the current environment

sp_password Add or modify password for login account

SP_HELPTEXT displays default values, unencrypted stored procedures, user-defined stored procedures, triggers, or actual versions of views

User-defined stored procedures that are created by the user in their own database

SQL Server stored procedure one

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.