다음을 통해 공유


DataSource.SqlServerOnAzureVM Method

Definition

Overloads

SqlServerOnAzureVM(String, String, String, DataChangeDetectionPolicy, String)

Creates a new DataSource to connect to a VM-hosted SQL Server database with change detection enabled.

SqlServerOnAzureVM(String, String, String, DataDeletionDetectionPolicy, String)

Creates a new DataSource to connect to a VM-hosted SQL Server database.

SqlServerOnAzureVM(String, String, String, HighWaterMarkChangeDetectionPolicy, DataDeletionDetectionPolicy, String)

Creates a new DataSource to connect to a VM-hosted SQL Server database with change detection and deletion detection enabled.

SqlServerOnAzureVM(String, String, String, DataChangeDetectionPolicy, String)

Source:
DataSource.Customization.cs

Creates a new DataSource to connect to a VM-hosted SQL Server database with change detection enabled.

public static Microsoft.Azure.Search.Models.DataSource SqlServerOnAzureVM (string name, string sqlConnectionString, string tableOrViewName, Microsoft.Azure.Search.Models.DataChangeDetectionPolicy changeDetectionPolicy, string description = default);
static member SqlServerOnAzureVM : string * string * string * Microsoft.Azure.Search.Models.DataChangeDetectionPolicy * string -> Microsoft.Azure.Search.Models.DataSource
Public Shared Function SqlServerOnAzureVM (name As String, sqlConnectionString As String, tableOrViewName As String, changeDetectionPolicy As DataChangeDetectionPolicy, Optional description As String = Nothing) As DataSource

Parameters

name
String

The name of the datasource.

sqlConnectionString
String

The connection string for the SQL Server database.

tableOrViewName
String

The name of the table or view from which to read rows.

changeDetectionPolicy
DataChangeDetectionPolicy

The change detection policy for the datasource.

description
String

Optional. Description of the datasource.

Returns

A new DataSource instance.

Applies to

SqlServerOnAzureVM(String, String, String, DataDeletionDetectionPolicy, String)

Source:
DataSource.Customization.cs

Creates a new DataSource to connect to a VM-hosted SQL Server database.

public static Microsoft.Azure.Search.Models.DataSource SqlServerOnAzureVM (string name, string sqlConnectionString, string tableOrViewName, Microsoft.Azure.Search.Models.DataDeletionDetectionPolicy deletionDetectionPolicy = default, string description = default);
static member SqlServerOnAzureVM : string * string * string * Microsoft.Azure.Search.Models.DataDeletionDetectionPolicy * string -> Microsoft.Azure.Search.Models.DataSource
Public Shared Function SqlServerOnAzureVM (name As String, sqlConnectionString As String, tableOrViewName As String, Optional deletionDetectionPolicy As DataDeletionDetectionPolicy = Nothing, Optional description As String = Nothing) As DataSource

Parameters

name
String

The name of the datasource.

sqlConnectionString
String

The connection string for the SQL Server database.

tableOrViewName
String

The name of the table or view from which to read rows.

deletionDetectionPolicy
DataDeletionDetectionPolicy

Optional. The data deletion detection policy for the datasource.

description
String

Optional. Description of the datasource.

Returns

A new DataSource instance.

Applies to

SqlServerOnAzureVM(String, String, String, HighWaterMarkChangeDetectionPolicy, DataDeletionDetectionPolicy, String)

Source:
DataSource.Customization.cs

Creates a new DataSource to connect to a VM-hosted SQL Server database with change detection and deletion detection enabled.

public static Microsoft.Azure.Search.Models.DataSource SqlServerOnAzureVM (string name, string sqlConnectionString, string tableOrViewName, Microsoft.Azure.Search.Models.HighWaterMarkChangeDetectionPolicy changeDetectionPolicy, Microsoft.Azure.Search.Models.DataDeletionDetectionPolicy deletionDetectionPolicy, string description = default);
static member SqlServerOnAzureVM : string * string * string * Microsoft.Azure.Search.Models.HighWaterMarkChangeDetectionPolicy * Microsoft.Azure.Search.Models.DataDeletionDetectionPolicy * string -> Microsoft.Azure.Search.Models.DataSource
Public Shared Function SqlServerOnAzureVM (name As String, sqlConnectionString As String, tableOrViewName As String, changeDetectionPolicy As HighWaterMarkChangeDetectionPolicy, deletionDetectionPolicy As DataDeletionDetectionPolicy, Optional description As String = Nothing) As DataSource

Parameters

name
String

The name of the datasource.

sqlConnectionString
String

The connection string for the SQL Server database.

tableOrViewName
String

The name of the table or view from which to read rows.

changeDetectionPolicy
HighWaterMarkChangeDetectionPolicy

The change detection policy for the datasource. Note that only high watermark change detection is allowed for SQL Server when deletion detection is enabled.

deletionDetectionPolicy
DataDeletionDetectionPolicy

The data deletion detection policy for the datasource.

description
String

Optional. Description of the datasource.

Returns

A new DataSource instance.

Applies to