Quantcast
Channel: Forum Getting started with SQL Server
Viewing all articles
Browse latest Browse all 7129

Finding foreign keys of a child table,grandchild and all dependendents

$
0
0

Hi All,

I just came up with this sceanrio

I have to delete a record in a parent table with a condition provided will have to find all the child tables depends on it and should recursively find all the dependents of the child table.

How to achieve this.Please help with a query or guide.Thanks in advance


Viewing all articles
Browse latest Browse all 7129

Trending Articles