กิจกรรม
31 มี.ค. 23 - 2 เม.ย. 23
อิเกีย เหตุการณ์การเรียนรู้ SQL, Fabric และ Power BI ที่ใหญ่ที่สุด 31 มีนาคม – 2 เมษายน ใช้รหัส FABINSIDER เพื่อบันทึก $400
ลงทะเบียนวันนี้เบราว์เซอร์นี้ไม่ได้รับการสนับสนุนอีกต่อไป
อัปเกรดเป็น Microsoft Edge เพื่อใช้ประโยชน์จากคุณลักษณะล่าสุด เช่น การอัปเดตความปลอดภัยและการสนับสนุนด้านเทคนิค
Applies to:
Azure SQL Database
Azure SQL Managed Instance
Returns the specified extended file property value when a file name in the current database and a property name are specified. Returns NULL for files that are not in the current database or for extended file properties that do not exist. Currently, extended file properties only apply to databases that are in Azure Blob storage.
Transact-SQL syntax conventions
FILEPROPERTYEX ( name , property )
name
Is an expression that contains the name of the file associated with the current database for which to return property information. file_name is nchar(128).
property
Is an expression that contains the name of the file property to return. property is varchar(128), and can be one of the following values.
Value | Description |
---|---|
BlobTier | The tier of target Azure page blob. Applies only to Standard and GeneralPurpose databases that uses Azure page blob storage. |
AccountType | The storage account type indicating whether it is blob storage or file storage and whether it is premium or standard storage. |
IsInferredTier | Indicates whether the tier is an implicit (inferred) tier which could grow with data size, or an explicit (fixed) tier. |
IsPageBlob | Indicates whether the target blob is page blob or not. |
sql_variant
file_name corresponds to the name column in the sys.master_files or sys.database_files catalog view.
The following example returns the setting for database files:
SELECT s.file_id,
s.type_desc,
s.name,
FILEPROPERTYEX(s.name, 'BlobTier') AS BlobTier,
FILEPROPERTYEX(s.name, 'AccountType') AS AccountType,
FILEPROPERTYEX(s.name, 'IsInferredTier') AS IsInferredTier,
FILEPROPERTYEX(s.name, 'IsPageBlob') AS IsPageBlob
FROM sys.database_files AS s
WHERE s.type_desc IN ('ROWS', 'LOG');
Here's the result set.
file_id type_desc name BlobTier AccountType IsInferredTier IsPageBlob
--------------------------------------------------------------------------------------
1 ROWS data_0 P30 PremiumBlobStorage 0 1
2 LOG log P30 PremiumBlobStorage 0 1
(2 rows affected)
FILEGROUPPROPERTY (Transact-SQL)
Metadata Functions (Transact-SQL)
sp_spaceused (Transact-SQL)
sys.database_files (Transact-SQL)
sys.master_files (Transact-SQL)
กิจกรรม
31 มี.ค. 23 - 2 เม.ย. 23
อิเกีย เหตุการณ์การเรียนรู้ SQL, Fabric และ Power BI ที่ใหญ่ที่สุด 31 มีนาคม – 2 เมษายน ใช้รหัส FABINSIDER เพื่อบันทึก $400
ลงทะเบียนวันนี้