Download Migrating SQL database to Azure

Survey
yes no Was this document useful for you?
   Thank you for your participation!

* Your assessment is very important for improving the workof artificial intelligence, which forms the content of this project

Document related concepts
no text concepts found
Transcript
Using T-sql scripts
Migrating Sql Database to SQL
Azure Database
 Create the Test Database
 In SQL Server Management Studio, on the File menu,
point to New, and then clickDatabase Engine Query.
Migrating Sql Database to SQL
Azure Database
 In the Connect to Database Engine dialog box, enter
the information for your local SQL Server instance,
and then click Connect.
Migrating Sql Database to SQL
Azure Database
 Paste the Transact-SQL script at the end of this topic
in the query window and then clickExecute.
Migrating Sql Database to SQL
Azure Database
 Create the Transact-SQL Script
 In Object Explorer, right-click the mydb database,
point to Tasks, and select Generate Scripts.
Migrating Sql Database to SQL
Azure Database
 In the Generate and Publish Scripts Wizard dialog
box, click Next to get to theChoose Objects step.
Migrating Sql Database to SQL
Azure Database
 Select Script entire database and all database
objects, and then click Next.
Migrating Sql Database to SQL
Azure Database
 In Set Scripting Options, set the following options:
 Set Output Type as Save script to a specific
location. Select Save to file. ClickSingle file. Type
the file name and location in File name.
Click Advanced.
Migrating Sql Database to SQL
Azure Database
 In Advanced Scripting Options set “Script for the
database engine type” option as “SQL Azure Database”,
set “Convert UDDTs to Base Types” option as “True”,
and set “Types of data to script” option as “Schema and
data”. Click OK.
Migrating Sql Database to SQL
Azure Database
 Click Next
Migrating Sql Database to SQL
Azure Database
 Click Next
Migrating Sql Database to SQL
Azure Database
 Click Finish
Migrating Sql Database to SQL
Azure Database
 Migrating mydb database to SQL Azure SQL
 Connect to SQL Azure through SQL Server Management
Studio or SQL Azure Management Portal by providing
the credentials of SQL Server created in Windows
Azure Cloud platform.
Migrating Sql Database to SQL
Azure Database
 In SQL Server Management Studio, on the File menu,
point
to
New,
and
QueryWithCurrentConnection
then
click
Migrating Sql Database to SQL
Azure Database
 Create the mydb database on the SQL Database server
through the Windows Azure Platform Management
Portal or by executing the following Transact-SQL
command:
 CREATE DATABASE mydb
Migrating Sql Database to SQL
Azure Database
 In SQL Server Management Studio, on the File menu,
point to Open, and then click File.
Migrating Sql Database to SQL
Azure Database
 Click Execute.
Related documents