DacServices.ExportBacpac Method (String, String, DacSchemaModelStorageType, IEnumerable<Tuple>, Boolean)

Exports a package containing the schema and table data of a database.

Namespace:  Microsoft.SqlServer.Dac
Assembly:  Microsoft.SqlServer.Dac (in Microsoft.SqlServer.Dac.dll)

Syntax

'Declaration
Public Sub ExportBacpac ( _
    packageFileName As String, _
    databaseName As String, _
    modelStorageType As DacSchemaModelStorageType, _
    tables As IEnumerable(Of Tuple), _
    cancellationToken As Boolean _
)
'Usage
Dim instance As DacServices
Dim packageFileName As String
Dim databaseName As String
Dim modelStorageType As DacSchemaModelStorageType
Dim tables As IEnumerable(Of Tuple)
Dim cancellationToken As Boolean

instance.ExportBacpac(packageFileName, _
    databaseName, modelStorageType, _
    tables, cancellationToken)
public void ExportBacpac(
    string packageFileName,
    string databaseName,
    DacSchemaModelStorageType modelStorageType,
    IEnumerable<Tuple> tables,
    bool cancellationToken
)
public:
void ExportBacpac(
    String^ packageFileName, 
    String^ databaseName, 
    DacSchemaModelStorageType modelStorageType, 
    IEnumerable<Tuple^>^ tables, 
    bool cancellationToken
)
member ExportBacpac : 
        packageFileName:string * 
        databaseName:string * 
        modelStorageType:DacSchemaModelStorageType * 
        tables:IEnumerable<Tuple> * 
        cancellationToken:bool -> unit 
public function ExportBacpac(
    packageFileName : String, 
    databaseName : String, 
    modelStorageType : DacSchemaModelStorageType, 
    tables : IEnumerable<Tuple>, 
    cancellationToken : boolean
)

Parameters

  • packageFileName
    Type: System.String
    The file name of the exported package.
  • databaseName
    Type: System.String
    The name of the source database.
  • cancellationToken
    Type: System.Boolean
    The notification that operations should be canceled.

See Also

Reference

DacServices Class

ExportBacpac Overload

Microsoft.SqlServer.Dac Namespace