Oftentimes there are many solutions to a problem and we want the simplest here. SQL Server 2008 has a surprisingly simple solution if it's not immediately obvious at first.
- open up SQL Server 2008 Management Studio
- right click on your database
- context menu appears, navigate to Tasks, then "Generate scripts..."
- you get a wizard which brings you to a window with the following options:
the only option worth noting is to set "Script Data" to true if you want to copy data with the schema.
The rest is self-explanatory because, well it's a wizard, but now you at least know that this tool exists.
No comments:
Post a Comment