IDacCompatibilityService.SetSqlPackagePathToUse Method
Sets a specific path to a SqlPackage.exe file. This will be used instead of the standard best match found by querying the registry for installed DacFx locations on disk.
Namespace: Microsoft.SqlServer.Dac.Compatibility
Assembly: Microsoft.SqlServer.Dac.Compatibility (in Microsoft.SqlServer.Dac.Compatibility.dll)
Syntax
'Declaration
Sub SetSqlPackagePathToUse ( _
path As String _
)
'Usage
Dim instance As IDacCompatibilityService
Dim path As String
instance.SetSqlPackagePathToUse(path)
void SetSqlPackagePathToUse(
string path
)
void SetSqlPackagePathToUse(
String^ path
)
abstract SetSqlPackagePathToUse :
path:string -> unit
function SetSqlPackagePathToUse(
path : String
)
Parameters
- path
Type: String
The path to the SqlPackage.exe file
Exceptions
Exception | Condition |
---|---|
ArgumentNullException | If the path specified is null |
ArgumentException | If the path does not specify a valid assembly file on disk |