Export (0) Print
Expand All
This topic has not yet been rated - Rate this topic

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: System::String
The name of the parent folder.
strOldName
Type: System::String
The name of the existing folder.
strNewName
Type: System::String
The new name of the folder.
strServerName
Type: System::String
The name of the instance of SQL Server.
strServerUserName
Type: System::String
The SQL Server login name if you use SQL Server Authentication to log into the server; otherwise, nullptr if you use Windows Authentication.
strServerPassword
Type: System::String
The SQL Server login password if you use SQL Server Authentication to log into the server; otherwise, nullptr if you use Windows Authentication.

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

Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft. All rights reserved.