2. Enter (localdb)v11.0 as the server name
and click Login. Your PlanetWrox database
should already be listed, but if it’s not, rightclick
the Databases node, click Attach, and
then browse for the PlanetWrox.mdf fi le in
your C:BegASPNETSiteApp_Data folder.
3. Right-click the PlanetWrox database and
choose Tasks Í Generate Scripts. If you get a
welcome screen, click Next. Ensure that Script
Entire Database and All Database Objects is
selected, and then click Next. The dialog box
shown in Figure 19-16 appears.
4. In this screen, you can choose between two Output Type options. The first enables you to create
a text file with the necessary SQL statements, and the second option enables you to talk to your
shared hosting provider over the Internet directly. If your host supports this, it can give you the
necessary information to configure a provider here. For now, choose Save Scripts to a Specific
Location. Then click the Advanced button and change the setting for Types of Data to Script to
Schema and Data. The default value of Schema Only would only script your database structure,
but not the actual records your tables contain. Set Script Use Database to False. With this setting
set to True, code will be included to create a database at the App_Data folder, which likely won't
work on a machine other than your own. Click OK to close the Advanced Scripting Options
dialog box.