This week only. Pastebin PRO Accounts Christmas Special! Don't miss out!Want more features on Pastebin? Sign Up, it's FREE!
Guest

In SQLServer is there a DMV to get the dependencies of an object

By: a guest on Feb 26th, 2012  |  syntax: None  |  size: 0.18 KB  |  views: 22  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. QUOTENAME(S.name) + N'.' + QUOTENAME(O.name) AS ReferencedObject,
  2.  
  3. SED.referenced_server_name, SED.referenced_database_name,
  4.  
  5. SED.referenced_schema_name, SED.referenced_entity_name
clone this paste RAW Paste Data