SQL Server 2005 – Export table programmatically (run a .sql file to rebuild it)
This functionality is already built in to Sql Server Management Studio 2008. Just download the trial and only install the client tools (which shouldn’t expire). Use Management Studio 2008 to connect to your 2005 database (its backwards compatible). Right click your database Choose Tasks > Generate Scripts Press Next, select your database again On the … Read more