views:

17

answers:

1

I have a legacy data-driven application with an extremely complicated data model (and hundreds of SQL stored procedures and functions with no clear delineation of responsibility) in SQL Server 2008.

We have both web app and reporting stored procedures and they are supposed to live side-by-side but there are examples where this rule wasn't properly respected. It's completely undocumented.

After some recent overhauling, there are several [maybe] deprecated stored procedures that can go, but due to the confusion in the data model, it's difficult to determine "who uses what".

I'd love to know if there's a tool or strategy available that can help me model the dependencies of each of the stored procedures and functions in the database (since there are multiple layers calling one another).

To determine the dependencies manually is simply too much work - there are several hundred stored procedures alone, and nearly as many functions.

Is anyone aware of a solution that can crawl through the dependencies and provide an organized (or even graphical) visualization of these objects?

Thanks!

+1  A: 

I use EMS SQL Manager Lite (free) for that (and more than that). When you open a stored proc/function, there's a Dependencies tab that shows what you want.

GSerg
OMG Ponies
Thanks both of you. I'm trying out the EMS tool and it's quite neat. I like the additional feedback over SQL Server Management Studio (which doesn't want to tell you why it's not responding).The dependency view in both tools is more or less what I need (I like that it can recursively go as far as it needs to). I was hoping for an automated solution that would comb through all of the objects but I've seen nothing from a lot of Googling to indicate that's something people ever have to do.
Stefan Mohr
Red-gate also have a nice tool but it isn't free: Dependency Tracker
adolf garlic