ScriptDBOverview
ScriptDB will generate scripts for all objects and (optionally) data in any SQL 2000/2005 database. It is a console application written in C#. The source code is freely available so you can modify it to meet your needs if you know a little C#.
NEW
Fixed some bugs.