ADO. NET calls the SQL Server Stored Procedure

Source: Internet
Author: User

Advantages of using stored procedures:

1.Stored procedures are pre-compiled in the database,Compared with pure SQLHigher execution efficiency

2.The amount of data transmitted by stored procedures over the network is more than that transmitted by pure SQL statements.Few statements.

3.Stored Procedures hide Data Execution details,Make data more secure

The basic operations of the database are divided into addition,Delete,Change,QueryFour types,Add, delete, modify, and operate data,Is directly affecting data,After the operation,The number of affected rows is returned,But different queries,Check does not affect the data itself,Only a result set is returned and displayed to the user,Therefore, you can divide addition, deletion, and modification into one type,QueryIs a class.In ADO. NETSQLThe method is also different ..

Please read the attachment document directly...

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.