Yes please – I am using Assets to help me figure out MS SQL database dependencies. I've created objects in Assets representing every table, view, synonym, stored procedure, etc, and then linked each object in Assets to the other objects it depends on. My goal is to be able to determine if I retired database X, which objects in other databases will be impacted.
However, I'm having to do manual recursion like in the original ticket and guess at how many levels deep I need to go. For example, when I did the query below, increasing the number of levels deep I searched each time, I found that 1 or 2 levels returned 7 objects, while 3, 4, and 5 levels each returned 8 objects. So it would seem that I'm safe to only check 3 levels deep... but what if there's something 6 levels deep that I didn't detect yet? So deeper I go until I'm absolutely sure I'm safe.
objectType = "SQL Job"
and
(
object having outR("Parent SQL Database" = FireWeather)
OR object having outR(object having outR("Parent SQL Database" = FireWeather))
OR object having outR(object having outR(object having outR("Parent SQL Database" = FireWeather)))
OR object having outR(object having outR(object having outR(object having outR("Parent SQL Database" = FireWeather))))
OR object having outR(object having outR(object having outR(object having outR(object having outR("Parent SQL Database" = FireWeather)))))
)
Yes please – I am using Assets to help me figure out MS SQL database dependencies. I've created objects in Assets representing every table, view, synonym, stored procedure, etc, and then linked each object in Assets to the other objects it depends on. My goal is to be able to determine if I retired database X, which objects in other databases will be impacted.
However, I'm having to do manual recursion like in the original ticket and guess at how many levels deep I need to go. For example, when I did the query below, increasing the number of levels deep I searched each time, I found that 1 or 2 levels returned 7 objects, while 3, 4, and 5 levels each returned 8 objects. So it would seem that I'm safe to only check 3 levels deep... but what if there's something 6 levels deep that I didn't detect yet? So deeper I go until I'm absolutely sure I'm safe.
objectType = "SQL Job"
and
(
object having outR("Parent SQL Database" = FireWeather)
OR object having outR(object having outR("Parent SQL Database" = FireWeather))
OR object having outR(object having outR(object having outR("Parent SQL Database" = FireWeather)))
OR object having outR(object having outR(object having outR(object having outR("Parent SQL Database" = FireWeather))))
OR object having outR(object having outR(object having outR(object having outR(object having outR("Parent SQL Database" = FireWeather)))))
)