Applies To: SQL Server 2014, SQL Server 2016 Preview
Displays the currently open non-transactional file handles associated with FileTable data.
This view contains one row per open file handle. Because the data in this view corresponds to the live internal state of the server, the data is constantly changing as handles are opened and closed. This view does not contain historical information.
For more information, see Manage FileTables.
Applies to: SQL Server (SQL Server 2012 through current version).
ID of the database associated with the handle.
Object ID of the FileTable the handle is associated with.
Unique handle context identifier. Used by the sp_kill_filestream_non_transacted_handles (Transact-SQL) stored procedure to kill a specific handle.
Type of the handle. This indicates the level of the hierarchy the handle was opened against, ie. database or item.
“UNDEFINED", “SERVER_ROOT", “DATABASE_ROOT", “TABLE_ROOT", “TABLE_ITEM"
Contains a unique identifier for the process that originated the request.
Contains a unique identifier for the thread that originated the request.
Pointer to the file object used by this handle.
Current state of the handle. May be active, closed or killed.
“ACTIVE", “CLOSED", “KILLED"
State this handle is currently being processed by.
“NoSetWorkItemType", “FFtPreCreateWorkitem", “FFtGetPhysicalFileNameWorkitem", “FFtPostCreateWorkitem", “FFtPreCleanupWorkitem", “FFtPostCleanupWorkitem", “FFtPreCloseWorkitem", “FFtQueryDirectoryWorkItem", “FFtQueryInfoWorkItem", “FFtQueryVolumeInfoWorkItem", “FFtSetInfoWorkitem", “FFtWriteCompletionWorkitem"
FileTable File Control Block ID.
The Item ID for a file or directory. May be null for server root handles.
Is this a directory.
Name of the item.
Originally requested path to be opened.
Portion of the opened_file_name that represents the database directory name.
Portion of the opened_file_name that represents the table directory name.
Portion of the opened_file_name that represents the remaining directory name.
Time the handle was opened.
ShareFlagsUpdatedToFcb = 0x1, DeleteOnClose = 0x2, NewFile = 0x4, PostCreateDoneForNewFile = 0x8, StreamFileOverwritten = 0x10, RequestCancelled = 0x20, NewFileCreationRolledBack = 0x40
ID of the principal that opened the handle.
Name of the principal that opened the handle.
SID of the principal that opened the handle.
Opened for read access.
Opened for write access.
Opened for delete access.
Opened with share_read allowed.
Opened with share_write allowed.
Opened with share_delete allowed.