DacPackageExtensions.BuildPackage Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
BuildPackage(Stream, TSqlModel, PackageMetadata) |
Creates a package with the specified TSqlModel and saves it to the specified Stream. |
BuildPackage(String, TSqlModel, PackageMetadata) |
Creates a package with the specified TSqlModel and saves it to the specified location. |
BuildPackage(Stream, TSqlModel, PackageMetadata, PackageOptions) |
Creates a package with the specified TSqlModel and saves it to the specified Stream.
In addition to the TSqlModel, other artifacts such as refactor log and deployment contributors can be specified in |
BuildPackage(String, TSqlModel, PackageMetadata, PackageOptions) |
Creates a package with the specified TSqlModel and saves it to the specified location.
In addition to the TSqlModel, other artifacts such as refactor log and deployment contributors can be specified in |
BuildPackage(Stream, TSqlModel, PackageMetadata)
public static void BuildPackage (System.IO.Stream stream, Microsoft.SqlServer.Dac.Model.TSqlModel model, Microsoft.SqlServer.Dac.PackageMetadata packageMetadata);
static member BuildPackage : System.IO.Stream * Microsoft.SqlServer.Dac.Model.TSqlModel * Microsoft.SqlServer.Dac.PackageMetadata -> unit
Public Sub BuildPackage (stream As Stream, model As TSqlModel, packageMetadata As PackageMetadata)
Parameters
- packageMetadata
- PackageMetadata
Metadata information that describes the package.
Exceptions
If there are any errors during package serialization, including errors validating the model.
If the stream
or model
parameters are null.
Applies to
BuildPackage(String, TSqlModel, PackageMetadata)
Creates a package with the specified TSqlModel and saves it to the specified location.
public static void BuildPackage (string packageFilePath, Microsoft.SqlServer.Dac.Model.TSqlModel model, Microsoft.SqlServer.Dac.PackageMetadata packageMetadata);
static member BuildPackage : string * Microsoft.SqlServer.Dac.Model.TSqlModel * Microsoft.SqlServer.Dac.PackageMetadata -> unit
Public Sub BuildPackage (packageFilePath As String, model As TSqlModel, packageMetadata As PackageMetadata)
Parameters
- packageFilePath
- String
Path to the package file.
- packageMetadata
- PackageMetadata
Metadata information that describes the package.
Exceptions
If there are any errors during package serialization, including errors validating the model.
If the packageFilePath
or model
parameters are null.
Applies to
BuildPackage(Stream, TSqlModel, PackageMetadata, PackageOptions)
public static void BuildPackage (System.IO.Stream stream, Microsoft.SqlServer.Dac.Model.TSqlModel model, Microsoft.SqlServer.Dac.PackageMetadata packageMetadata, Microsoft.SqlServer.Dac.PackageOptions packageOptions);
static member BuildPackage : System.IO.Stream * Microsoft.SqlServer.Dac.Model.TSqlModel * Microsoft.SqlServer.Dac.PackageMetadata * Microsoft.SqlServer.Dac.PackageOptions -> unit
Public Sub BuildPackage (stream As Stream, model As TSqlModel, packageMetadata As PackageMetadata, packageOptions As PackageOptions)
Parameters
- packageMetadata
- PackageMetadata
Metadata information that describes the package.
- packageOptions
- PackageOptions
PackageOptions defining advanced options and additional artifacts.
Exceptions
If there are any errors during package serialization, including errors validating the model.
If the stream
or model
parameters are null.
Applies to
BuildPackage(String, TSqlModel, PackageMetadata, PackageOptions)
public static void BuildPackage (string packageFilePath, Microsoft.SqlServer.Dac.Model.TSqlModel model, Microsoft.SqlServer.Dac.PackageMetadata packageMetadata, Microsoft.SqlServer.Dac.PackageOptions packageOptions);
static member BuildPackage : string * Microsoft.SqlServer.Dac.Model.TSqlModel * Microsoft.SqlServer.Dac.PackageMetadata * Microsoft.SqlServer.Dac.PackageOptions -> unit
Public Sub BuildPackage (packageFilePath As String, model As TSqlModel, packageMetadata As PackageMetadata, packageOptions As PackageOptions)
Parameters
- packageFilePath
- String
Path to the package file.
- packageMetadata
- PackageMetadata
Metadata information that describes the package.
- packageOptions
- PackageOptions
PackageOptions defining advanced options and additional artifacts.
Exceptions
If there are any errors during package serialization, including errors validating the model.
If the packageFilePath
or model
parameters are null.