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 | |
---|---|---|
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 | |
---|---|---|
Deploy | Deploys the supplied package to a database. | |
Equals | (Se hereda de Object.) | |
ExportBacpac(Stream, String, IEnumerable<Tuple<String, String>>, Nullable<CancellationToken>) | Extracts schema and export data from a database into a "bacpac" package. | |
ExportBacpac(String, String, IEnumerable<Tuple<String, String>>, Nullable<CancellationToken>) | Extracts schema and export data from a database into a "bacpac" package. | |
ExportBacpac(Stream, String, DacSchemaModelStorageType, IEnumerable<Tuple<String, String>>, Nullable<CancellationToken>) | Extracts schema and export data from a database into a "bacpac" package. | |
ExportBacpac(String, String, DacSchemaModelStorageType, IEnumerable<Tuple<String, String>>, Nullable<CancellationToken>) | Extracts schema and export data from a database into a "bacpac" package. | |
Extract(Stream, String, String, Version, String, IEnumerable<Tuple<String, String>>, DacExtractOptions, Nullable<CancellationToken>) | Extracts the schema from a database into a package. | |
Extract(String, String, String, Version, String, IEnumerable<Tuple<String, String>>, DacExtractOptions, Nullable<CancellationToken>) | Extracts the schema from a database into a package. | |
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 | (Se hereda de Object.) | |
GetType | (Se hereda de Object.) | |
ImportBacpac(BacPackage, String, Nullable<CancellationToken>) | Deploys schema and import table data from the supplied package to a database. | |
ImportBacpac(BacPackage, String, DacAzureDatabaseSpecification, Nullable<CancellationToken>) | Deploys schema and import table data from the supplied package to a database. | |
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 | (Se hereda de Object.) | |
Unregister | Removes DAC registration information for the specified target database. |
Arriba
Eventos
Nombre | Descripción | |
---|---|---|
Message | Invoked when an operation reports status updates or errors. | |
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.