### YamlMime:JavaType uid: "com.microsoft.azure.management.sql.SqlDatabase.DefinitionStages.WithSampleDatabase" fullName: "com.microsoft.azure.management.sql.SqlDatabase.DefinitionStages.WithSampleDatabase" name: "SqlDatabase.DefinitionStages.WithSampleDatabase" nameWithType: "SqlDatabase.DefinitionStages.WithSampleDatabase" summary: "The SQL Database definition to set a sample database as the source database." syntax: "public static interface **SqlDatabase.DefinitionStages.WithSampleDatabase**" methods: - uid: "com.microsoft.azure.management.sql.SqlDatabase.DefinitionStages.WithSampleDatabase.fromSample(com.microsoft.azure.management.sql.SampleName)" fullName: "com.microsoft.azure.management.sql.SqlDatabase.DefinitionStages.WithSampleDatabase.fromSample(SampleName sampleName)" name: "fromSample(SampleName sampleName)" nameWithType: "SqlDatabase.DefinitionStages.WithSampleDatabase.fromSample(SampleName sampleName)" summary: "Creates a new database from a restore point." modifiers: - "abstract" parameters: - description: "the sample database to use as the source" name: "sampleName" type: "" syntax: "public abstract SqlDatabase.DefinitionStages.WithAttachAllOptions fromSample(SampleName sampleName)" desc: "Creates a new database from a restore point." 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 a sample database as the source database." metadata: {} package: "com.microsoft.azure.management.sql" artifact: com.microsoft.azure:azure-mgmt-sql:1.41.4