Thanks for the pointer, I hadn't looked at it and so was keen to see what it was about. I like it, as far as it goes, but here's the thing: getting a list of database objects (eg tables) is trivial, and getting a list of table constraints (including relationships) is only slightly more difficult. The hard part is to obtain useful information about those relationships, and that's where MSSQL::TableReferences comes in. It is about discovering and interpreting information that is buried in the database schema.

Perhaps it is peculiar to my style of orientation, but when I'm studying a legacy database, I first review any ER diagrams, and then I look at the declared relationships. I find that these relationships are usually far more enlightening than anything else, since they are about as close to the big picture, fundamental design decisions, as anything can be. I can do this manually of course, and I do, but with this package I can speedily collect and publish the information for further reference. I'm essentially inventing yet another reverse-engineering tool, born of my working practices.

I notice that SQL::Translator::Schema provides for what it calls a natural join, which turns out to be a naive assumption based on column names. This might be helpful, but it is far less helpful than the examination of declared relationships from sysreferences.

Still, it has given me more to think about. Thanks again.

 


In reply to Re^2: Please comment on potential MSSQL::TableReferences by EdwardG
in thread Please comment on potential MSSQL::TableReferences by EdwardG

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.