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

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)
member CreateFolderOnSqlServer : 
        strParent:string * 
        strNewFolderName:string * 
        strServerName:string * 
        strServerUserName:string * 
        strServerPassword:string -> unit 

Parameters

strParent
Type: System.String
The name of the parent folder. If you want to create a folder under the File System node, use the CreateFolderOnDtsServer method.
strNewFolderName
Type: System.String
The name of the folder to create.
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, a null reference (Nothing in Visual Basic) 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, a null reference (Nothing in Visual Basic) if you use Windows Authentication.

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.
Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft. All rights reserved.