Book a Demo

Author Topic: How can i diagram stored procedure?  (Read 9657 times)

rezaTech

  • EA User
  • **
  • Posts: 21
  • Karma: +0/-0
    • View Profile
How can i diagram stored procedure?
« on: September 15, 2008, 05:12:33 pm »
hi there
i work for a large banking system. I have some very large stored procedures written in SQL Server 2005. I want to show the logic of those sp's in diagram for better understandibility. Which UML diagram would be appropriate for this? I am thinking about sequence diagram but not quite confident. can anybody  help me?

RoyC

  • EA Administrator
  • EA Practitioner
  • *****
  • Posts: 1297
  • Karma: +21/-4
  • Read The Help!
    • View Profile
Re: How can i diagram stored procedure?
« Reply #1 on: September 16, 2008, 09:14:26 am »
Use a Data Model diagram. Read about these and Stored procedures in the EA Help, Data Modeling section.  You can find the topics on stored procedures very quickly using the index.
Best Regards, Roy

Frank Horn

  • EA User
  • **
  • Posts: 535
  • Karma: +1/-0
    • View Profile
Re: How can i diagram stored procedure?
« Reply #2 on: September 16, 2008, 05:46:25 pm »
You could model the stored procedures as operations of a class representing the database, and then draw sequence diagrams with a client lifeline and a database lifeline to show which stored procedures are called from the client and (as self messages on the database lifeline) how they interact.

If more details are to be shown (like what the procedures are doing internally) I would model them as (complex) activities, and maybe the tables and views as objects within the activity diagrams (to show which tables or views are used by the procedures).

Or you could start off with a class diagram (each table, view and procedure a class) using dependencies, and then add sequence and/or activity diagrams to the procedure classes as needed.