• We’re currently investigating an issue related to the forum theme and styling that is impacting page layout and visual formatting. The problem has been identified, and we are actively working on a resolution. There is no impact to user data or functionality, this is strictly a front-end display issue. We’ll post an update once the fix has been deployed. Thanks for your patience while we get this sorted.

MS SQL Server Question - Script to run on DB to output Create script for tables

Is there a command you can run on a DB in Microsoft SQL Server 2008 that will output 'create table' scripts for every table in the DB? I'd want it to include all create stuff too.. like indexes, keys, etc. I'd also like it to output users and their roles on the DB.
 
1. Right Click the database in SQL management studio in the object explorer window
2. click tasks, then generate scripts
3. Wizard will walk you through allowing you script out whatever objects you want created
4. ...
5. PROFIT
 
Back
Top