unit 9 Flashcards

1
Q

Which data type do you use to define a column that contains a GUID?

A

uniqueidentifier

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

To work with the data in a column that uses FILESTREAM storage from a .NET application, you must use all but one of the following. Which one?

an SqlFileStream object

the GET_FILESTREAM_TRANSACTION_CONTEXT function

the PathName function

a SafeFileHandle object

A

a SafeFileHandle object

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

When you store a BLOB in a database column with FILESTREAM storage, which of the following statements is not true?

The BLOB is backed up with the database.

The BLOB must be smaller than 2GB.

The BLOB access is as fast as file system access.

Database security can be used to control access to the BLOB.

A

The BLOB must be smaller than 2GB.

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

When you create a table that includes a column for storing BLOBs, which attribute can you code to enable FILESTREAM storage for the column?

A

FILESTREAM

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

Which function can you use to return the path to the binary file stream?

A

PathName

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

You should use FILESTREAM storage when

A

most of the BLOBs in the column are larger than 1MB

fast read access is critical to the application

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

To define a column that contains a GUID, you specify which property for the column?

A

ROWGUIDCOL

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

What should you use to retrieve binary data?

A

a SELECT statement just as you would for other types of data

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

A ________________ is a value that’s unique within the current database and other networked versions of the database around the world.

A

GUID (globally unique identifer)

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

You can store a BLOB value in a column of which data type?

A

varbinary(max)

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

By default, FILESTREAM storage is ________________ for the server.

A

disabled

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

Before you can use FILESTREAM storage, you must use the CREATE DATABASE statement to create a _____________ to provide for FILESTREAM storage.

A

file group

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

A BLOB can be used to store large amounts of what kind of data?

A

binary

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

What SQL Server function can you use to generate a globally unique value?

A

NEWID

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

One way to work with binary data is to use a varchar column to store a string value that acts as a _______________ to a binary file.

A

pointer

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