共用方式為


QuotedIdentifiersEnabled 屬性

取得或設定布林屬性值,這個值會指定以雙引號 (" ") 分隔的識別碼是否為 Transact-SQL 保留關鍵字,或包含 Transact-SQL 語法規則通常不允許的字元。

命名空間:  Microsoft.SqlServer.Management.Smo
組件:  Microsoft.SqlServer.Smo (在 Microsoft.SqlServer.Smo.dll 中)

語法

'宣告
<SfcPropertyAttribute(SfcPropertyFlags.None Or SfcPropertyFlags.Standalone Or SfcPropertyFlags.SqlAzureDatabase Or SfcPropertyFlags.Design)> _
Public Property QuotedIdentifiersEnabled As Boolean
    Get
    Set
'用途
Dim instance As Database
Dim value As Boolean

value = instance.QuotedIdentifiersEnabled

instance.QuotedIdentifiersEnabled = value
[SfcPropertyAttribute(SfcPropertyFlags.None|SfcPropertyFlags.Standalone|SfcPropertyFlags.SqlAzureDatabase|SfcPropertyFlags.Design)]
public bool QuotedIdentifiersEnabled { get; set; }
[SfcPropertyAttribute(SfcPropertyFlags::None|SfcPropertyFlags::Standalone|SfcPropertyFlags::SqlAzureDatabase|SfcPropertyFlags::Design)]
public:
virtual property bool QuotedIdentifiersEnabled {
    bool get () sealed;
    void set (bool value) sealed;
}
[<SfcPropertyAttribute(SfcPropertyFlags.None|SfcPropertyFlags.Standalone|SfcPropertyFlags.SqlAzureDatabase|SfcPropertyFlags.Design)>]
abstract QuotedIdentifiersEnabled : bool with get, set
[<SfcPropertyAttribute(SfcPropertyFlags.None|SfcPropertyFlags.Standalone|SfcPropertyFlags.SqlAzureDatabase|SfcPropertyFlags.Design)>]
override QuotedIdentifiersEnabled : bool with get, set
final function get QuotedIdentifiersEnabled () : boolean
final function set QuotedIdentifiersEnabled (value : boolean)

屬性值

型別:System. . :: . .Boolean
Boolean 值,這個值會指定以雙引號分隔的識別碼是否為 Transact-SQL 保留的關鍵字,或包含 Transact-SQL 規則通常不允許的字元。如果為 True,則以雙引號分隔的識別碼會解譯為物件識別碼。如果為 False,則以雙引號分隔的識別碼就是包含 Transact-SQL 語法規則通常不允許之字元的字串,例如所有格符號。

實作

IDatabaseOptions. . :: . .QuotedIdentifiersEnabled

備註

This option can also be changed by using the Transact-SQL ALTER DATABASE statement.