I’
ve just posted an updated version of my SQL Script Mover utility on codeplex, here:
https://sqlscriptmove.codeplex.com

This is a utility for extracting schema from a sql server database. It supports views, stored procedures, functions, tables, triggers and DDL triggers.