Siêu thị PDFTải ngay đi em, trời tối mất

Thư viện tri thức trực tuyến

Kho tài liệu với 50,000+ tài liệu học thuật

© 2023 Siêu thị PDF - Kho tài liệu học thuật hàng đầu Việt Nam

Session4_Module7-8_Stored Procedures pdf
MIỄN PHÍ
Số trang
41
Kích thước
195.9 KB
Định dạng
PDF
Lượt xem
1185

Session4_Module7-8_Stored Procedures pdf

Nội dung xem thử

Mô tả chi tiết

Stored Procedures / Session 4/ 1 of 41

Session 4

Module 7: Introducing stored procedures

Module 8: More about stored procedures

Stored Procedures / Session 4/ 2 of 41

Module 7: Introducing stored

procedures

Objectives

Database Objects/ Session 4/ 3 of 42

Stored Procedures

 A stored procedure is a group of Transact-SQL

statements that act as a single block of code that

performs a specific task. This block of code is identified

by an assigned name and is stored in the database in a

compiled form.

 Stored procedures are useful for performing repetitive

tasks. This eliminates the need for repetitively typing out

multiple Transact-SQL statements and then repetitively

compiling them.

 Stored procedures support user-declared variables,

conditional execution and other programming features.

Also, parameters can be passed between the stored

procedure and the calling program.

Database Objects/ Session 4/ 4 of 42

Advantages – 1

 Database developers or administrators write stored

procedures to perform a variety of tasks related to

database access and management.

 Using stored procedures offer numerous advantages

over using Transact-SQL statements. These are:

 Improved Security

 Precompiled Execution

 Reduced Client/Server Traffic

 Reuse of Code

Tải ngay đi em, còn do dự, trời tối mất!