Application::RemoveFolderFromSqlServer Method (String^, String^, String^, String^)

 

Removes the specified folder from the specified instance of SQL Server.

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

public:
void RemoveFolderFromSqlServer(
	String^ strFolderName,
	String^ strServerName,
	String^ strServerUserName,
	String^ strServerPassword
)

Parameters

strFolderName
Type: System::String^

The name of the folder to delete.

strServerName
Type: System::String^

The name of the instance of SQL Server to remove the folder from.

strServerUserName
Type: System::String^

The user name to authenticate against the instance of SQL Server.

strServerPassword
Type: System::String^

The password for the specified strServerUserName.

The following code example creates a folder on SQL Server, renames it, and then removes it by using RemoveFolderFromSqlServer. It also verifies the existence of the folder several times by using FolderExistsOnSqlServer.

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

Return to top
Show: