Application.ExistsOnDtsServer Method

Returns a Boolean that indicates whether the specified package already exists on the Integration Services service.

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

public:
bool ExistsOnDtsServer (
	String^ sPackagePath, 
	String^ sServerName
)
public boolean ExistsOnDtsServer (
	String sPackagePath, 
	String sServerName
)
public function ExistsOnDtsServer (
	sPackagePath : String, 
	sServerName : String
) : boolean

Parameters

sPackagePath

The fully qualified path of the package.

sServerName

The name of the server to search for the package.

Return Value

true if the package specified by sPackagePath exists on the server named by sServerName; otherwise, false.

The following code example shows a package being saved to the File System under the parent folder, myFolder2. The example then checks if the package was saved by querying using the ExistsOnDtsServer method.

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

Sample Output:

Folder exists? True

Package exists? True

Folder exists? False

Any public static (Shared in Microsoft Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Development Platforms

For a list of the supported platforms, see Hardware and Software Requirements for Installing SQL Server 2005.

Target Platforms

Community Additions

ADD
Show: