sys.dm_filestream_non_transacted_handles(Transact-SQL)

適用於:SQL Server

顯示目前開啟的非交易檔案帳柄,與 FileTable 資料相關聯。

此視圖包含每個開啟檔案柄一列。 由於此視圖中的資料對應於伺服器的即時內部狀態,資料會隨著句柄的開啟與關閉不斷變化。 此觀點不包含歷史資訊。

如需詳細資訊,請參閱 管理 FileTables。

資料行 Type Description
database_id int 與帳柄相關聯的資料庫識別碼。
object_id int 該句柄所關聯的 FileTable 物件 ID。
handle_id int 唯一句柄上下文識別碼。 sp_kill_filestream_non_transacted_handles(Transact-SQL)儲存程序用來終止特定句柄。
file_object_type int 把手類型。 這表示把手開啟時所面對的階層層級,也就是說,資料庫或項目。
file_object_type_desc 恩瓦爾查爾(120) 「未定義」,
「SERVER_ROOT」,
「DATABASE_ROOT」,
「TABLE_ROOT」,
「TABLE_ITEM」
correlation_process_id 變形星(8) 包含發起請求程序的唯一識別碼。
correlation_thread_id 變形星(8) 包含發起請求的執行緒的唯一識別碼。
file_context 變形星(8) 指向此 handle 使用的檔案物件指標。
狀態 int 手柄目前的狀態。 可能已活躍、已關閉或已死亡。
狀態描述 恩瓦爾查爾(120) 「活躍」,
「關閉」,
「殺死」
current_workitem_type int 請說明此帳號目前正在處理。
current_workitem_type_desc 恩瓦爾查爾(120) 「NoSetWorkItemType」,
「FFtPreCreateWorkitem」,
「FFtGetPhysicalFileNameWorkitem」,
「FFtPostCreate Workitem」,
「FFtPreCleanupWorkitem」,
「FFtPostCleanupWorkitem」,
「FFtPreCloseWorkitem」,
「FFtQueryDirectoryWorkItem」,
「FFt查詢資訊工作項目」,
「FFtQueryVolumeInfoWorkItem」,
「FFtSetInfoWorkitem」,
「FFtWriteCompletionWorkitem」
fcb_id Bigint FileTable 檔案控制區塊 ID。
item_id 變異星(892) 檔案或目錄的項目 ID。 伺服器根地址可能為空。
is_directory bit 這是目錄嗎?
item_name 恩瓦爾查爾(512) 項目的名稱。
opened_file_name 恩瓦爾查爾(512) 原本請求開啟路徑。
database_directory_name 恩瓦爾查爾(512) 代表資料庫目錄名稱的opened_file_name部分。
table_directory_name 恩瓦爾查爾(512) 代表資料表目錄名稱的opened_file_name部分。
remaining_file_name 恩瓦爾查爾(512) 代表剩餘目錄名稱的opened_file_name部分。
open_time 日期時間 門把被打開的時間。
flags int ShareFlagsUpdatedToFcb = 0x1,
DeleteOnClose = 0x2,
NewFile = 0x4,
PostCreateDoneForNewFile = 0x8,
StreamFileOverwritten = 0x10,
RequestCancelled = 0x20,
NewFileCreationRolledBack = 0x40
login_id int 開門把的負責人身分證。
login_name 恩瓦爾查爾(512) 打開把手的校長名字。
login_sid varbinary(85) 是打開把手的負責人的SID。
read_access bit 已開啟可讀取。
write_access bit 已開啟寫入權限。
delete_access bit 已開啟刪除權限。
share_read bit 開場時允許share_read。
share_write bit 開場時允許share_write。
share_delete bit 開場時允許share_delete。