Export (0) Print
Expand All

Application.RenameFolderOnDtsServer Method

Renames a folder on the specified instance of SQL Server.

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

public function RenameFolderOnDtsServer(
	sParent : String, 
	sOldName : String, 
	sNewName : String, 
	sServerName : String
)

Parameters

sParent
Type: System.String
The name of the parent folder.
sOldName
Type: System.String
The name of the existing folder.
sNewName
Type: System.String
The new name of the folder.
sServerName
Type: System.String
The name of the server where the folder is located.

The following code example creates a folder within the Integration Services services hierarchy, verifies that the folder has been created, renames it, verifies that the old name is still recognized as a folder, and then verifies whether the new folder name is found.

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

Sample Output:

Folder exists? True

Old, renamed folder exists? False

New folder exists? True

Community Additions

ADD
Show:
© 2014 Microsoft