Unit 7 Flashcards

1
Q

a set of Transact-SQL (T-SQL) statements that is compiled and stored as a single database object for later repetitive use. It is the equivalent of a subroutine and a function in other programming languages

A

Stored Procedure

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Anatomy of a Stored Procedure

A
  • Composition
  • Functionality
  • Syntax
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

2 types of Composition

A

header & body

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

defines the name of the stored procedure, the input and output parameters, and some miscellaneous processing options.

A

header

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

contains one or more Transact-SQL statements to be executed at runtime.

A

body

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

The name of the procedure is a standard Transact-SQL identifier. The maximum length of any identifier is —— characters.

A

128

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

Stored procedures may contain up to —– input and output parameters.

A

2,100

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

The body of the stored procedure consists of one or more Transact-SQL statements. The maximum size of the body of the stored procedure is ——.

A

128MB

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q
  • An alternative way to send values from a stored procedure to the caller is to use a ——-
A

Return Values

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

assigning ———- to the parameters so that the user is not required to supply them. ———- are defined at the end of a parameter definition, behind the data types.

A

Default Values

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

You must type the name of the parameter and then assign a value to it. The parameter name must match its definition, including the – sign.

A

@

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

Types of Stored Procedures

A
  1. User-defined
  2. System
  3. Extended
  4. Temporary
  5. Global temporary
  6. Remote
  7. CLR
How well did you know this?
1
Not at all
2
3
4
5
Perfectly