Export (0) Print
Expand All

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)

void CreateFolderOnSqlServer (
	String^ strParent, 
	String^ strNewFolderName, 
	String^ strServerName, 
	String^ strServerUserName, 
	String^ strServerPassword
public void CreateFolderOnSqlServer (
	String strParent, 
	String strNewFolderName, 
	String strServerName, 
	String strServerUserName, 
	String strServerPassword
public function CreateFolderOnSqlServer (
	strParent : String, 
	strNewFolderName : String, 
	strServerName : String, 
	strServerUserName : String, 
	strServerPassword : String



The name of the parent folder. If you want to create a folder under the File System node, use the CreateFolderOnDtsServer method.


The name of the folder to create.


The name of the instance of SQL Server.


The user name to use when authenticating on the server.


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 sysdtspackagefolders90

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 sysdtspackagefolders90 table in the SQL Servermsdb database.

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

Any public static (Shared in Microsoft Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Development Platforms

For a list of the supported platforms, see Hardware and Software Requirements for Installing SQL Server 2005.

Target Platforms

Community Additions

© 2014 Microsoft