• They you need to look at writing a command line program which interfaces with the SQL SMO objects to pull out the DDL of the database.