Quantcast
Viewing all articles
Browse latest Browse all 1997

SSIS 2012 -How To Get List of SSIS Packages With Folder Names From MSDB

Scenario:

A quick question sometime comes in our minds, How can I get the list of SSIS Packages those I have deployed to SQL Server with Folder Names?

Solution:

SQL Server 2012, provide two system tables in MSDB database those can be used to answer our question.
1.  [dbo].[sysssispackages]
2.  [dbo].[sysssispackagefolders]

Dbo.sysssispackages table will provide information about SSIS Package such as name, description,package createdate, foloderid (so we can join with sysssispackagefolders to get folder name) and other columns.

Dbo.sysssispackagefolder will provide us the folder name, folderid and parentfolderid. We can join above tables and get Packages with Folder information.

SELECTf.foldername            ASFolderName,
       p.name                  ASPackageName,
       p.description           AS[Description],
       P.createdate            ASPackageCreateDate,
       Suser_sname(p.ownersid)ASOwnerName,
       CASE
         WHENp.isencrypted= 0 THEN'N'
         ELSE'Y'
       END                     AS[IsEncrypted]
FROM   [dbo].[sysssispackages]p
       INNERJOIN[dbo].[sysssispackagefolders]f
               ONp.folderid=f.folderid




Viewing all articles
Browse latest Browse all 1997

Trending Articles