Jeff Moden (11/26/2010)
bjhogan (11/26/2010)
Have you tried doing this through Powershell? You can easily access the the SQL Server SMO to script out the objects to a file. I hadn't used powershell at all until this past Monday and within a few hours had a script that would dump the schema to a file. It's really really easy. And the code to do this is much more compact than using stored procedures.Can you post the script, please?
Yes, this would be very useful. Perhaps even worthy of an article here on SSC!
Wayne
Microsoft Certified Master: SQL Server 2008
Author - SQL Server T-SQL Recipes