sys.dm_filestream_file_io_handles (Transact-SQL)
Displays the file handles that the Namespace Owner (NSO) knows about. Filestream handles that a client got using OpenSqlFilestream are displayed by this view.
Column |
Type |
Description |
---|---|---|
handle_context_address |
varbinary(8) |
Shows the address of the internal NSO structure associated with the client’s handle. Is nullable. |
creation_request_id |
int |
Shows a field from the REQ_PRE_CREATE I/O request used to create this handle. Is not nullable. |
creation_irp_id |
int |
Shows a field from the REQ_PRE_CREATE I/O request used to create this handle. Is not nullable |
handle_id |
int |
Shows the unique ID of this handle that is assigned by the driver. Is not nullable. |
creation_client_thread_id |
varbinary(8) |
Shows a field from the REQ_PRE_CREATE I/O request used to create this handle. Is nullable. |
creation_client_process_id |
varbinary(8) |
Shows a field from the REQ_PRE_CREATE I/O request used to create this handle. Is nullable. |
filestream_transaction_id |
varbinary(128) |
Shows the ID of the transaction associated with the given handle. This is the value returned by the get_filestream_transaction_context function. Use this field to join to the sys.dm_filestream_file_io_requests view. Is nullable. |
access_type |
nvarchar(60) |
Is not nullable. |
logical_path |
nvarchar(256) |
Shows the logical pathname of the file that this handle opened. This is the same pathname that is returned by the .PathName method of varbinary(max) filestream. Is nullable. |
physical_path |
nvarchar(256) |
Shows the actual NTFS pathname of the file. This is the same pathname returned by the .PhysicalPathName method of the varbinary(max) filestream. It is enabled by trace flag 5556. Is nullable. |
Permissions
Requires VIEW SERVER STATE permission on the server.
See Also
Reference
Filestream and FileTable Dynamic Management Views (Transact-SQL)