February 2007
Looking for a way to script database schema without buying a third-party tool? Here’s a Windows console-mode utility that uses SMO to script tables, stored procedures, views, user-defined functions (UDFs), and other schema objects within your databases.
SQL Server Magazine