I would like to set up some solid testing on my project and the way I’d like to do it is have a commandline program that I can run that will copy just the structure of a database and not the actual data. Then I can run my tests on that new database.
Ideas?
Update: someone said I should specify a language. I was thinking TSQL as that way if Sql Server runs, the script should run. Also, it’s SQL Server 2005.
Sadly, the most automatic process we found was actually using one of those mouse control tools to actually use SSMS to copy the database. I’d MUCH rather do something else, but none of the answers actually fit our requirements.