你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

SqlDatabaseOperations.DefinitionStages.WithSourceDatabaseId Interface

public static interface SqlDatabaseOperations.DefinitionStages.WithSourceDatabaseId

The SQL Database definition to set the source database id for database.

Method Summary

Modifier and Type Method and Description
abstract WithCreateMode withSourceDatabase(SqlDatabase sourceDatabase)

Sets the resource if of source database for the SQL Database.

abstract WithCreateMode withSourceDatabase(String sourceDatabaseId)

Sets the resource if of source database for the SQL Database.

Method Details

withSourceDatabase

public abstract SqlDatabaseOperations.DefinitionStages.WithCreateMode withSourceDatabase(SqlDatabase sourceDatabase)

Sets the resource if of source database for the SQL Database.

Collation, Edition, and MaxSizeBytes must remain the same while the link is active. Values specified for these parameters will be ignored.

Parameters:

sourceDatabase - instance of the source database

Returns:

The next stage of the definition.

withSourceDatabase

public abstract SqlDatabaseOperations.DefinitionStages.WithCreateMode withSourceDatabase(String sourceDatabaseId)

Sets the resource if of source database for the SQL Database.

Collation, Edition, and MaxSizeBytes must remain the same while the link is active. Values specified for these parameters will be ignored.

Parameters:

sourceDatabaseId - id of the source database

Returns:

The next stage of the definition.

Applies to