SQL_Server_2005新特性
更新时间:2023-05-24 04:05:01 阅读量: 实用文档 文档下载
SQL_Server_2005新特性,SQL Server 2005 新特性,SQLServer2005新特性,Microsoft SQL server SQL Server 2005新特性,微软2005数据库新特性
SQL Server 2005新特性
王为 微软ESS护航工程师 微软认证讲师 微软 护航工程师 wangwei@
SQL_Server_2005新特性,SQL Server 2005 新特性,SQLServer2005新特性,Microsoft SQL server SQL Server 2005新特性,微软2005数据库新特性
Summary New FeatureTools and Utilities Enhancements Database Engine Enhancements New Notification Services New Reporting Services New Service Broker Analysis Services Enhancements Data Transformation Services Enhancements Replication Enhancements Data Access Interfaces Enhancements
SQL_Server_2005新特性,SQL Server 2005 新特性,SQLServer2005新特性,Microsoft SQL server SQL Server 2005新特性,微软2005数据库新特性
Overview of SQL Server 2005What is SQL Server 2005? The Database Engine Analysis Services SQL Server Integration Services Notification Services Reporting Services Service Broker The Common Language Runtime Native HTTP Support Replication Full-Text Search
SQL_Server_2005新特性,SQL Server 2005 新特性,SQLServer2005新特性,Microsoft SQL server SQL Server 2005新特性,微软2005数据库新特性
What Is SQL Server 2005?SQL Server Integration Services Analysis Services Notification Services
SQL Server 2005Full-Text Search Relational Database Engine .NET CLR Reporting Services
Replication Native HTTP Support
Service Broker
SQL_Server_2005新特性,SQL Server 2005 新特性,SQLServer2005新特性,Microsoft SQL server SQL Server 2005新特性,微软2005数据库新特性
Enhanced Data TypesLarge value data types:varchar(max) nvarchar(max) varbinary(max) 8K—2G 8K 2G Max关键字指明最大值
xml – stores XML data with optional schema
SQL_Server_2005新特性,SQL Server 2005 新特性,SQLServer2005新特性,Microsoft SQL server SQL Server 2005新特性,微软2005数据库新特性
What Is a Partitioned Table? distributed across multiple file Table datagroups Improved performance on multiprocessor/multidrive systems Easier management of large tables
SQL_Server_2005新特性,SQL Server 2005 新特性,SQLServer2005新特性,Microsoft SQL server SQL Server 2005新特性,微软2005数据库新特性
How to Partition a Table1Create the partition functionCREATE PARTITION FUNCTION emailPF (nvarchar(30)) AS RANGE RIGHT FOR VALUES ('G', 'N')
2
Create the partition schemeCREATE PARTITION SCHEME emailPS AS PARTITION emailPF TO (fg1, fg2, fg3)
3
Create the partitioned tableCREATE TABLE Sales.CustomerEmail (CustID int, email nvarchar(30)) ON EMailPS (email)
SQL_Server_2005新特性,SQL Server 2005 新特性,SQLServer2005新特性,Microsoft SQL server SQL Server 2005新特性,微软2005数据库新特性
Enhanced Indexing FeaturesThe ALTER INDEX statement allows: DisablingALTER INDEX IX_CustDOB ON Sales.Customer DISABLE
RebuildingALTER INDEX PK_CustId ON Sales.Customer REBUILD
ReorganizingALTER INDEX PK_CustId ON Sales.Customer REORGANIZE
Setting of optionsALTER INDEX PK_CustId ON Sales.Customer SET(...)
SQL_Server_2005新特性,SQL Server 2005 新特性,SQLServer2005新特性,Microsoft SQL server SQL Server 2005新特性,微软2005数据库新特性
Use the OUTPUT Keyword1 2Declare a table-valued variable Use OUTPUT to return details to the variable
DECLARE @InsertDetails TABLE (ProductID int, InsertedBy sysname) INSERT INTO Stock.ProductList OUTPUT inserted.ProductID, suser_name() INTO @InsertDetails VALUES ('Racing Bike', 412.99) SELECT * FROM @InsertDetails
SQL_Server_2005新特性,SQL Server 2005 新特性,SQLServer2005新特性,Microsoft SQL server SQL Server 2005新特性,微软2005数据库新特性
PIVOT and UNPIVOT OperatorsPIVOT – converts values to columnsCust Mike Mike Mike Lisa Lisa Lisa Prod Bike Chain Bike Bike Chain Chain Qty 3 2 5 3 3 4
Cust
Bike
Chain
SELECT * FROM Sales.Order PIVOT (SUM(Qty) FOR Prod IN ([Bike],[Chain])) PVT
Mike Lisa
8 3
2 7
UNPIVOT – converts columns to valuesCust Cust Mike Lisa Bike 8 3 Chain 2 7 Prod Bike Chain Bike Chain Qty 8 2 3 7
SELECT Cust, Prod, Qty FROM Sales.PivotedOrder UNPIVOT (Qty FOR Prod IN ([Bike],[Chain])) UnPVT
Mike Mike Lisa Lisa
SQL_Server_2005新特性,SQL Server 2005 新特性,SQLServer2005新特性,Microsoft SQL server SQL Server 2005新特性,微软2005数据库新特性
Demo1
PIVOT and UnPIVOT
PIV_UnPIV.sql
SQL_Server_2005新特性,SQL Server 2005 新特性,SQLServer2005新特性,Microsoft SQL server SQL Server 2005新特性,微软2005数据库新特性
Storing XML in the Database Benefits:Single store for structured and semistructured data Define variable content in a relational model Choose the most appropriate data model Functiona
lity: XML Indexes XQuery-based data retrieval XQuery-based modifications XML schema support: Typed XML: Validated by a schema Untyped XML: Nonvalidated XML
SQL_Server_2005新特性,SQL Server 2005 新特性,SQLServer2005新特性,Microsoft SQL server SQL Server 2005新特性,微软2005数据库新特性
Demo2
存储XML数据类型
StoringXML.sql
SQL_Server_2005新特性,SQL Server 2005 新特性,SQLServer2005新特性,Microsoft SQL server SQL Server 2005新特性,微软2005数据库新特性
How to Manage XML IndexesCreate a primary XML indexCREATE PRIMARY XML INDEX xidx_Item ON Sales.Invoices(ItemList)
Create secondary PATH XML indexCREATE XML INDEX xidx_ItemPath ON Sales.Invoices(ItemList) USING XML INDEX xidx_Item FOR PATH
Create secondary PROPERTY XML indexCREATE XML INDEX xidx_ItemProp ON Sales.Invoices(ItemList) USING XML INDEX xidx_Item FOR PROPERTY
Create secondary VALUE XML indexCREATE XML INDEX xidx_ItemVal ON Sales.Invoices(ItemList) USING XML INDEX xidx_Item FOR VALUE
SQL_Server_2005新特性,SQL Server 2005 新特性,SQLServer2005新特性,Microsoft SQL server SQL Server 2005新特性,微软2005数据库新特性
The Database EngineDatabase engine enhancements:Partitioning tables and indexes DDL triggers and event notifications New data types Multiple Active Result Sets (MARS) Enhancements to Transact-SQL Improved security architecture Native support for XML and XQuery .NET Framework integration Enhancements to replication Improved maintainability
SQL_Server_2005新特性,SQL Server 2005 新特性,SQLServer2005新特性,Microsoft SQL server SQL Server 2005新特性,微软2005数据库新特性
The Common Language RuntimeDatabase objects implemented in managed codeStored procedures User-defined data types User-defined functions Triggers User-defined aggregates.NET Assembly
SP UDT UDF Trgr
Agg
SQL_Server_2005新特性,SQL Server 2005 新特性,SQLServer2005新特性,Microsoft SQL server SQL Server 2005新特性,微软2005数据库新特性
SQL Server 2005 CLR IntegrationRun managed code within a database by using in-process assemblies Create managed stored procedures, triggers, user-defined functions, userdefined types, and aggregates Integration benefits:Enhanced programming model Enhanced safety and security Common development environment Performance and scalability
SQL_Server_2005新特性,SQL Server 2005 新特性,SQLServer2005新特性,Microsoft SQL server SQL Server 2005新特性,微软2005数据库新特性
Managed Code vs. Transact-SQLUse managed code for:Procedures that feature complex logic Access to the .NET Framework class library CPU intensive functions
Use Transact-SQL for data access with only basic procedural logic
SQL_Server_2005新特性,SQL Server 2005 新特性,SQLServer2005新特性,Microsoft SQL server SQL Server 2005新特性,微软2005数据库新特性
SQL Server Projects in Visual Studio 2005Project for creating managed database objects Automatically includes necessary referencessqlaccess.dll System.Data.dll
Includes templates for each object typeStored procedure Trigger User-defined function User-defined type Aggregate
Allows immediate deployment and debugging
SQL_Server_2005新特性,SQL Server 2005 新特性,SQLServer2005新特性,Microsoft SQL server SQL Server 2005新特性,微软2005数据库新特性
Demo3 使用 2005定义 SQLServer用户自定义函数 2005.txt
SQL_Server_2005新特性,SQL Server 2005 新特性,SQLServer2005新特性,Microsoft SQL server SQL Server 2005新特性,微软2005数据库新特性
Notification ServicesSubscription Management Objects Event APIs Set-based subscription processing Notification formatting and delivery
Subscribers
Events
Notification Services
Notifications
正在阅读:
SQL_Server_2005新特性05-24
建设工程委托代建合同04-12
高音提琴课程教授教养现状 如何改动高音提琴课程教授教养现状03-30
2017年车民小学学校工作计划12-27
纸飞机比赛作文600字06-26
1028架空地面工艺对装配式住宅及内装工业化的支持 - 图文05-04
地史学八大运动11-09
原创强调句教案(贺心怡)01-29
CAD线性比例问题10-13
研究生翻译材料02-02
- 教学能力大赛决赛获奖-教学实施报告-(完整图文版)
- 互联网+数据中心行业分析报告
- 2017上海杨浦区高三一模数学试题及答案
- 招商部差旅接待管理制度(4-25)
- 学生游玩安全注意事项
- 学生信息管理系统(文档模板供参考)
- 叉车门架有限元分析及系统设计
- 2014帮助残疾人志愿者服务情况记录
- 叶绿体中色素的提取和分离实验
- 中国食物成分表2020年最新权威完整改进版
- 推动国土资源领域生态文明建设
- 给水管道冲洗和消毒记录
- 计算机软件专业自我评价
- 高中数学必修1-5知识点归纳
- 2018-2022年中国第五代移动通信技术(5G)产业深度分析及发展前景研究报告发展趋势(目录)
- 生产车间巡查制度
- 2018版中国光热发电行业深度研究报告目录
- (通用)2019年中考数学总复习 第一章 第四节 数的开方与二次根式课件
- 2017_2018学年高中语文第二单元第4课说数课件粤教版
- 上市新药Lumateperone(卢美哌隆)合成检索总结报告
- 特性
- Server
- 2005
- SQL