unit 9 Flashcards
Which data type do you use to define a column that contains a GUID?
uniqueidentifier
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 SafeFileHandle object
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.
The BLOB must be smaller than 2GB.
When you create a table that includes a column for storing BLOBs, which attribute can you code to enable FILESTREAM storage for the column?
FILESTREAM
Which function can you use to return the path to the binary file stream?
PathName
You should use FILESTREAM storage when
most of the BLOBs in the column are larger than 1MB
fast read access is critical to the application
To define a column that contains a GUID, you specify which property for the column?
ROWGUIDCOL
What should you use to retrieve binary data?
a SELECT statement just as you would for other types of data
A ________________ is a value that’s unique within the current database and other networked versions of the database around the world.
GUID (globally unique identifer)
You can store a BLOB value in a column of which data type?
varbinary(max)
By default, FILESTREAM storage is ________________ for the server.
disabled
Before you can use FILESTREAM storage, you must use the CREATE DATABASE statement to create a _____________ to provide for FILESTREAM storage.
file group
A BLOB can be used to store large amounts of what kind of data?
binary
What SQL Server function can you use to generate a globally unique value?
NEWID
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.
pointer