Skip to content

GaborAtTheShed/SsisXmlExtractor

Repository files navigation

SsisXmlExtractor

To match the SSIS objects to actual SQL objects, you'll need to populate a sql_objects.txt file and put it in the execution directory (along with the SSIS dtsx packages you want to get analysed).

sql_objects.txt requirements: Make sure there are no headers and that the file is tab-delimited (default if you just copy out results from a SQL server results table).

SET NOCOUNT ON;

SELECT all_tables.name
		 , all_tables.type_desc
		 , all_tables.db
FROM
(
SELECT name, type_desc, 'db1' AS db FROM db1.sys.objects
WHERE type IN	('U', 'V', 'P')

UNION ALL

SELECT name, type_desc, 'db2' AS db FROM db2.sys.objects
WHERE type IN	('U', 'V', 'P')

-- more UNION ALL tables etc.

) as all_tables
ORDER BY all_tables.type_desc, all_tables.name

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages