Getting your database data from your local machine to your remote host is typically a two-step
process:
1. Create a .sql script from your local SQL Server database.
2. Send this script to your host and execute it there.
In the next section, you see how to export your database to a .sql file. I won’t show you how to run
that file at your host to re-create the database because this is different from host to host. Instead, I
will give you some general pointers so you know what to look for with your host.
Exporting Your Data to a File
To make it easy to transfer data from your local SQL Server database into a SQL Server database of
your web host, SQL Server Management Studio comes with a tool to export your database structure
and data to a file. This file then contains all the information required to re-create your database and
its data at a remote server.
In the following exercise, you see how to use SSMS to export your database to a fi le.