Upload
others
View
19
Download
0
Embed Size (px)
Citation preview
SQL Server 2008 R2 和Visual Studio 2010 中的数据层应用程序 (Data-tier Application)
DATHOL-200-1
姓名: 刘春雨 毛草
职务: 软件开发测试工程师
公司: 微软SQL Server产品组
>99% 使用单独数据库文件
<2GB 平均数据库文件大小
<20% 平均硬件资源使用率
越来越多的数据库应用程序
部署/升级/管理
DBA责任重大,身心疲惫
程序复杂度
数量
DBA
SQL Server Management Studio
已托管的数据库实例
生产环境数据库
控制点 Utility
Control Point
生产环境数据库
开发 部署 管理
Visual Studio 2010
开发人员
生产环境数据库
DBA
SQL Server Management Studio
开发环境数据库
反向工程提取DAC
创建策略
创建 修改 部署
升级DAC
.dacpac
编译 + Build
递交给DBA
部署/ 升级DAC
注册,管理,删除,提取,升级DAC
静态分析
T-SQL 应用程序的部署单元 “MSI”
Zip格式
DAC的组成部分
DAC元信息
DAC逻辑定义信息
部署条件及策略
可添加脚本:部署后期检测/处理数据/自述文件
创建途径
使用SQL Server Management Studio提取现有数据库
使用Visual Studio 2010创建
练习 1:从 VISUAL STUDIO 2010 创建数据层应用程序
任务 1 – 创建和研究数据层应用程序项目
任务 2 – 将数据库对象添加到数据层应用程序项目
练习 2:部署数据层应用程序
任务 1 – 声明 Visual Studio 2010 部署意向的策略
任务 2 – 从 Visual Studio 2010 中部署数据层应用程序
练习 3:升级数据层应用程序
任务 1 – 修改数据层应用程序的架构
任务 2 – 从 Visual Studio 2010 中升级数据层应用程序
练习 4:使用 VISUAL STUDIO 2010 中 T-SQL 的新功能(可选)
任务 1 – 重构 T-SQL 代码(可选)
任务 2 – 对 T-SQL 代码运行静态代码分析(可选)
开发
创建,修改
提取(反向工程)
Build
最佳实践
静态分析
策略
部署
部署
升级
删除
检测偏差
修复偏差*
管理
注册
监管
调优*
迁移*
整合*
* 尚未发布
疑问和解答
参考资源
微软MSDN 中文 SQL Server 2008 R2《数据层应用程序教程》 http://msdn.microsoft.com/zh-cn/library/ee210554.aspx
微软技术白皮书 英文《SQL Server 2008 R2 中的数据层应用程序》 http://msdn.microsoft.com/en-us/library/ff381683(SQL.100).aspx
微软MSDN 中文 SQL Server论坛 http://social.microsoft.com/forums/zh-CN/sqlserverzhchs
微软MSDN 中文 Visual Studio 2010 《创建和管理数据层应用程序》 http://msdn.microsoft.com/zh-cn/library/ee361996.aspx
感谢您参与此会场!
您的意见与建议对我们非常重要。
请您填写反馈表。
© 2008 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered trademarks and/or trademarks in the U.S. and/or other countries. The information herein is for informational purposes only and represents the current view of Microsoft Corporation as of the date of this presentation. Because Microsoft must respond to changing market conditions, it should not be interpreted to be a commitment on the part of Microsoft, and Microsoft cannot guarantee the accuracy of any information provided after the date of this presentation. MICROSOFT MAKES NO WARRANTIES, EXPRESS,
IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.