Application.SaveToDtsServer Method (Package, IDTSEvents, String, String)

 

Saves a package to the file system.

Namespace:   Microsoft.SqlServer.Dts.Runtime
Assembly:  Microsoft.SqlServer.ManagedDTS (in Microsoft.SqlServer.ManagedDTS.dll)

member SaveToDtsServer : 
        pPackage:Package *
        pEvents:IDTSEvents *
        sPackagePath:string *
        sServerName:string -> unit

Parameters

pPackage
Type: Microsoft.SqlServer.Dts.Runtime.Package

The package to save.

pEvents
Type: Microsoft.SqlServer.Dts.Runtime.IDTSEvents

An IDTSEvents object.

sPackagePath
Type: System.String

The name to give the package when saved. You can preface the name with a path. For example, to save a package with the name myPackage to the File System folder, the parameter would be @"File System\myPackage".

sServerName
Type: System.String

The name of the server to save the package to.

The following code example shows a package being saved to the File System folder, with a name of myFolder2. The example then checks if the package was saved by calling the ExistsOnDtsServer method.

No code example is currently available or this language may not be supported.

Sample Output:

Package exists? True

Return to top
Show: