Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
MSDN Library

Application.CreateFolderOnSqlServer Method

Creates 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 CreateFolderOnSqlServer(
	strParent : String, 
	strNewFolderName : String, 
	strServerName : String, 
	strServerUserName : String, 
	strServerPassword : String


Type: String
The name of the parent folder. If you want to create a folder under the File System node, use the CreateFolderOnDtsServer method.
Type: String
The name of the folder to create.
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.

To verify that the folder was created, use the following Transact-SQL query, which selects all packages stored in the File System folder.

select * from sysssispackagefolders

Or, connect to the Integration Services server, expand Stored Packages, and then expand MSDB. The new folder that has the name given in strNewFolderName will be listed.

The following code example shows how to create a new folder named myNewFolder. The folder is stored in the sysssispackagefolders table in the SQL Server msdb database.

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

Community Additions

© 2015 Microsoft