Best way to generate DDL and data insert scripts
There is no easy or best way, but few options are available such as DMO or SMO or even using Enterprise Manager for SQL 2000 or SS Management Studio for SQL 2005.
Look for DBPublish wizard tool in this case that will help quite a bit and also you can take help of Tibor's and Vyas's code snippets in this case.