Export (0) Print
Expand All

Application::RenameFolderOnSqlServer 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:
void RenameFolderOnSqlServer(
	String^ strParent, 
	String^ strOldName, 
	String^ strNewName, 
	String^ strServerName, 
	String^ strServerUserName, 
	String^ strServerPassword
)

Parameters

strParent
Type: String
The name of the parent folder.
strOldName
Type: String
The name of the existing folder.
strNewName
Type: String
The new name of the folder.
strServerName
Type: String
The name of the instance of SQL Server.
strServerUserName
Type: String
The user name to use when authenticating on the server.
strServerPassword
Type: String
The password associated with the strServerUserName account.

The following code example creates a folder on SQL Server, renames it, and then removes it.

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

Sample Output:

myNewFolderExists? True

myNewFolderExists has been renamed but still exists? False

myRenamedFolder now exists? True

myRenamedFolder still exists? False

Community Additions

ADD
Show:
© 2014 Microsoft