In SQL Server 2008 R2, the options have changed slightly. There is no "Script Data = True/False" option. Instead, look under General options for "Types of data to script". The default is "Schema only", but the other options are "Data only" and "Schema and data". Choose the "Schema and data" option to generate scripts that create the tables and then populate the tables.
- Login to SQL Server Management Studio 2008 R2
- Navigate to your database
- Right-click your database and choose Tasks ... Generate Scripts
- Click Next> past the Introduction
- Choose the entire database or specific tables/objects
- Click Next>
- Choose the desire file location and options
- Click Advanced
- Under General options, find Types of data to script
- Change value to Schema and data
- Click OK to close options
- Click Next>
- Review Summary
- Click Next>
- Click Finish
No comments:
Post a Comment