FileTable 結構描述
描述 FileTable 預先定義且固定的結構描述。
檔案屬性名稱 |
型別 |
大小 |
預設值 |
說明 |
檔案系統可存取性 |
---|---|---|---|---|---|
path_locator |
hierarchyid |
變數 |
識別此項目位置的 hierarchyid。 |
此節點在階層式 FileNamespace 中的位置。 資料表的主索引鍵。 |
可透過設定 Windows 路徑值加以建立及修改。 |
stream_id |
[uniqueidentifier] rowguidcol |
NEWID() 函數所傳回的值。 |
FILESTREAM 資料的唯一識別碼。 |
不適用。 |
|
file_stream |
varbinary(max) filestream |
變數 |
NULL |
包含 FILESTREAM 資料。 |
不適用。 |
file_type |
nvarchar(255) |
變數 |
NULL。 檔案系統中的建立或重新命名作業,將會根據名稱填入副檔名值。 |
代表檔案的類型。 當您建立全文檢索索引時,此資料行可用以做為 TYPE COLUMN。 file_type 是保存的計算資料行。 |
自動計算, 無法設定。 |
名稱 |
nvarchar(255) |
變數 |
GUID 值。 |
檔案或目錄名稱。 |
可使用 Windows API 加以建立或修改。 |
parent_path_locator |
hierarchyid |
變數 |
識別內含此項目之目錄的 hierarchyid。 |
上層目錄的 hierarchyid。 parent_path_locator 是保存的計算資料行。 |
自動計算, 無法設定。 |
cached_file_size |
bigint |
FILESTREAM 資料的大小 (以位元組為單位)。 cached_file_size 是保存的計算資料行。 |
雖然快取的檔案大小會自動保持最新狀態,不過在少見的情況下,它可能會呈現未同步狀態。 若要計算確切的大小,請使用 DATALENGTH() 函數。 |
||
creation_time |
datetime2(4) not null |
8 個位元組 |
目前時間。 |
建立檔案的日期與時間。 |
自動計算, 也可以使用 Windows API 加以設定。 |
last_write_time |
datetime2(4) not null |
8 個位元組 |
目前時間。 |
上次更新檔案的日期與時間。 |
自動計算, 也可以使用 Windows API 加以設定。 |
last_access_time |
datetime2(4) not null |
8 個位元組 |
目前時間。 |
上次存取檔案的日期與時間。 |
自動計算, 也可以使用 Windows API 加以設定。 |
is_directory |
bit not null |
1 個位元組 |
FALSE |
指出資料列是否代表目錄。 此值會自動計算,而且無法設定。 |
自動計算, 無法設定。 |
is_offline |
bit not null |
1 個位元組 |
FALSE |
離線檔案屬性。 |
自動計算, 也可以使用 Windows API 加以設定。 |
is_hidden |
bit not null |
1 個位元組 |
FALSE |
隱藏檔案屬性。 |
自動計算, 也可以使用 Windows API 加以設定。 |
is_readonly |
bit not null |
1 個位元組 |
FALSE |
唯讀檔案屬性。 |
自動計算, 也可以使用 Windows API 加以設定。 |
is_archive |
bit not null |
1 個位元組 |
FALSE |
封存屬性。 |
自動計算, 也可以使用 Windows API 加以設定。 |
is_system |
bit not null |
1 個位元組 |
FALSE |
系統檔案屬性。 |
自動計算, 也可以使用 Windows API 加以設定。 |
is_temporary |
bit not null |
1 個位元組 |
FALSE |
暫存檔案屬性。 |
自動計算, 也可以使用 Windows API 加以設定。 |