I assume that by .BAK you mean a database dump, right?

I've not worked with MSSQL, but Sybase database dumps are binary dumps, using direct page copies from the original database device (and MSSQL is a direct descendant of the Sybase code line, in case you're wondering why this is relevant :-). Parsing such files is seriously non-trivial, unfortunately. Lots of people would love to have such a utility, though, because binary database dumps aren't portable between hardware platforms (or sometimes even between OS versions).

Personally I'd check to see if MS offers an eval version of MSSQL, and then load the dump into a running server. This will almost certainly be the fastest way of getting at the data...

This being said, I don't want to be excessively pessimistic. Have you looked at the file with a hex editor to see if there is any structure that you can distinguish?

Michael


In reply to Re: Parse MSSQL .bak file by mpeppler
in thread Parse MSSQL .bak file by gryphon

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.