• Great Article, definitely a keeper.

    I would like to reply to ErikEJ's comment about adding a date/time stamp to the file name.  This is not a good idea as was mentioned in the article.  The purpose of this script is to produce files which can be used with a version control tool such as StarTeam or Rational ClearCase.  By adding the date to the file name or in the content of the file would defeat this purpose.  If you are not using version control software and wish to keep separate snapshots of the database then the best thing would be to create a folder by date of better yet zip the files and add the date to the name of the zip file.

    I plan to modify this script to script other objects as well.