共用方式為


OleDbProviderSettings.SqlServerLike 屬性

Gets or sets the Boolean property value that specifies whether the OLE DB provider supports the LIKE operator as it is implemented in Microsoft SQL Server.

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

語法

'宣告
<SfcPropertyAttribute(SfcPropertyFlags.Standalone)> _
Public Property SqlServerLike As Boolean 
    Get 
    Set
'用途
Dim instance As OleDbProviderSettings 
Dim value As Boolean 

value = instance.SqlServerLike

instance.SqlServerLike = value
[SfcPropertyAttribute(SfcPropertyFlags.Standalone)]
public bool SqlServerLike { get; set; }
[SfcPropertyAttribute(SfcPropertyFlags::Standalone)]
public:
property bool SqlServerLike {
    bool get ();
    void set (bool value);
}
[<SfcPropertyAttribute(SfcPropertyFlags.Standalone)>]
member SqlServerLike : bool with get, set
function get SqlServerLike () : boolean 
function set SqlServerLike (value : boolean)

屬性值

型別:System.Boolean
A Boolean value that specifies whether the OLE DB provider supports the LIKE operator as it is implemented in SQL Server.If True, the LIKE operator behaves the same as in SQL Server.If False (default), the LIKE operator behaves differently from SQL Server.

備註

When this property is set to True, SQL Server considers requesting the OLE DB provider handle the queries with LIKE predicates against remote columns as part of the distributed queries evaluation.

範例

在 SMO 中使用連結的伺服器

請參閱

參考

OleDbProviderSettings 類別

Microsoft.SqlServer.Management.Smo 命名空間