Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
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)

member RenameFolderOnSqlServer : 
        strParent:string * 
        strOldName:string * 
        strNewName:string * 
        strServerName:string * 
        strServerUserName:string * 
        strServerPassword:string -> unit


Type: String
The name of the parent folder.
Type: String
The name of the existing folder.
Type: String
The new name of the folder.
Type: String
The name of the instance of SQL Server.
Type: String
The user name to use when authenticating on the server.
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

© 2015 Microsoft