In this post, I am providing one TSQL script to find all list of system object which are related to particular File Table of SQL Server 2012.
When we create File Table, it is also required to file all related objects for it.
SQL Server 2012 also introduced one new system view sys.filetable_system_defined_objects to find all system objects which are related to File Table.
Below is a script using sys.filetable_system_defined_objects :
DECLARE @FileTableName VARCHAR(50)
OBJECT_NAME(parent_object_id) AS FileTableName
,OBJECT_NAME(object_id) AS AllRelatedObjects
WHERE parent_object_id = object_id(@FileTableName)
Please share your ideas and opinions about this topic with me, your contribution will add true value to this topic.
If anyone has doubts on this topic then please do let me know by leaving comments or send me an email.
If you like this post, then please share it with others.
Please follow dbrnd.com, I will share my experience towards the success of Database Research and Development Activity.
I put up a post every day, please keep reading and learning.
Discover Yourself, Happy Blogging !
Anvesh M. Patel.