DacServices Class
SQL Server 2012
Provides operations to create and consume DAC packages represented by DacPackage instances.
Namespace: Microsoft.SqlServer.Dac
Assembly: Microsoft.SqlServer.Dac (in Microsoft.SqlServer.Dac.dll)
The DacServices type exposes the following members.
| Name | Description | |
|---|---|---|
![]() | DacServices | Creates a new instance of the DacServices class that operates against the database specified by the supplied connection string. |
| Name | Description | |
|---|---|---|
![]() | Deploy | Deploys the supplied package to a database. |
![]() | Equals | (Inherited from Object.) |
![]() | ExportBacpac(Stream, String, IEnumerable<Tuple<T1, T2>>, Boolean) | Exports a package containing the schema and table data of a database. |
![]() | ExportBacpac(String, String, IEnumerable<Tuple<T1, T2>>, Boolean) | Exports a package containing the schema and table data of a database. |
![]() | ExportBacpac(Stream, String, DacSchemaModelStorageType, IEnumerable<Tuple<T1, T2>>, Boolean) | Exports a package containing the schema and table data of a database. |
![]() | ExportBacpac(String, String, DacSchemaModelStorageType, IEnumerable<Tuple<T1, T2>>, Boolean) | Exports a package containing the schema and table data of a database. |
![]() | Extract(Stream, String, String, Version, String, IEnumerable<Tuple<T1, T2>>, Boolean, String) | Extracts a package containing the schema of a database. |
![]() | Extract(String, String, String, Version, String, IEnumerable<Tuple<T1, T2>>, Boolean, String) | Extracts a package containing the schema of a database. |
![]() | Finalize | (Inherited from Object.) |
![]() ![]() | GenerateCreateScript(DacPackage, String, DacDeployOptions) | Creates a Transact-SQL script that can be used to deploy the schema of the supplied DacPackage to a database. |
![]() ![]() | GenerateCreateScript(Stream, DacPackage, String, DacDeployOptions) | Creates a Transact-SQL script that can be used to deploy the schema of the supplied DacPackage to a database. |
![]() ![]() | GenerateDeployReport(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. |
![]() | GenerateDeployReport(DacPackage, String, DacDeployOptions, Nullable<CancellationToken>) | Creates an XML report of the steps needed to deploy the schema of the supplied DacPackage to a database. |
![]() ![]() | GenerateDeployReport(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. |
![]() ![]() | GenerateDeployScript(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. |
![]() | GenerateDeployScript(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. |
![]() ![]() | GenerateDeployScript(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. |
![]() | GenerateDriftReport(String, Nullable<CancellationToken>) | Creates an XML report of the drift that has occurred since the database was last registered. |
![]() | GenerateDriftReport(String, DacSchemaModelStorageType, Nullable<CancellationToken>) | Creates an XML report of the drift that has occurred since the database was last registered. |
![]() | GetHashCode | (Inherited from Object.) |
![]() | GetType | (Inherited from Object.) |
![]() | ImportBacpac | Deploys schema and import table data from the supplied package to a database. |
![]() | MemberwiseClone | (Inherited from Object.) |
![]() | Register(String, String, Version, String) | Adds DAC registration information for the specified target database. |
![]() | Register(String, DacSchemaModelStorageType, String, Version, String) | Adds DAC registration information for the specified target database. |
![]() | ToString | (Inherited from Object.) |
![]() | Unregister | Removes DAC registration information for the specified target database. |
| Name | Description | |
|---|---|---|
![]() | Message | Invoked when an operation reports status updates or errors. |
![]() | ProgressChanged | Invoked when the state of an operation changes. |

