Presentation is loading. Please wait.

Presentation is loading. Please wait.

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.

Similar presentations


Presentation on theme: "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."— Presentation transcript:

1 Using T-sql scripts

2 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.

3

4 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.

5

6 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.

7 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.

8

9 Migrating Sql Database to SQL Azure Database In the Generate and Publish Scripts Wizard dialog box, click Next to get to theChoose Objects step.

10

11 Migrating Sql Database to SQL Azure Database Select Script entire database and all database objects, and then click Next.

12

13 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.

14

15 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.

16

17

18

19 Migrating Sql Database to SQL Azure Database Click Next

20

21 Migrating Sql Database to SQL Azure Database Click Next

22

23 Migrating Sql Database to SQL Azure Database Click Finish

24

25 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.

26

27 Migrating Sql Database to SQL Azure Database In SQL Server Management Studio, on the File menu, point to New, and then click QueryWithCurrentConnection

28

29 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

30

31

32 Migrating Sql Database to SQL Azure Database In SQL Server Management Studio, on the File menu, point to Open, and then click File.

33

34 Migrating Sql Database to SQL Azure Database Click Execute.

35


Download ppt "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."

Similar presentations


Ads by Google