Export (0) Print
Expand All
0 out of 1 rated this helpful - Rate this topic

DacServices Class

SQL Server 2012

Provides operations to create and consume DAC packages represented by DacPackage instances.

System.Object
  Microsoft.SqlServer.Dac.DacServices

Namespace:  Microsoft.SqlServer.Dac
Assembly:  Microsoft.SqlServer.Dac (in Microsoft.SqlServer.Dac.dll)
public sealed class DacServices

The DacServices type exposes the following members.

  NameDescription
Public methodDacServices Initializes a new instance of the DacServices class that operates against the database specified by the supplied connection string.
Top
  NameDescription
Public methodDeploy Deploys the supplied package to a database.
Public methodEquals (Inherited from Object.)
Public methodExportBacpac(Stream, String, IEnumerable<Tuple<String, String>>, Nullable<CancellationToken>)Extracts schema and export data from a database into a "bacpac" package.
Public methodExportBacpac(String, String, IEnumerable<Tuple<String, String>>, Nullable<CancellationToken>)Extracts schema and export data from a database into a "bacpac" package.
Public methodExportBacpac(Stream, String, DacSchemaModelStorageType, IEnumerable<Tuple<String, String>>, Nullable<CancellationToken>)Extracts schema and export data from a database into a "bacpac" package.
Public methodExportBacpac(String, String, DacSchemaModelStorageType, IEnumerable<Tuple<String, String>>, Nullable<CancellationToken>)Extracts schema and export data from a database into a "bacpac" package.
Public methodExtract(Stream, String, String, Version, String, IEnumerable<Tuple<String, String>>, DacExtractOptions, Nullable<CancellationToken>)Extracts the schema from a database into a package.
Public methodExtract(String, String, String, Version, String, IEnumerable<Tuple<String, String>>, DacExtractOptions, Nullable<CancellationToken>)Extracts the schema from a database into a package.
Public methodStatic memberGenerateCreateScript(DacPackage, String, DacDeployOptions) Creates a Transact-SQL script that can be used to deploy the schema of the supplied DacPackage to a database.
Public methodStatic memberGenerateCreateScript(Stream, DacPackage, String, DacDeployOptions) Creates a Transact-SQL script that can be used to deploy the schema of the supplied DacPackage to a database.
Public methodStatic memberGenerateDeployReport(DacPackage, DacPackage, String, DacDeployOptions) Creates an XML report of the steps needed to deploy the differences between the schemas of the supplied source and target DacPackage instances to a database.
Public methodGenerateDeployReport(DacPackage, String, DacDeployOptions, Nullable<CancellationToken>) Creates an XML report of the steps needed to deploy the schema of the supplied DacPackage to a database.
Public methodStatic memberGenerateDeployReport(Stream, DacPackage, DacPackage, String, DacDeployOptions) Creates an XML report of the steps needed to deploy the differences between the schemas of the supplied source and target DacPackage instances to a database.
Public methodStatic memberGenerateDeployScript(DacPackage, DacPackage, String, DacDeployOptions) Creates a Transact-SQL script that can be used to deploy the differences between the schemas of the supplied source and target DacPackage instances to a database.
Public methodGenerateDeployScript(DacPackage, String, DacDeployOptions, Nullable<CancellationToken>) Creates a Transact-SQL script that can be used to deploy the schema of the supplied DacPackage to a database.
Public methodStatic memberGenerateDeployScript(Stream, DacPackage, DacPackage, String, DacDeployOptions) Creates a Transact-SQL script that can be used to deploy the differences between the schemas of the supplied source and target DacPackage instances to a database.
Public methodGenerateDriftReport(String, Nullable<CancellationToken>) Creates an XML report of the drift that has occurred since the database was last registered.
Public methodGenerateDriftReport(String, DacSchemaModelStorageType, Nullable<CancellationToken>)Creates an XML report of the drift that has occurred since the database was last registered.
Public methodGetHashCode (Inherited from Object.)
Public methodGetType (Inherited from Object.)
Public methodImportBacpac(BacPackage, String, Nullable<CancellationToken>) Deploys schema and import table data from the supplied package to a database.
Public methodImportBacpac(BacPackage, String, DacAzureDatabaseSpecification, Nullable<CancellationToken>)Deploys schema and import table data from the supplied package to a database.
Public methodRegister(String, String, Version, String) Adds DAC registration information for the specified target database.
Public methodRegister(String, DacSchemaModelStorageType, String, Version, String)Adds DAC registration information for the specified target database.
Public methodToString (Inherited from Object.)
Public methodUnregister Removes DAC registration information for the specified target database.
Top
  NameDescription
Public eventMessage Invoked when an operation reports status updates or errors.
Public eventProgressChanged Invoked when the state of an operation changes.
Top
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft. All rights reserved.