gljakal's Sql Exporter is a software application that allows you to export table definitions, stored procedures, views and triggers present in your Sql Server database to text files. So they can easily be backed up or archived in a version control software. You can also automate it, thanks to its command line versionRequirements: