本篇体验使用SQL Database Migration Wizard(SQLAzureMW)将SQL Server 2008数据库迁移到 Azure SQL Database。当然,SQLAzureMV还可以把SQL Server 2005/2012/2014迁移到Azure SQL Database。

SQLAzureMV有几个版本:
1、SQLAzureMW v3x 适用于 .NET Framework 3.5 和 SQL Server 2008 R2 SP1
2、SQLAzureMW v4x 适用于  .NET Framework 4.5 和 SQL Server 2012
3、SQLAzureMW v5x 适用于 .NET Framework 4.5 和 SQL Server 2014

所有的版本下载在这里

→登录到Windows Azure的"管理门户"

→点击左侧的"SQL数据库"

→点击页面左下方的"新建"

选择合适的"服务层"版本,选择默认的排序规则是"SQL_Latin1_General_CP1_CI_AS",选择服务器,点击右下角的"打勾"按钮。

如果还没有创建服务器,先创建服务器:

点击右下角的"打勾"按钮。

→点击左侧的"SQL数据库"

→点击"服务器"

→点击服务器名称

→点击"配置"

→点击"添加到允许的IP地址",把当前的ip地址添加到"白名单",点击"保存"。

→双击"SQLAzureMV.exe"

→在界面中勾选"数据库",点击"下一步"

→在"连接到数据库..."窗口中,勾选"SQL Server身份验证",填写用户名和密码,指定数据库名称,勾选"保存登录信息",点击"连接"按钮

→在界面中点击"下一步"

→在界面中勾选"为所有对象生成脚本",点击"下一步"

→在"脚本向导汇总"界面中,点击"下一步"

跳出"生成脚本"提示框,点击"是"

→在"结果汇总"界面中,有"执行结果"和"SQL脚本"选项卡,点击"下一步"

注意:如果生成的SQL脚本中有错误、或者不兼容情况,会以红色字体显示,这时候可以把SQL脚本保存到硬盘,再到SQL Server Management Studio中进行修改,修改后,可以在SQLAzureMV直接打开修改好的SQL脚本文件。

→到"管理门户"中复制服务器名称,类似"xxxxxx.database.chinacloudapi.cn"的格式,填写如下:

注意:在用户名称栏,填写可是符合"服务器名称@xxxxxx",@后面的xxxxxx与"xxxxxx.database.chinacloudapi.cn"中的xxxxxx一致。上图中的用户名是不对的。
在跳出的"执行脚本"提示框中,点击"是"。

点击"连接"。

→在界面中点击"下一步"

迁移成功显示如下界面:

→点击"退出"。

→打开"SQL Server Management Studio",在界面中填写相关信息,点击"连接"

注意:
○ 服务器名类似"xxxxxx.database.chinacloudapi.cn"的格式,用户名类似"服务器名@xxxxxx"的格式。
○ 还可以通过https://xxxxxx.database.chinacloudapi.cn/, 来判断地址、用户名、密码是否正确。
○ 如果Sql Sever 2008还没有允许远程连接,参照这里

→登录成功后,显示如下界面:

至此,使用SQL Database Migration Wizard(SQLAzureMW)将SQL Server 2008数据库迁移到 Azure SQL Database,成功!

使用SQL Database Migration Wizard把SQL Server 2008迁移到Windows Azure SQL Database的更多相关文章

  1. [Windows Azure] Guidelines for Connecting to Windows Azure SQL Database

    Guidelines for Connecting to Windows Azure SQL Database 6 out of 12 rated this helpful - Rate this t ...

  2. [Windows Azure] Development Considerations in Windows Azure SQL Database

    Development Considerations in Windows Azure SQL Database 3 out of 5 rated this helpful - Rate this t ...

  3. How to Use Lucene.NET with Windows Azure SQL Database

    http://social.technet.microsoft.com/wiki/contents/articles/2367.how-to-use-lucene-net-with-windows-a ...

  4. [Windows Azure] Getting Started with Windows Azure SQL Database

    In this tutorial you will learn the fundamentals of Windows Azure SQL Database administration using ...

  5. [Windows Azure] Windows Azure SQL Database library

    Microsoft Windows Azure SQL Database extends SQL Server capabilities to the cloud. SQL Database offe ...

  6. [转]Azure 表存储和 Windows Azure SQL Database - 比较与对照

    本文转自:https://msdn.microsoft.com/library/azure/jj553018 更新时间: 2014年10月 作者:Valery Mizonov 和 Seth Manhe ...

  7. 安装 SQL Server 2008 时提示需要删除 SQL Server 2005 Express 工具

    已安装 SQL Server 2005,安装 SQL Server 2008 时提示需要删除 SQL Server 2005 Express 工具 错误提示:已安装 SQL Server 2005 E ...

  8. [Windows Azure] Getting Started with Windows Azure SQL Data Sync

    Getting Started with Windows Azure SQL Data Sync In this tutorial, you learn the fundamentals of Win ...

  9. [Windows Azure] Create and use a reporting service in Windows Azure SQL Reporting

    Create and use a reporting service in Windows Azure SQL Reporting In this tutorial you will learn ab ...

随机推荐

  1. 常用 Git 命令清单【转】

    转自:http://www.ruanyifeng.com/blog/2015/12/git-cheat-sheet.html 作者: 阮一峰 日期: 2015年12月 9日 我每天使用 Git ,但是 ...

  2. 一步一步学习IdentityServer3 (3)

    在上一篇中配置一个基础的idrserver服务端 这篇文章将对服务端做一些变化,这里我先贴一下上一章中的代码 证书: static class Certificate { public static ...

  3. PhoneGap学习地址 / PhoneGap API介绍:Events

    http://blog.csdn.net/phonegapcn 事件类型: backbutton deviceready menubutton pause resume searchbutton on ...

  4. Java第三阶段学习(六、多线程)

    一.进程和线程的区别: 进程:指正在运行的程序,当一个程序进入内存运行,就变成一个进程. 线程:线程是进程的一个执行单元. 总结:一个程序运行后至少会有一个进程,一个进程可以有多个线程. 多线程:多线 ...

  5. Jupyter Notebook 入门

    参考     Jupyter Notebook 快速入门 进阶 可看: Jupyter Notebook 的 27 个窍门,技巧和快捷键 Jupyter Notebook(此前被称为 IPython ...

  6. 入门NodeJS

    入门NodeJS https://www.cnblogs.com/dotnetcrazy/p/10118756.html NodeJS 1.环境配置 之前讲ES6的时候有提过一部分Node的知识,简单 ...

  7. Angular 2.0--1

    Angular 2.0 从0到1 (五) 第一节:Angular 2.0 从0到1 (一)第二节:Angular 2.0 从0到1 (二)第三节:Angular 2.0 从0到1 (三)第四节:Ang ...

  8. Storm介绍及核心组件和编程模型

    离线计算 离线计算:批量获取数据.批量传输数据.周期性批量计算数据.数据展示 代表技术:Sqoop批量导入数据.HDFS批量存储数据.MapReduce批量计算数据.Hive批量计算数据.azkaba ...

  9. win10下sublime text3 使用view in browser的快捷鍵添加方式

    key-binding-user,于是,我在那里输入: [  { "keys": ["ctrl+b"], "command": " ...

  10. 给定一种 pattern(模式) 和一个字符串 str ,判断 str 是否遵循相同的模式。 这里的遵循指完全匹配,例如, pattern 里的每个字母和字符串 str 中的每个非空单词之间存在着双向连接的对应模式。

    这个是LeetCode上的一道题目.本机上运行时正确的,但是LeetCode上显示是错误的,所以没有办法了只能记录在博客上了. 我的想法是先把pattern和str都转化成数组.例如"abb ...