### YamlMime:JavaType uid: "com.microsoft.azure.management.sql.SqlDatabase.DefinitionStages.WithSourceDatabaseId" fullName: "com.microsoft.azure.management.sql.SqlDatabase.DefinitionStages.WithSourceDatabaseId" name: "SqlDatabase.DefinitionStages.WithSourceDatabaseId" nameWithType: "SqlDatabase.DefinitionStages.WithSourceDatabaseId" summary: "The SQL Database definition to set the source database id for database." syntax: "public static interface **SqlDatabase.DefinitionStages.WithSourceDatabaseId**" methods: - uid: "com.microsoft.azure.management.sql.SqlDatabase.DefinitionStages.WithSourceDatabaseId.withSourceDatabase(com.microsoft.azure.management.sql.SqlDatabase)" fullName: "com.microsoft.azure.management.sql.SqlDatabase.DefinitionStages.WithSourceDatabaseId.withSourceDatabase(SqlDatabase sourceDatabase)" name: "withSourceDatabase(SqlDatabase sourceDatabase)" nameWithType: "SqlDatabase.DefinitionStages.WithSourceDatabaseId.withSourceDatabase(SqlDatabase sourceDatabase)" summary: "Sets the resource if of source database for the SQL Database." modifiers: - "abstract" parameters: - description: "instance of the source database" name: "sourceDatabase" type: "" syntax: "public abstract SqlDatabase.DefinitionStages.WithCreateMode withSourceDatabase(SqlDatabase sourceDatabase)" desc: "Sets the resource if of source database for the SQL Database.\n\nCollation, Edition, and MaxSizeBytes must remain the same while the link is active. Values specified for these parameters will be ignored." returns: description: "The next stage of the definition." type: "<>" - uid: "com.microsoft.azure.management.sql.SqlDatabase.DefinitionStages.WithSourceDatabaseId.withSourceDatabase(java.lang.String)" fullName: "com.microsoft.azure.management.sql.SqlDatabase.DefinitionStages.WithSourceDatabaseId.withSourceDatabase(String sourceDatabaseId)" name: "withSourceDatabase(String sourceDatabaseId)" nameWithType: "SqlDatabase.DefinitionStages.WithSourceDatabaseId.withSourceDatabase(String sourceDatabaseId)" summary: "Sets the resource if of source database for the SQL Database." modifiers: - "abstract" parameters: - description: "id of the source database" name: "sourceDatabaseId" type: "" syntax: "public abstract SqlDatabase.DefinitionStages.WithCreateMode withSourceDatabase(String sourceDatabaseId)" desc: "Sets the resource if of source database for the SQL Database.\n\nCollation, Edition, and MaxSizeBytes must remain the same while the link is active. Values specified for these parameters will be ignored." returns: description: "The next stage of the definition." type: "<>" type: "interface" typeParameters: - description: "the stage of the parent definition to return to after attaching this definition" name: "ParentT" desc: "The SQL Database definition to set the source database id for database." metadata: {} package: "com.microsoft.azure.management.sql" artifact: com.microsoft.azure:azure-mgmt-sql:1.41.4