July 7, 2015 at 1:09 pm
Hi, Can you recommend any SQL that can be used to identify all objects that depend on a particular table? For example, sprocs, functions, views, etc.
July 7, 2015 at 1:40 pm
Are you looking for something like this?
EXEC sp_depends 'Schema.Object'
July 7, 2015 at 7:49 pm
You can also query sys.sydepends for more information. This is nice since you can join to it in SQL statements, unlike a stored procedure. There's more info at:
July 7, 2015 at 8:00 pm
mtlsql (7/7/2015)
https://msdn.microsoft.com/en-us/library/ms190325.aspx%5B/quote%5D
Which is exactly what sp_depends does as you can check by using sp_helptext.
Viewing 4 posts - 1 through 3 (of 3 total)
You must be logged in to reply to this topic. Login to reply