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.

A

Stored Procedure

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

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
3
Q

We can describe stored procedures as?

A

Composition, Functionality, Syntax

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

Stored Procedure is consist of what composition

A

A header and A body

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

defines the name of the stored procedure, the input and output parameters, and some miscellaneous processing options. You can think of it as an API (application programming interface) or declaration of the stored procedure.

A

header

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
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
7
Q

The other way to change a stored procedure

A

Alter Stored Procedure

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
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
9
Q

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
10
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
11
Q

An alternative way to send values from a stored procedure to the caller is to

A

Return Values

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

return value statement can be followed by an _______ value that can be read by the caller

A

Integer

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

limited to int data types, they are most often used to signal an error status or error code to the caller

A

Return Values

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

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
15
Q

Types of stored procedures

A

User-defined
System
Extended
Temporary
Global temporary
Remote
CLR

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

are simply plain, stored procedures assembled by administrators or developers for later use.

A

user-defined stored procedures