sumek
sumek

Reputation: 28202

stored procedure structure

I've inherited a legacy system with lots (160+) of stored procedures. I'm looking for a way to create a diagram that would

Is there a tool that does this? Or would help me to perform the task?

Upvotes: 2

Views: 596

Answers (3)

miPwn
miPwn

Reputation: 1166

I would add some rudimentary logging to your procedures and create logs of procedure utilisation by business process.

So if your app manages fruit sales POS.

Buy and orange. Save Log

Buy an Apple. Save log.

Etc...

This way you find out not only which are used but when and with what.

Upvotes: 0

Adam Robinson
Adam Robinson

Reputation: 185683

Red Gate's SQL Dependency Tracker can handle your first item.

As for your second item, your only real option there is doing a Find In Files (control-shift-F by default) and searching your solution for that stored procedure name. You'll have to do your own analysis as to where that string actually gets used, though.

For the third, there are no tools that I'm aware of that can produce such a broad overview.

Upvotes: 2

Fabio Vinicius Binder
Fabio Vinicius Binder

Reputation: 13214

DBScribe and DOxygen may help you.

Upvotes: 1

Related Questions