Share via


DataSource.AzureSql Method

Definition

Overloads

AzureSql(String, String, String, DataChangeDetectionPolicy, String)

Creates a new DataSource to connect to an Azure SQL database with change detection enabled.

AzureSql(String, String, String, DataDeletionDetectionPolicy, String)

Creates a new DataSource to connect to an Azure SQL database.

AzureSql(String, String, String, HighWaterMarkChangeDetectionPolicy, DataDeletionDetectionPolicy, String)

Creates a new DataSource to connect to an Azure SQL database with change detection and deletion detection enabled.

AzureSql(String, String, String, DataChangeDetectionPolicy, String)

Source:
DataSource.Customization.cs

Creates a new DataSource to connect to an Azure SQL database with change detection enabled.

public static Microsoft.Azure.Search.Models.DataSource AzureSql (string name, string sqlConnectionString, string tableOrViewName, Microsoft.Azure.Search.Models.DataChangeDetectionPolicy changeDetectionPolicy, string description = default);
static member AzureSql : string * string * string * Microsoft.Azure.Search.Models.DataChangeDetectionPolicy * string -> Microsoft.Azure.Search.Models.DataSource
Public Shared Function AzureSql (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 Azure SQL 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

AzureSql(String, String, String, DataDeletionDetectionPolicy, String)

Source:
DataSource.Customization.cs

Creates a new DataSource to connect to an Azure SQL database.

public static Microsoft.Azure.Search.Models.DataSource AzureSql (string name, string sqlConnectionString, string tableOrViewName, Microsoft.Azure.Search.Models.DataDeletionDetectionPolicy deletionDetectionPolicy = default, string description = default);
static member AzureSql : string * string * string * Microsoft.Azure.Search.Models.DataDeletionDetectionPolicy * string -> Microsoft.Azure.Search.Models.DataSource
Public Shared Function AzureSql (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 Azure SQL 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

AzureSql(String, String, String, HighWaterMarkChangeDetectionPolicy, DataDeletionDetectionPolicy, String)

Source:
DataSource.Customization.cs

Creates a new DataSource to connect to an Azure SQL database with change detection and deletion detection enabled.

public static Microsoft.Azure.Search.Models.DataSource AzureSql (string name, string sqlConnectionString, string tableOrViewName, Microsoft.Azure.Search.Models.HighWaterMarkChangeDetectionPolicy changeDetectionPolicy, Microsoft.Azure.Search.Models.DataDeletionDetectionPolicy deletionDetectionPolicy, string description = default);
static member AzureSql : string * string * string * Microsoft.Azure.Search.Models.HighWaterMarkChangeDetectionPolicy * Microsoft.Azure.Search.Models.DataDeletionDetectionPolicy * string -> Microsoft.Azure.Search.Models.DataSource
Public Shared Function AzureSql (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 Azure SQL 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 Azure SQL 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