Comprehensive HTML Database Documentation Problem

  • Okay, I'm obviously missing something basic here, but the "Comprehensive HTML Database Documentation" script submitted by Terry Grignon generates HTML that does not render correctly in a browser. After saving it in a file with the HTM or HTML extension and opening in a browser, I just see the raw HTML. Since I haven't found other posts asking about this, apparently everyone except me knows you obviously do "X" to make the HTML render properly. Would someone be so kind as to fill me in on what "X" is?

  • i just tested it as i've not seen these scripts before and have no problems at all - no x required.

    are you using the revised version posted most recently?

    other than that - take the file to another machine to test to see if it's your browser

    MVDBA

  • Thanks for the reponse. You gave me the confidence to try again. Sure enough, the output renders correctly now on the same machine. The only difference I can think of is last night I was working from home over a VPN connection and now I'm in the office at the physical machine... 

  • I found that to be a great script as well; the only change I made was adding a &nbsp; to the closing </TD> tag so that cells didn't appear wierd if no data was entered in them by the script.

    Lowell


    --help us help you! If you post a question, make sure you include a CREATE TABLE... statement and INSERT INTO... statement into that table to give the volunteers here representative data. with your description of the problem, we can provide a tested, verifiable solution to your question! asking the question the right way gets you a tested answer the fastest way possible!

  • Thanks for the tip.

  • Lowell, do you mean, add &nbsp; to every </TD> tag in the script like this: <&nbsp; /TD> ?
     
    My knowledge of HTML is rather thin...
  • almost, i replaced every </TD> with &nbsp;</TD> as there are a few places where the cells have no contents; they render as <TD></TD>, so they don't look right in the finishe3d report; adding the non-greaking space makes the cell appear empty, which for me was just a display issue, but it still looks better.

     

    either prerendering or postrendering, try it and compare the reports;

    Lowell


    --help us help you! If you post a question, make sure you include a CREATE TABLE... statement and INSERT INTO... statement into that table to give the volunteers here representative data. with your description of the problem, we can provide a tested, verifiable solution to your question! asking the question the right way gets you a tested answer the fastest way possible!

  • Ah, I see the difference! Very nice. Thanks again.

  • And here's an extremely simple, but useful modification to the report heading (I put it right undeneath the centered "Database Definition" heading):
     
    SELECT @strHTML = '<CENTER><FONT SIZE="2"><B>documented ' + cast(getdate() as varchar(64)) + '</B></FONT></CENTER><BR>'

    PRINT @strHTML

     
    Cheers
     

Viewing 9 posts - 1 through 8 (of 8 total)

You must be logged in to reply to this topic. Login to reply