This article is half-done without your Comment! *** Please share your thoughts via Comment ***
In this post, I am sharing a TSQL script to find the list of uncontained objects of a Database of SQL Server.
SQL Server 2012 introduced a new concept of partial, contained databases to access few elements from outside its boundary.
As per the MSDN official document, uncontained objects are those objects that cross the database boundaries in a contained database.
Below is a TSQL script:
1 2 3 4 5 6 7 8 9 10 11 |
SELECT O.name ,O.type_desc ,DDUE.class_desc ,DDUE.statement_line_number ,DDUE.statement_type ,DDUE.feature_name ,DDUE.feature_type_name FROM sys.dm_db_uncontained_entities AS DDUE LEFT JOIN sys.objects AS O ON DDUE.major_id = O.object_id |