Partager via


Classe DacServices

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

Hiérarchie d'héritage

System.Object
  Microsoft.SqlServer.Dac.DacServices

Espace de noms :  Microsoft.SqlServer.Dac
Assembly :  Microsoft.SqlServer.Dac (en Microsoft.SqlServer.Dac.dll)

Syntaxe

'Déclaration
Public NotInheritable Class DacServices
'Utilisation
Dim instance As DacServices
public sealed class DacServices
public ref class DacServices sealed
[<SealedAttribute>]
type DacServices =  class end
public final class DacServices

Le type DacServices expose les membres suivants.

Constructeurs

  Nom Description
Méthode publique DacServices Initializes a new instance of the DacServices class that operates against the database specified by the supplied connection string.

Haut de la page

Méthodes

  Nom Description
Méthode publique Deploy Deploys the supplied package to a database.
Méthode publique Equals (hérité de Object.)
Méthode publique ExportBacpac(Stream, String, IEnumerable<Tuple<String, String>>, Nullable<CancellationToken>) Extracts schema and export data from a database into a "bacpac" package.
Méthode publique ExportBacpac(String, String, IEnumerable<Tuple<String, String>>, Nullable<CancellationToken>) Extracts schema and export data from a database into a "bacpac" package.
Méthode publique ExportBacpac(Stream, String, DacSchemaModelStorageType, IEnumerable<Tuple<String, String>>, Nullable<CancellationToken>) Extracts schema and export data from a database into a "bacpac" package.
Méthode publique ExportBacpac(String, String, DacSchemaModelStorageType, IEnumerable<Tuple<String, String>>, Nullable<CancellationToken>) Extracts schema and export data from a database into a "bacpac" package.
Méthode publique Extract(Stream, String, String, Version, String, IEnumerable<Tuple<String, String>>, DacExtractOptions, Nullable<CancellationToken>) Extracts the schema from a database into a package.
Méthode publique Extract(String, String, String, Version, String, IEnumerable<Tuple<String, String>>, DacExtractOptions, Nullable<CancellationToken>) Extracts the schema from a database into a package.
Méthode publiqueMembre statique 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éthode publiqueMembre statique 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éthode publiqueMembre statique 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éthode publique 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éthode publiqueMembre statique 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éthode publiqueMembre statique 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éthode publique 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éthode publiqueMembre statique 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éthode publique GenerateDriftReport(String, Nullable<CancellationToken>) Creates an XML report of the drift that has occurred since the database was last registered.
Méthode publique GenerateDriftReport(String, DacSchemaModelStorageType, Nullable<CancellationToken>) Creates an XML report of the drift that has occurred since the database was last registered.
Méthode publique GetHashCode (hérité de Object.)
Méthode publique GetType (hérité de Object.)
Méthode publique ImportBacpac(BacPackage, String, Nullable<CancellationToken>) Deploys schema and import table data from the supplied package to a database.
Méthode publique ImportBacpac(BacPackage, String, DacAzureDatabaseSpecification, Nullable<CancellationToken>) Deploys schema and import table data from the supplied package to a database.
Méthode publique Register(String, String, Version, String) Adds DAC registration information for the specified target database.
Méthode publique Register(String, DacSchemaModelStorageType, String, Version, String) Adds DAC registration information for the specified target database.
Méthode publique ToString (hérité de Object.)
Méthode publique Unregister Removes DAC registration information for the specified target database.

Haut de la page

Événements

  Nom Description
Événement public Message Invoked when an operation reports status updates or errors.
Événement public ProgressChanged Invoked when the state of an operation changes.

Haut de la page

Sécurité des threads

Tous les membres publics static (Shared dans Visual Basic) de ce type sont thread-safe. Tous les membres de l'instance ne sont pas garantis comme étant thread-safe.

Voir aussi

Référence

Espace de noms Microsoft.SqlServer.Dac