Freigeben über


DacServices-Klasse

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

Vererbungshierarchie

System.Object
  Microsoft.SqlServer.Dac.DacServices

Namespace:  Microsoft.SqlServer.Dac
Assembly:  Microsoft.SqlServer.Dac (in Microsoft.SqlServer.Dac.dll)

Syntax

'Declaration
Public NotInheritable Class DacServices
'Usage
Dim instance As DacServices
public sealed class DacServices
public ref class DacServices sealed
[<SealedAttribute>]
type DacServices =  class end
public final class DacServices

Der DacServices-Typ macht folgende Elemente verfügbar.

Konstruktoren

  Name Beschreibung
Öffentliche Methode DacServices Initializes a new instance of the DacServices class that operates against the database specified by the supplied connection string.

Zum Anfang

Methoden

  Name Beschreibung
Öffentliche Methode Deploy Deploys the supplied package to a database.
Öffentliche Methode Equals (Geerbt von Object.)
Öffentliche Methode ExportBacpac(Stream, String, IEnumerable<Tuple<String, String>>, Nullable<CancellationToken>) Extracts schema and export data from a database into a "bacpac" package.
Öffentliche Methode ExportBacpac(String, String, IEnumerable<Tuple<String, String>>, Nullable<CancellationToken>) Extracts schema and export data from a database into a "bacpac" package.
Öffentliche Methode ExportBacpac(Stream, String, DacSchemaModelStorageType, IEnumerable<Tuple<String, String>>, Nullable<CancellationToken>) Extracts schema and export data from a database into a "bacpac" package.
Öffentliche Methode ExportBacpac(String, String, DacSchemaModelStorageType, IEnumerable<Tuple<String, String>>, Nullable<CancellationToken>) Extracts schema and export data from a database into a "bacpac" package.
Öffentliche Methode Extract(Stream, String, String, Version, String, IEnumerable<Tuple<String, String>>, DacExtractOptions, Nullable<CancellationToken>) Extracts the schema from a database into a package.
Öffentliche Methode Extract(String, String, String, Version, String, IEnumerable<Tuple<String, String>>, DacExtractOptions, Nullable<CancellationToken>) Extracts the schema from a database into a package.
Öffentliche MethodeStatisches Element GenerateCreateScript(DacPackage, String, DacDeployOptions) Creates a Transact-SQL script that can be used to deploy the schema of the supplied DacPackage to a database.
Öffentliche MethodeStatisches Element 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.
Öffentliche MethodeStatisches Element 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.
Öffentliche Methode 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.
Öffentliche MethodeStatisches Element 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.
Öffentliche MethodeStatisches Element 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.
Öffentliche Methode 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.
Öffentliche MethodeStatisches Element 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.
Öffentliche Methode GenerateDriftReport(String, Nullable<CancellationToken>) Creates an XML report of the drift that has occurred since the database was last registered.
Öffentliche Methode GenerateDriftReport(String, DacSchemaModelStorageType, Nullable<CancellationToken>) Creates an XML report of the drift that has occurred since the database was last registered.
Öffentliche Methode GetHashCode (Geerbt von Object.)
Öffentliche Methode GetType (Geerbt von Object.)
Öffentliche Methode ImportBacpac(BacPackage, String, Nullable<CancellationToken>) Deploys schema and import table data from the supplied package to a database.
Öffentliche Methode ImportBacpac(BacPackage, String, DacAzureDatabaseSpecification, Nullable<CancellationToken>) Deploys schema and import table data from the supplied package to a database.
Öffentliche Methode Register(String, String, Version, String) Adds DAC registration information for the specified target database.
Öffentliche Methode Register(String, DacSchemaModelStorageType, String, Version, String) Adds DAC registration information for the specified target database.
Öffentliche Methode ToString (Geerbt von Object.)
Öffentliche Methode Unregister Removes DAC registration information for the specified target database.

Zum Anfang

Ereignisse

  Name Beschreibung
Öffentliches Ereignis Message Invoked when an operation reports status updates or errors.
Öffentliches Ereignis ProgressChanged Invoked when the state of an operation changes.

Zum Anfang

Threadsicherheit

Alle öffentlichen static (Shared in Visual Basic)-Elemente dieses Typs sind Threadsicher. Für Instanzelemente wird die Threadsicherheit nicht gewährleistet.

Siehe auch

Verweis

Microsoft.SqlServer.Dac-Namespace