Unit 4 Flashcards

1
Q

If you delete a stored procedure, function, or trigger and then create it again

A

you delete the security permissions assigned to the object

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

Unlike most database objects, when you invoke a user-defined function, you must always preface the name of the function with the

A

schema name

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

You can invoke a table-valued user-defined function

A

anywhere you’d refer to a table or a view

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

A user-defined function

A

can return a single scalar value or a single table value

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

Table-valued functions are one of the most useful extensions provided by Transact-SQL because they behave like views but can accept parameters that can change the result set.

A

True

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

If you want to prevent users from examining the SQL code that defines a procedure, function, or trigger, you code the CREATE statement with the ________________ option

A

ENCRYPTION

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

Before you can pass a table to a stored procedure or a function as a parameter, which statement do you use to create a user-defined table type?

A

CREATE

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