Compartir a través de


Clase DacServices

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

Jerarquía de herencia

System.Object
  Microsoft.SqlServer.Dac.DacServices

Espacio de nombres:  Microsoft.SqlServer.Dac
Ensamblado:  Microsoft.SqlServer.Dac (en Microsoft.SqlServer.Dac.dll)

Sintaxis

'Declaración
Public NotInheritable Class DacServices
'Uso
Dim instance As DacServices
public sealed class DacServices
public ref class DacServices sealed
[<SealedAttribute>]
type DacServices =  class end
public final class DacServices

El tipo DacServices expone los siguientes miembros.

Constructores

  Nombre Descripción
Método público DacServices Initializes a new instance of the DacServices class that operates against the database specified by the supplied connection string.

Arriba

Métodos

  Nombre Descripción
Método público Deploy Deploys the supplied package to a database.
Método público Equals (Se hereda de Object.)
Método público ExportBacpac(Stream, String, IEnumerable<Tuple<String, String>>, Nullable<CancellationToken>) Extracts schema and export data from a database into a "bacpac" package.
Método público ExportBacpac(String, String, IEnumerable<Tuple<String, String>>, Nullable<CancellationToken>) Extracts schema and export data from a database into a "bacpac" package.
Método público ExportBacpac(Stream, String, DacSchemaModelStorageType, IEnumerable<Tuple<String, String>>, Nullable<CancellationToken>) Extracts schema and export data from a database into a "bacpac" package.
Método público ExportBacpac(String, String, DacSchemaModelStorageType, IEnumerable<Tuple<String, String>>, Nullable<CancellationToken>) Extracts schema and export data from a database into a "bacpac" package.
Método público Extract(Stream, String, String, Version, String, IEnumerable<Tuple<String, String>>, DacExtractOptions, Nullable<CancellationToken>) Extracts the schema from a database into a package.
Método público Extract(String, String, String, Version, String, IEnumerable<Tuple<String, String>>, DacExtractOptions, Nullable<CancellationToken>) Extracts the schema from a database into a package.
Método públicoMiembro estático GenerateCreateScript(DacPackage, String, DacDeployOptions) Creates a Transact-SQL script that can be used to deploy the schema of the supplied DacPackage to a database.
Método públicoMiembro estático 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.
Método públicoMiembro estático 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.
Método público 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.
Método públicoMiembro estático 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.
Método públicoMiembro estático 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.
Método público 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.
Método públicoMiembro estático 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.
Método público GenerateDriftReport(String, Nullable<CancellationToken>) Creates an XML report of the drift that has occurred since the database was last registered.
Método público GenerateDriftReport(String, DacSchemaModelStorageType, Nullable<CancellationToken>) Creates an XML report of the drift that has occurred since the database was last registered.
Método público GetHashCode (Se hereda de Object.)
Método público GetType (Se hereda de Object.)
Método público ImportBacpac(BacPackage, String, Nullable<CancellationToken>) Deploys schema and import table data from the supplied package to a database.
Método público ImportBacpac(BacPackage, String, DacAzureDatabaseSpecification, Nullable<CancellationToken>) Deploys schema and import table data from the supplied package to a database.
Método público Register(String, String, Version, String) Adds DAC registration information for the specified target database.
Método público Register(String, DacSchemaModelStorageType, String, Version, String) Adds DAC registration information for the specified target database.
Método público ToString (Se hereda de Object.)
Método público Unregister Removes DAC registration information for the specified target database.

Arriba

Eventos

  Nombre Descripción
Evento público Message Invoked when an operation reports status updates or errors.
Evento público ProgressChanged Invoked when the state of an operation changes.

Arriba

Seguridad para subprocesos

Cualquier miembro público static (Shared en Visual Basic) de este tipo es seguro para subprocesos. No se garantiza que los miembros de instancia sean seguros para subprocesos.

Vea también

Referencia

Espacio de nombres Microsoft.SqlServer.Dac