0% found this document useful (0 votes)
49 views

Comparison SQL2000 To SQL2005 II

SQL Server 2000 offers many new features to save time, energy and money compared to previous versions. Some of the top 10 most significant new features include enhancements to T-SQL programming, integration of Common Language Runtime to build objects using .NET languages, and the Service Broker for reliable messaging between servers. The new version also features data encryption, SQL Mail, and multi-active result sets to improve performance.

Uploaded by

Pavan Krishna O
Copyright
© Attribution Non-Commercial (BY-NC)
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
49 views

Comparison SQL2000 To SQL2005 II

SQL Server 2000 offers many new features to save time, energy and money compared to previous versions. Some of the top 10 most significant new features include enhancements to T-SQL programming, integration of Common Language Runtime to build objects using .NET languages, and the Service Broker for reliable messaging between servers. The new version also features data encryption, SQL Mail, and multi-active result sets to improve performance.

Uploaded by

Pavan Krishna O
Copyright
© Attribution Non-Commercial (BY-NC)
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
You are on page 1/ 40

In the business world, everything is about being "better, faster and cheaper" than the competition -and SQL

Server 200 offers many new features to save energy, time and money! "rom programming to administrative capabilities, this version of SQL Server tops all others and it enhances many e#isting SQL Server 2000 features! $ere I%ll outline the &0 most significant new features in order of importance' 1. T-SQL (Transaction SQL) enhancements (-SQL is the native set-based )*+,S programming language offering high-performance data access! It now incorporates many new features including error handling via the ()- and ./(.$ paradigm, .ommon (able 0#pressions 1.(0s2, which return a record set in a statement, and the ability to shift columns to rows and vice versa with the 3I45( and 673I45( commands! More information from Microsoft. 2. CLR (Common Language Runtime) (he ne#t ma8or enhancement in SQL Server 200 is the integration of a !70( compliant language such as .9, /S3!70( or 4+!70( to build ob8ects 1stored procedures, triggers, functions, etc!2! (his enables you to e#ecute !70( code in the *+,S to ta:e advantage of the !70( functionality! It is e#pected to replace e#tended stored procedures in the SQL Server 2000 environment as well as e#pand the traditional relational engine capabilities! More information from Microsoft. 3. Service Broker (he Service +ro:er handles messaging between a sender and receiver in a loosely coupled manner! / message is sent, processed and responded to, completing the transaction! (his greatly e#pands the capabilities of data-driven applications to meet wor:flow or custom business needs! More information from Microsoft. 4. ata encr!"tion SQL Server 2000 had no documented or publicly supported functions to encrypt data in a table natively! 5rgani;ations had to rely on third-party products to address this need! SQL Server 200 has native capabilities to support encryption of data stored in user-defined databases! More information from Microsoft. #. S$T% mai& Sending mail directly from SQL Server 2000 is possible, but challenging! <ith SQL Server 200 , ,icrosoft incorporates S,(3 mail to improve the native mail capabilities! Say "see-ya" to 5utloo: on SQL Server= More information from Microsoft. '. (TT% en)"oints -ou can easily create $((3 endpoints via a simple (-SQL statement e#posing an ob8ect that can be accessed over the Internet! (his allows a simple ob8ect to be called across the Internet for the needed data! More information from Microsoft. *. $u&ti"&e +ctive Resu&t Sets ($+RS) ,/)S allow a persistent database connection from a single client to have more than one active re>uest per connection! (his should be a ma8or performance improvement, allowing developers to

give users new capabilities when wor:ing with SQL Server! "or e#ample, it allows multiple searches, or a search and data entry! (he bottom line is that one client connection can have multiple active processes simultaneously! More information from Microsoft. ,. e)icate) a)ministrator connection If all else fails, stop the SQL Server service or push the power button! (hat mentality is finished with the dedicated administrator connection! (his functionality will allow a *+/ to ma:e a single diagnostic connection to SQL Server even if the server is having an issue! More information from Microsoft. -. SQL Server .ntegration Services (SS.S) SSIS has replaced *(S 1*ata (ransformation Services2 as the primary 0(L 10#traction, (ransformation and Loading2 tool and ships with SQL Server free of charge! (his tool, completely rewritten since SQL Server 2000, now has a great deal of fle#ibility to address comple# data movement! For more information from Microsoft. 1/. ata0ase mirroring It%s not e#pected to be released with SQL Server 200 at the )(, in 7ovember, but I thin: this feature has great potential! *atabase mirroring is an e#tension of the native high-availability capabilities! So, stay tuned for more details?! "or now, here%s more information from Microsoft. (wo technologies that cannot be left out of any SQL Server 200 top &0 list are /nalysis Services and )eporting Services! /lthough neither technology will be introduced with SQL Server 200 , combining them with SQL Server Integration Services rounds off ,icrosoft%s core business intelligence suite! (hese technologies are essential to business intelligence success! Learn about the new functionality and how organi;ations are implementing it with 3ro8ect )eal! Top 10 Features for Database Administration Feature Description Database Extend log shipping capabilities with the database mirroring Mirroring solution. You will be able to use database mirroring to enhance availability of your SQL Server systems by setting up automatic failover to a standby server. Online Restore With SQL Server 2 !" database administrators are able to perform a restore operation while an instance of SQL Server is running. #nline restore improves the availability of SQL Server because only the data being restored is unavailable$ the rest of Online Indexing Operations the database remains online and available. %he online index option allows concurrent modifications &updates" deletes" and inserts' to the underlying table or clustered index data and any associated indexes during index data definition language &((L' execution. )or example" while a clustered index is

Feature

Description being rebuilt" you can continue to ma*e updates to the underlying

data and perform +ueries against the data. Fast Recovery , new faster recovery option improves availability of SQL Server databases. ,dministrators can reconnect to a recovering database tandards! based Information Access "# erver after the transaction log has been rolled forward. ,ny ob-ect" data source" or business intelligence component can be exposed using standards.based protocols such as S#,/ and 0%%/1eliminating the need for a middle.tier listener" such as 22S" to access a Web services interface that is exposed by SQL Server 2 !. SQL Server 2 ! includes SQL Server 3anagement Studio" a new

Management tudio Dedicated $onnection

integrated suite of management tools with the functionality to develop" deploy" and troubleshoot SQL Server databases" as well as enhancements to previous functionality. SQL Server 2 ! provides a dedicated administrator connection server is loc*ed or otherwise unavailable. %his capability enables administrators to troubleshoot problems on a server by executing diagnostic functions or %ransact.SQL statements. Snapshot 2solation &S2' level is provided at the database level. With S2" users can access the last committed row using a transitionally consistent view of the database. %his capability provides greater scalability. (ata partitioning is enhanced with native table and index partitioning that enables efficient manageability of large tables and indexes. )or distributed databases" SQL Server 2 ! provides

Administrator that administrators can use to access a running server even if the

naps%ot Isolation

Data &artitioning Replication

'n%ancements comprehensive schema change &((L' replication" next.generation monitoring capabilities" built in replication from #racle to SQL Server" merge replication over https" and significant merge replication scalability and performance improvements. ,dditionally" the peer.to.peer transactional replication feature improves support for data scale out using replication. %op of page Top 10 Features for Development Feature Description (osted With SQL Server 2 Runtime

! developers can create database ob-ects

$ommon#anguage using familiar languages such as 3icrosoft 4isual 56 .7E% and 3icrosoft 4isual 8asic .7E%. (evelopers can also create two

Feature )ative *M# upport

Description new ob-ects1user.defined types and aggregates. 7ative 93L data can be stored" +ueried" and indexed in a SQL Server database1allowing developers to build new classes of connected applications around Web services and across any platform or device. )rom new support for SQL %ypes to 3ultiple ,ctive :esult Sets &3,:S'" ,(#.7E% in SQL Server 2 ! evolves dataset access and manipulation to achieve greater scalability and flexibility. %he security model in SQL Server 2 ! separate users from ob-ects" provides fine.grain access" and enables greater control of data access. ,dditionally" all system tables are implemented as views" providing more control over database system ob-ects. SQL Server 2 ! provides new language capabilities for developing scalable database applications. %hese enhancements include error handling" recursive +uery capabilities" relational operator /24#%" ,//LY" :#W;7<38E: and other row ran*ing functions" and more. Service 8ro*er is a robust messaging infrastructure that provides reliable transactional delivery of critical messages between servers1with the scalable high.performance that is expected with asynchronous +ueuing. %ight integration with 3icrosoft 4isual Studio and the .7E% )ramewor* streamlines development and debugging of data. driven applications. (evelopers can build database ob-ects" such as stored procedures" using any .7E% language and can seamlessly debug across .7E% and %ransact.SQL &%SQL' languages. With SQL Server 2

ADO+)'T version ,+0 ecurity 'n%ancements

Transact! "# 'n%ancements

Reliable Messaging for Async%ronous Applications -isual tudio Integration

.eb

ervices

! developers can develop Web services in

the database tier" ma*ing SQL Server a hypertext transfer protocol &0%%/' listener and providing a new type of data 'mbedded Reports Full!Text earc% access capability for Web services.centric applications. <se client.side reporting controls to embed real.time reports into an application at design time. SQL Server 2 ! supports rich" full.text search applications. 5ataloging capabilities provide greater flexibility over what is cataloged. Query performance and scalability have been improved dramatically" and new management tools provide greater insight into the full.text implementation.

'n%ancements

%op of page Top 10 Features for /usiness Intelligence Feature Description Analysis With SQL Server 2 ! ,nalysis Services moves into the realm of ervices real. time analytics. )rom scalability enhancements to deep integration with 3icrosoft #ffice" SQL Server 2 Integration ervices 0 I 1 ! helps extend business intelligence to every level of your business. SQL Server 2ntegration Services &SS2S' is a next generation data integration platform that can integrate data from any source. SS2S provides a scalable and extensible platform that empowers development teams to build" manage" and deploy integration Data Mining solutions to meet uni+ue integration needs. 3icrosoft SQL Server 2 ! ,nalysis Services &SS,S' provides tools for data mining with which you can identify rules and patterns in your data" so that you can determine why things happen and predict what will happen in the future = giving you powerful insight that will help your company ma*e better business Reporting ervices $lustering upport 2ey &erformance decisions. SQL Server :eporting Services is a comprehensive" server.based reporting solution designed to help you author" manage" and deliver both paper.based and interactive Web.based reports. ,nalysis Services improves availability with support for failover clustering" enhanced multi.instance support" and support for bac*ing up and restoring ,nalysis Services ob-ects and data. >ey performance indicators &>/2s' provide businesses with the capability to define graphic" customi?able business metrics to help

Indicators generate and trac* *ey corporate benchmar*s. calability and )eatures such as parallel partition processing" creation of remote &erformance relational online analytical processing &:#L,/' or hybrid online analytical processing &0#L,/' partitions" distributed partitioned cubes" persisted calculations" and proactive caching greatly improve the scalability and performance of ,nalysis Services in SQL Server 2 !. Report /uilder :eport 8uilder is a component of SQL Server 2 ! :eporting

Services that enables business users to create and deploy reports &roactive $ac%ing with a user.friendly enterprise data model. /roactive 5aching combines 3#L,/ class +uery performance with real.time data analysis and eliminates the need to maintain #L,/ stores. %he /roactive 5ache transparently synchroni?es and maintains an updated copy of the data organi?ed specifically for

Feature

Description high.speed +uerying and for isolating end.users from overloading the relational databases. %he structure of the cache is automatically derived from the <niversal (ata 3odel &<(3' structure and can be finely tuned to balance performance with latency of data. %ight integration of SQL Server 2 Share/oint Server 2

Integration 3it% t%e Microsoft Office

! with Excel 2

@ and #ffice

@ delivers a simple way for information

wor*ers to accessing" analy?e and collaborate on 82 information

ystem directly within the tools that they use every day.

<hat%s 7ew in SQL Server 200 On T%is &age Enterprise (ata 3anagement (eveloper /roductivity 8usiness 2ntelligence <pgrading to SQL Server 2 7ext Steps 'nterprise Data Management In today%s connected world, data and the systems that manage that data must always be secure yet available to users! <ith SQL Server 200 , users and I( professionals across your organi;ation will benefit from reduced application downtime, increased scalability and performance, and tight yet fle#ible security controls! SQL Server 200 also includes many new and improved capabilities to help ma:e your I( staff more productive! SQL Server 200 includes :ey enhancements to enterprise data management in the following areas' ,anageability /vailability Scalability Security Manageability SQL Server 200 ma:es it simpler and easier to deploy, manage, and optimi;e enterprise data and analytical applications! /s an enterprise data management platform, it provides a single management console that enables data administrators anywhere in your organi;ation to monitor, manage, and tune all of the databases and associated services across your enterprise! It provides !

an e#tensible management infrastructure that can be easily programmed by using SQL ,anagement 5b8ects, enabling users to customi;e and e#tend their management environment and independent software vendors 1IS4s2 to build additional tools and functionality to further e#tend the capabilities that come out of the bo#! "# erver Management tudio

SQL Server 200 simplifies management by providing one integrated management console to monitor and manage the SQL Server relational database, as well as Integration Services, /nalysis Services, )eporting Services, 7otification Services, and SQL Server ,obile 0dition across large numbers of distributed servers and databases! *atabase administrators can perform several tas:s at the same time, such as authoring and e#ecuting a >uery, viewing server ob8ects, managing an ob8ect, monitoring system activity, and viewing online help! SQL Server ,anagement Studio hosts a development environment for authoring, editing, and managing scripts and stored procedures using (ransact-SQL, ,ultidimensional 0#pressions, @,L for /nalysis, and SQL Server ,obile 0dition! ,anagement Studio is readily integrated with source control! ,anagement Studio also hosts tools for scheduling SQL Server /gent 8obs and managing maintenance plans to automate daily maintenance and operation tas:s! (he integration of management and authoring in a single tool coupled with the ability to manage all types of servers provides enhanced productivity for database administrators! SQL Server 200 e#poses more than A0 new measures of internal database performance and resource usage, ranging from memory, loc:ing, and scheduling to transactions and networ: and dis: IB5! (hese dynamic management views 1*,4s2 provide greater transparency and visibility into the database and a powerful infrastructure for proactive monitoring of database health and performance! "# Management Ob4ects SQL ,anagement 5b8ects 1S,52 is a new set of programming ob8ects that e#poses all of the management functionality of the SQL Server database! In fact, ,anagement Studio was built with SQL ,anagement 5b8ects! S,5 is implemented as a ,icrosoft !70( "ramewor: assembly! -ou can use S,5 to automate common SQL Server administrative tas:s, such as programmatically retrieving configuration settings, creating new databases, applying (ransact-SQL scripts, creating SQL Server /gent 8obs, and scheduling bac:ups! (he S,5 ob8ect model is a more secure, reliable, and scalable replacement for *istributed ,anagement 5b8ects 1*,52, which was included with earlier versions of SQL Server! Availability Investments in high-availability technologies, additional bac:up and restore capabilities, and replication enhancements enable enterprises to build and deploy highly available applications! Innovative high-availability features such as database mirroring, failover clustering, database snapshots, and enhanced online operations will minimi;e downtime and help to ensure that critical enterprise systems remain accessible! (his section reviews these enhancements in greater detail! Database Mirroring *atabase mirroring allows continuous streaming of the transaction log from a source server to a single destination server! In the event of a failure of the primary system, applications can immediately reconnect to the database on the secondary server! (he secondary instance detects failure of the primary server within seconds and accepts database connections immediately! *atabase mirroring wor:s on standard server hardware and re>uires no special storage or controllers! "igure & shows the basic configuration of database mirroring!

Figure 1 /asic $onfiguration of Database Mirroring Failover $lustering "ailover clustering is a high-availability solution that e#ploits ,icrosoft <indows .lustering Services to create fault-tolerant virtual servers that provide fast failover in the event of a database server failure! In SQL Server 200 , support for failover clustering has been e#tended to SQL Server /nalysis Services, 7otification Services, and SQL Server replication! (he ma#imum number of cluster nodes has been increased to eight! SQL Server failover clustering is now a complete faulttolerant server solution!

Availability Feature Database Mirroring Failover Clustering ,utomatic failover Yes Yes %ransparent client redirection Yes" auto.redirect Yes" reconnect to same 2/ 2mpact on overall throughput 3inimal to no impact 7o impact Aero wor* loss Yes Yes :e+uires certified hardware 7o Yes /rovides redundant data Yes 7o Database naps%ots

SQL Server 200 introduces the ability for database administrators to create instant, read-only views of a database! (his database snapshot provides a stable view without the time or storage overhead of creating a complete copy of the database! /s the primary database diverges from the snapshot, the snapshot adds its own copy of pages as they are modified! /s a result, the snapshot may be used to >uic:ly recover from an accidental change to a database by simply reapplying the original pages from the snapshot to the primary database! Fast Recovery SQL Server 200 improves the availability of SQL Server databases with a new and faster recovery option! 6sers can reconnect to a recovering database after the transaction log has been rolled forward! 0arlier versions of SQL Server re>uired users to wait until incomplete transactions had rolled bac:, even if the users did not need to access the affected parts of the database! Dedicated Administrator $onnection SQL Server 200 introduces a dedicated administrator connection 1*/.2 to access a running server even if the server is not responding or is otherwise unavailable! (his enables you to e#ecute

diagnostic functions or (ransact-SQL statements so you can troubleshoot problems on a server! (he connection is activated by members of the sysadmin fi#ed server role and is only available through the SQL.,* command prompt tool either locally or from a remote computer! Online Operations 0Index Operations and Restore1 (he ability to create, rebuild, or drop an inde# online is an enhanced feature of SQL Server 200 that augments the inde#ing capabilities of earlier versions of SQL Server! (he online inde# option allows concurrent modifications 1updates, deletes, and inserts2 to the underlying table or clustered inde# data and any associated inde#es during inde# data definition language 1**L2 e#ecution! <ith support for online inde# operations, you can add inde#es without interfering with access to tables or other e#isting inde#es! /dditionally, the server wor:load allows inde# operations to ta:e advantage of parallel processing! SQL Server 200 also introduces the ability to perform a restore operation while an instance of SQL Server is running! 5nline restoration capabilities improve the availability of SQL Server because only the data that is being restored is unavailable! (he rest of the database remains online and available! 0arlier versions of SQL Server re>uire that you bring a database offline before you restore the database! Replication )eplication is designed to increase data availability by distributing the data across multiple database servers! /vailability is increased by allowing applications to scale out the SQL Server read wor:load across databases! SQL Server 200 offers enhanced replication using a new peerto-peer model that provides a new topology in which databases can be synchroni;ed transactionally with any identical peer database! calability Scalability advancements such as table partitioning, snapshot isolation, and CD-bit support enable you to build and deploy your most demanding applications using SQL Server 200 ! (he partitioning of large tables and inde#es significantly enhances >uery performance against very large databases! Table and Index &artitioning (able and inde# partitioning eases the management of large databases by facilitating the management of the database in smaller, more manageable chun:s! <hile the concept of partitioning data across tables, databases, and servers is not new to the world of databases, SQL Server 200 provides a new capability for the partitioning of tables across filegroups in a database! $ori;ontal partitioning allows for the division of a table into smaller groupings based on a partitioning scheme! (able partitioning is designed for very large databases, from hundreds of gigabytes to terabytes and beyond! naps%ot Isolation /fter data is copied, transformed, and archived to an analysis-oriented database, it must be maintained andBor rebuilt periodically! 6sers certainly benefit from loo:ing at a transactionally consistent version of the databaseE however, the version of the data that they are viewing is no longer current! It can ta:e many hours to build and inde# the data and that might not be what the user really needs! (his is where snapshot isolation is helpful! (he snapshot isolation level allows users to access the last row that was committed by using a transactionally consistent view of the database! (his new isolation level provides the following benefits'

Increased data availability for read-only applications! 7onbloc:ing read operations allowed in an online transaction processing 15L(32 environment! /utomatic mandatory conflict detection for write transactions! Simplified migration of applications from 5racle to SQL Server! Replication Monitor <ith its intuitive user interface and wealth of data metrics, )eplication ,onitor is a tool that sets a new standard for ease of use in managing comple# data replication operations! upport for 56!bit ystem Itanium , and x56

5ptimi;ed for the Intel Itanium processor, SQL Server 1CD-bit2 ta:es advantage of advanced memory addressing capabilities for essential resources such as buffer pools, caches, and sort heaps, reducing the need to perform multiple IB5 operations to bring data in and out of memory from dis:! Freater processing capacity without the penalties of IB5 latency opens the door to new levels of application scalability! <indows Server 200G #CD provides high performance for both G2-bit and CD-bit applications on the same system! (he underlying architecture is based on CD-bit e#tensions to the industry-standard #HC instruction set, allowing today%s G2-bit applications to run natively on #CD processors! /t the same time, new CD-bit applications are e#ecuted in CD-bit mode, which processes more data per cloc: cycle, allows greater access to memory, and speeds numeric calculations! (he result is a platform that ta:es advantage of the e#isting wealth of G2-bit applications while also providing a smooth migration path to CD-bit computing! ecurity SQL Server 200 ma:es significant enhancements to the security model of the database platform, with the intention of providing more precise and fle#ible control to enable tighter security of the data! ,icrosoft has made a considerable investment in a number of features to provide a high level of security for your enterprise data including the following' 0nforcing policies for SQL Server login passwords in the authentication space! 3roviding for more granularity in terms of specifying permissions at various scopes in the authori;ation space! /llowing for the separation of owners and schemas in the security management space! Aut%ori7ation / new security model in SQL Server 200 enables administrators to manage permissions at a granular level and at a designated scope, ma:ing management of permissions easier as well as ensuring that the principle of least privileges is upheld! In SQL Server 200 , you specify a conte#t under which statements in a module e#ecute! (his feature also acts as an e#cellent mechanism for granular permission management! Aut%entication

SQL Server 200 clustering supports Ierberos authentication against a SQL Server 200 virtual server! /dministrators can specify ,icrosoft <indows-style policies on standard logins so that a consistent policy is applied across all accounts in the domain! )ative 'ncryption SQL Server 200 supports encryption capabilities within the database itself, fully integrated with a :ey management infrastructure! +y default, client-server communications are encrypted! (o centrali;e security assurance, server policy can be defined so that unencrypted communications are re8ected! "# erver and Trust3ort%y $omputing

(he ,icrosoft (rustworthy .omputing initiative outlines a framewor: that defines the steps necessary to support more secure computing as well as measures that help you deploy and maintain a more secure environment! (hese steps help to protect the confidentiality, integrity, and availability of data and systems at every phase of the software life cycleJfrom design, to delivery, to maintenance! (o uphold the four tenets of the (rustworthy .omputing initiative, ,icrosoft and the SQL Server team have addressed the following issues' Secure 0! )esign! (he SQL Server development team conducted multiple security audits and spent more than two months studying SQL Server components and the interaction between them! "or each potential security threat, the team did a threat analysis to evaluate the issue and completed additional design and testing wor: to neutrali;e potential security issues! +ecause of these design efforts, SQL Server 200 includes many new server security features! Secure 0! )e1au&t! 6pon installation, SQL Server 200 chooses the right set of configuration values for all setup options, ensuring that when a new system is installed, it is in a secure state by default! Secure in )e"&o!ment! ,icrosoft has created content to help organi;ations deploy SQL Server using the proper security credentials and to fully understand the steps and permissions re>uired! SQL Server deployment tools provide the information necessary to understand the decisions you need to ma:e during deployment! Security updates are easy to find and installJand if you choose the option, the updates install automatically! (ools are also available to help you assess and manage security ris:s across organi;ations! %op of page Developer &roductivity SQL Server 200 includes many new technologies that bring significant increases in developer productivity! "rom !70( "ramewor: support to tight integration with 4isual Studio, these features provide developers with the ability to more easily create secure, robust database applications at a lower cost! SQL Server 200 enables developers to ta:e advantage of their e#isting s:ills across a variety of development languages while providing an end-to-end development environment for the database! 7ative @,L capabilities enable developers to build new classes of connected applications across any platform or device! 0nhancements for developer productivity include the following' 0nhancements for developer productivity include the following' 0#panded language support

Improved development tools 0#tensibility Improved data access @,L and <eb services /pplication framewor: 'xpanded #anguage upport

+ecause the common language runtime 1.L)2 is hosted in the SQL Server *atabase 0ngine, developers can choose from a variety of familiar languages to develop database applications, including (ransact-SQL, ,icrosoft 4isual +asic !70(, and ,icrosoft 4isual .9 !70(! /dditionally, .L) hosting provides developers with increased fle#ibility with user-defined types and functions! (he .L) also provides opportunities to use non-,icrosoft code for rapid database application development! $#R8+)'T Frame3or9 Integration <ith the release of SQL Server 200 , database programmers can now ta:e full advantage of modern programming languages to implement functionality within the server as well as many assemblies in the ,icrosoft !70( "ramewor: class library! 6sing .L) integration, you can code your stored procedures, functions, and triggers in the !70( "ramewor: language of your choice! ,icrosoft 4isual +asic !70( and the .9 programming language both offer ob8ect-oriented constructs, structured e#ception handling, arrays, namespaces, and classes! /dditionally, the !70( "ramewor: provides thousands of classes and methods that have e#tensive built-in capabilities that you can easily use on the server side! ,any tas:s that were aw:ward or difficult to perform in (ransact-SQL can be better accomplished by using managed codeE additionally, two new types of database ob8ectsJaggregates and user-defined typesJare available! -ou can now better use the :nowledge and s:ills that you have already ac>uired to write in-process code! In short, SQL Server 200 enables you to e#tend the database server to more easily perform appropriate computation and operations on the bac: end! (his integration between SQL Server and the .L) provides several ma8or benefits' 2nhance) "rogramming mo)e&. 3rogramming languages that are compatible with the !70( "ramewor: are in many respects richer than (ransact-SQL, offering constructs and capabilities that were previously not available to SQL Server developers! 2nhance) sa1et! an) securit!. ,anaged code runs in a .L) environment, hosted by the *atabase 0ngine! (his allows !70( "ramewor: database ob8ects to be safer and more secure than the e#tended stored procedures available in earlier versions of SQL Server! 3ser-)e1ine) t!"es an) aggregates. (wo new database ob8ects that e#pand the storage and >uerying capabilities of SQL Server are enabled by hosting the .L)! Common )eve&o"ment environment. *atabase development is integrated into the ,icrosoft 4isual Studio 200 development environment! -ou can use the same tools for developing and debugging database ob8ects and scripts that you use to write middle-tier or client-tier !70( "ramewor: components and services!

%er1ormance an) sca&a0i&it!. +ecause managed code compiles to native code prior to e#ecution, you can achieve significant performance increases in some scenarios! +y using languages such as 4isual +asic !70( and .9, you can capitali;e on .L) integration to write code that has more comple# logic and is more suited for computation tas:s! /dditionally, 4isual +asic !70( and .9 offer ob8ect-oriented capabilities such as encapsulation, inheritance, and polymorphism! -ou can easily organi;e related code into classes and namespaces, which means that you can more easily organi;e and maintain your code investments when you are wor:ing with large amounts of code! (he ability to logically and physically organi;e code into assemblies and namespaces is a huge benefit that enables you to better find and relate different pieces of code in a large database implementation! ,anaged code is more efficient than (ransact-SQL at processing numbers and managing complicated e#ecution logic, and provides e#tensive support for string handling, regular e#pressions, and so on! /lso, with the functionality that is available in the !70( "ramewor: class library, you have full access to thousands of prebuilt classes and routines that you can access easily from any stored procedure, trigger, or user-defined function! 0verything from improved stringhandling functions, math functions, date operations, access to system resources, advanced encryption algorithms, file access, image processing, and @,L data manipulation is easily accessible from managed stored procedures, functions, triggers, and aggregates! 5ne of the ma8or benefits of managed code is type safety! +efore managed code is e#ecuted, the .L) performs several chec:s through a process :nown as verification to ensure that the code is safe to run! "or e#ample, the code is chec:ed to ensure that memory is not read that has not been written to! Transact! "# 'n%ancements (ransact-SQL has long been the basis for all SQL Server programmability! SQL Server 200 provides many new language capabilities for developing scalable database applications! (hese enhancements include error handling, new recursive >uery capabilities, and support for new SQL Server *atabase 0ngine capabilities! (ransact-SQL enhancements in SQL Server 200 increase your e#pressive powers in >uery writing, enabling you to improve the performance of your code and e#tend your error management capabilities! (he continuous effort that is being put into enhancing (ransact-SQL shows a firm belief in its significant role in SQL Server! Improved Development Tools *evelopers can use one development tool for (ransact-SQL, @,L, ,ultidimensional 0#pressions 1,*@2, and @,L for /nalysis 1@,L/2! Integration with the 4isual Studio development environment provides more efficient development and debugging of line-of-business and business intelligence 1+I2 applications (he +usiness Intelligence *evelopment Studio is a common development environment for building +I solutions based on 4isual Studio including a database engine, analysis services, and reporting services! 6se the +usiness Intelligence *evelopment Studio graphical user interface 1F6I2 to design SQL Server Integration Services 1SSIS2 pac:ages for data-management applications! SSIS pac:ages are designed, developed, and debugged in +usiness Intelligence *evelopment Studio by dragging tas:s from the toolbo#, setting their properties, and connecting tas:s with precedence constraints! "igure 2 shows the interface in 4isual Studio for +usiness Intelligence *evelopment Studio!

Figure , /usiness Intelligence Development -isual tudio Integration

tudio Interface in -isual

tudio

SQL Server 200 and 4isual Studio 200 together provide deeper levels of integration between the database and the application development environment than ever before! *evelopers now have the ability to create .L) stored procedures, functions, user-defined types, and user-defined aggregates directly from within the 4isual Studio development environment! (hey can deploy these new database ob8ects directly from 4isual Studio without having to switch tools! 4isual Studio 200 directly supports all of the new SQL Server data types, such as native @,L! -ou can also add your .L) database ob8ects to the same source control system that you use for your 4isual Studio pro8ects, thus providing an even greater level of integration and security to your development processes! $ross!Tier and $ross!#anguage Debugging SQL Server 200 and 4isual Studio 200 together provide even deeper integration in the area of application debugging! (he combination lets you seamlessly debug both .L) and (ransact-SQL code using the same 4isual Studio debugging interface, and enables you to debug from .L) to (ransact-SQL and bac: again, regardless of the location of the code, whether it is on the developer computer or stored in the SQL Server database! 'xtensibility 3ser- e1ine) T!"es an) +ggregates 6ser-defined types in SQL Server 200 are not an ob8ect relational e#tensibility mechanism! (hey are a way to e#tend the scalar type system of the database! (he scalar type system includes the columnar types that ship with SQL Server 1types such as int, nvarchar, uni>ueidentifier, and so on2! <ith user-defined types, you can define your own type that can be used for column definitions, for

e#ample! .reate a user-defined type if your type really is an atomic value that is appropriate to be modeled as a column! 6se user-defined types if you need to define your own scalar type! 0#ample scenarios for such types include custom dateBtime data types in various calendars, and currency data types! <ith userdefined types, you can create a single ob8ect that e#poses all the behaviors that are available on the type, and encapsulate, or hide, the underlying data that is stored by the type! 0veryone who needs to access the data must use the user-defined type programmatic interface! (a:ing advantage of e#isting functionality in the !70( "ramewor: 1such as the internationali;ation or calendar functionality2 is another strong reason to consider implementing your type as a user-defined type! In a number of scenarios, you may need to perform aggregations over data! (his includes performing statistical calculations, such as avg, stddev, and so on! If the desired aggregation function is not directly supported as a built-in aggregate function, you have three ways to perform a custom aggregation in SQL Server 200 ' <rite the aggregation as a user-defined aggregate! <rite the aggregate using a .L) stored procedure! 6se a server-side cursor! SQL $anagement 405ects SQL ,anagement 5b8ects 1S,52 is the management ob8ect model for SQL Server 200 ! S,5 represents significant design and architectural improvements for the SQL Server management ob8ect model! It is a simple-to-use but rich ob8ect model that is based on !70( "ramewor: managed code! S,5 is the primary tool for developing database management applications using !70( "ramewor:! S,5 is used by every dialog bo# in SQL Server ,anagement StudioE every administrative action that you can perform in SQL Server ,anagement Studio you can also accomplish by using S,5! (he new S,5 ob8ect model and the ,icrosoft <indows ,anagement Instrumentation 1<,I2 application programming interfaces 1/3Is2 replace SQL-*,5! <here possible, S,5 incorporates similar ob8ects as SQL-*,5 for ease of use! -ou can still use SQL Server 200 with SQL-*,5, but SQL-*,5 will not be updated to manage features that are specific to SQL Server 200 ! +na&!sis $anagement 405ects /nalysis ,anagement 5b8ects 1/,52 allows client applications to access the range of administrative commands and capabilities available to /nalysis Services by using an ob8ect library that can provide ob8ect-level validation capabilitiesE you no longer have to manually generate **L scripts for /nalysis Services commands and the often-lengthy contents of the /nalysis Services Scripting Language 1/SSL2 5b8ect*efinition element! /pplications that use /,5 can either connect and wor: directly with ob8ects on an /nalysis Services instance, or create these ob8ects without an e#isting connection and persist the metadata for later deployment! /,5 also "wraps" /SSL commands and elements! .m"rove) ata +ccess an) 6e0 Services

In SQL Server 200 , you can develop @,L <eb services in the database tier, ma:ing SQL Server an $((3 listener! (his provides a new type of data access capability for applications that are centrali;ed around <eb services! In SQL Server 200 , you can use $((3 to access SQL Server

directly, without using a middle-tier listener such as ,icrosoft Internet Information Services 1IIS2! SQL Server e#poses a <eb service interface to allow the e#ecution of SQL statements and invocation of functions and procedures! Query results are returned in @,L format and can ta:e advantage of the 4isual Studio <eb services infrastructure! + 4.72T 2./8+ 4$ .72T ,uch is new in the ne#t version of /*5!70(! "rom new support for >uery change notifications to ,ultiple /ctive )esult Sets 1,/)S2, /*5!70( evolves dataset access and manipulation to achieve greater scalability and fle#ibility! "uery )otification SQL Server 200 introduces notification support for SQL Server >ueries! -ou can use this support to send a command to SQL Server and to re>uest that a notification be generated if e#ecuting the same command again produces different results from those obtained initially! -ou accomplish this by using a dependency ob8ect that detects when the underlying data is changed! .ommands that are sent to the server through any of the client /3Is such as /*5!70(, 5L0 *+, 5pen *atabase .onnectivity 15*+.2, ,icrosoft /ctive@ *ata 5b8ects 1/*52, or Simple 5b8ect /ccess 3rotocol 1S5/32 may include a tag that re>uires a notification! "or each statement that is e#ecuted as part of the re>uest, the server creates a notification subscription that fires once for each statement that is included in the re>uest! 7otifications are delivered through a SQL Service +ro:er >ueue that applications can poll, and use activation services or bloc:ing statements that return whenever the notifications are available! Query notifications are useful for enabling the caching of results in applications such as database-driven <eb sites! "igure G shows the >uery notification process!

Figure : "uery )otification MAR ,ultiple /ctive )esult Sets 1,/)S2 provides the means to have more than one pending re>uest per connection, in particular to have more than one default result set open per connection! *efault result sets are forward-only, read-only result sets! "or default result sets, the client drivers transparently retrieve the data in large chun:s 1(abular *ata Stream buffer-si;ed chun:s2 so that application re>uests are satisfied without a round trip to the server 1as in the case of server cursors2! (he application can use a simple row-at-a-time programming model without compromising performance! (he ,/)S feature removes the current restriction in which an open default result set bloc:s the driver from sending re>uests to the server until the entire result set is consumed! Transparent Failover for Data Mirroring SQL Server 200 supports a "hot spare" capability through database mirroring! If a SQL Server instance fails, wor: can be shifted to the bac:up server automatically! (his re>uires an instance to

witness the failover :nown as 1not surprisingly2 the witness instance! $ot spare scenarios re>uire that e#isting client connections must ":now" to fail over 1establish a connection with the new server instance2, as well! It is suboptimal for client connections to produce an error on the ne#t attempted access and to have to be manually "failed over" by client programming! S>l.lient in /*5!70( 2!0 supports client failover without special programming of the application program! *M# upport

/dvancements such as the native @,L data type and @Query help organi;ations seamlessly connect internal and e#ternal systems! SQL Server 200 supports both relational and @,L data natively, so enterprises can store, manage, and analy;e data in the format that best suits their needs! Support for e#isting and emerging open standards such as $yperte#t (ransfer 3rotocol 1$((32, @,L, Simple 5b8ect /ccess 3rotocol 1S5/32, @Query, and @,L Schema definition language 1@S*2 also facilitate communication across e#tended enterprise systems! *M# Data Type @,L can model comple# dataE it is not limited to the scalar types that are supported by SQL Server! /s such, a string-based, built-in data type such as char or varchar does not suffice to ma:e full and effective use of the power and the numerous advantages of @,L! "or e#ample, if @,L is stored as a string, you can insert or select an entire document, or even retrieve contiguous bytes from it, but you cannot >uery into the contents of the document itself! +y providing the @,L data type, SQL Server 200 enables you to >uery portions of an @,L document, validate that the document conforms to an @,L schema, and even modify the contents of the @,L document in place! It also integrates traditional, relational data with data in unstructured or semistructured @,L documents in ways that are not possible with SQL Server 2000! In SQL Server 200 , @,L data is stored as binary large ob8ects 1+L5+s2 in an internal representation that allows efficient reparsing and some compression! / collection of @,L schemas can be associated with a column of type @,L! (his provides validation for constraints, inserts, and updates, and typing of values inside stored @,L data, as well as optimi;ations for storage and >uery processing! SQL Server 200 also provides several **L statements for managing schemas on the server! *"uery (he @,L Query Language, or @Query, is an intelligent and robust language that is optimi;ed for >uerying all types of @,L data! <ith @Query, you can run >ueries against variables and columns of the @,L data type using the latter%s associated methods! /s with many @,L standards, the <orld <ide <eb .onsortium 1<G.2 oversees the development of @Query! @Query evolved from a >uery language called Quilt, which was itself based on a variety of other >uery languages such as the @,L 3ath Language 1@3ath2 version &!0, @,L Query Language 1@QL2, and SQL! It also contains @3ath 2!0 as a subset! (herefore, if you have e#perience using @3ath &!0, you can capitali;e on your s:ills and do not have to learn an entirely new >uery language! (here are, however, significant enhancements that go beyond @3ath &!0, such as typing, special functions, and support for better iteration, sorting of results, and construction! SQL Server 200 ships with deep @Query capabilities that allow for @,L ob8ect manipulation in the data tier! It supports a statically typed subset of the @Query &!0 <or:ing *raft of 7ovember & , 200G! .eb ervices upport

In SQL Server 200 , you can develop @,L <eb services in the database tier, ma:ing SQL Server an $((3 listener! (his provides a new type of data access capability for applications that are centrali;ed around <eb services! In SQL Server 200 , you can use $((3 to access SQL Server directly without using a middle-tier listener such as ,icrosoft Internet Information Services 1IIS2! SQL Server e#poses a <eb service interface to allow the e#ecution of SQL statements and invocation of functions and procedures! Query results are returned in @,L format and can ta:e advantage of the 4isual Studio <eb services infrastructure! *M# for Analysis ervices

@,L for /nalysis Services 1@,L/2 is the native, standards-based protocol for communicating with with an /nalysis Services server! 7ew :inds of applications are enabled and easy to developJ applications that integrate analytics with operations in real time! <ith @,L/ as the native protocol, /nalysis Services clients can be configured to have a ;ero footprint, and each server is automatically a <eb service! / light-footprint <inG2 layer is available for bac:ward compatibility with tools that wor: with /nalysis Services 2000 on 5L0 *+ for 5L/3, /*5,*, and /*5,*!70(! ,any users will continue to use the /*5,*!70( ob8ect model to build custom applications on /nalysis Services! Application Frame3or9 SQL Server 200 introduces a new SQL Server application framewor: that includes Service +ro:er, 7otification Services, SQL Server ,obile, and SQL Server 0#press! Service +ro:er is a distributed application framewor: that provides reliable asynchronous messaging at the database-to-database level! ervice /ro9er 5ver the last &0 years, the proliferation of e-commerce applications has created the need for increased wor:flow management across database applications! <hen an online customer places an order for a boo:, this order needs to commit transactions into the inventory, shipping, and credit card systems, and needs to send an order confirmation using another <eb application! <aiting for each of these processes to happen in order does not scale well! SQL Server 200 provides a new scalable architecture for building asynchronous message routing! "igure D outlines the Service +ro:er architecture!

Figure 6

ervice /ro9er Arc%itecture

(he Service +ro:er technology allows internal or e#ternal processes to send and receive streams of reliable, asynchronous messages by using e#tensions to normal (ransact-SQL data manipulation language! ,essages are sent to a >ueue in the same database as the sender, to another database in the same instance of SQL Server, or to another instance of SQL Server either on the same server or on a remote server! )otification ervices

,icrosoft SQL Server 7otification Services is a platform for developing and deploying applications that generate and send notifications to users! 7otifications are personali;ed, timely messages that can be sent to a variety of devices! 7otifications reflect subscriber preferences! (he subscriber enters a subscription to e#press an interest in information, such as "7otify me when the stoc: price of /dventure <or:s reaches KA0!00," or "7otify me when the strategy document my team is writing is updated!" / notification can be generated and sent to the user as soon as a triggering event occurs, or it can be generated and sent on a predetermined schedule that the user specifies! (he user%s subscription specifies when the notification should be generated and sent! 7otifications can be sent to a various devices, such as to a user%s mobile phone, personal digital assistant 13*/2, ,icrosoft <indows ,essenger, or e-mail account! +ecause these devices often accompany the user, notifications are ideal for sending high-priority information! "# erver Mobile 'dition

SQL Server 2000 shipped with SQL Server 2000 <indows .0 0dition, which is now SQL Server ,obile 0dition version G!0! / number of new :ey features in SQL Server ,obile 0dition relate to developers' -ou can create a SQL Server ,obile 0dition database on the des:top or on the device, directly

from SQL Server ,anagement Studio! -ou can also manipulate the schema of the SQL Server ,obile 0dition database directly from ,anagement Studio, regardless of whether the database resides on the mobile device or on the des:top! -ou can use SQL Server ,anagement Studio to run >ueries that target a SQL Server ,obile 0dition database on the device or on the des:top! -ou can also ta:e advantage of new SQL Server ,obile 0dition features that include an @,L showplan rendered in a graphical user interface format 8ust li:e native SQL Server and the ability to use >uery hints to override the >uery optimi;er in SQL Server ,obile 0dition! "or the first time, you can control the optimi;ation plan on a device! -ou can now code against SQL Server Integration Services 1SSIS2 ob8ects to e#change data! (he new S>l.e)esult set is derived from the SQL)esult set that is in SQL Server 200 ! (his allows SQL Server ,obile 0dition to have a true, scrollable, and updateable cursor! It also allows binding to data ob8ects that are on devices! -ou can code an application to synchroni;e data while leaving the main application open and you can have two separate applications access the same database on the device at the same time! -ou can get notifications that you can code into status bars that will give the synchroni;ation status! 3reviously, you had no way to :now how far synchroni;ation had progressed, to notify users that a device had not stopped responding! -ou can maintain the small si;e of the database through a much more aggressive page reclamation policy! -ou can share parameteri;ed >uery code with SQL Server synta#! "# erver 'xpress 'dition ,ore than ever, developers are ma:ing the most of relational databases to provide a rich end-user e#perience! 3rotecting and managing information inside these applications is critical! ,icrosoft SQL Server 0#press helps developers build robust and reliable applications by providing a free, easy-touse, and robust database! (oo often, database systems are overly comple# for building simple applications! ,icrosoft 4isual Studio 200 and SQL Server 0#press reduce this comple#ity by providing a simple but powerful development environment for building data-driven applications! *evelopers can design schemas, add data, and >uery local databases, all inside the 4isual Studio 200 environment! If developers need more advanced database features, then SQL Server 0#press can be seamlessly upgraded to more sophisticated versions of SQL Server! "igure shows the Query 0ditor interface in SQL Server 0#press ,anager!

Figure ; T%e "uery 'ditor in

"#

erver 'xpress Manager

/ new graphical user interface tool called SQL Server 0#press ,anager 1@,2 is freely available as a separate <eb download! @, allows easy database management and >uery analysis capabilities, has a small download si;e, and will be freely redistributable! @, supports connections to SQL Server 0#press and other SQL Server 200 editions, SQL Server 2000, and ,S*0 2000! / simplified connection dialog bo# guides the user through the selection of the instance and the authentication methods to be used! +oth local and remote connections are possible using @,! 5b8ect 0#plorer enumerates and displays the common ob8ects used, such as the instance, tables, stored process, and so on, in a hierarchical manner and helps the user visuali;e access to the database! /ll database management functionalities are available by invo:ing the right-clic: conte#t menu from 5b8ect 0#plorer! Some of the database management options to be e#posed include creating and modifying databases, tables, logins, and users! ,any of these common database operations are available as tas: wi;ards that guide the user through the process, while many others are available as tabbed window documents! "or instance, @, provides a 7ewB0dit *atabase document for creating new databases and editing e#isting databases! ,any database users prefer to manage their servers using (ransact-SQL, because this approach offers finer-grained control than using the graphical user interface! (he Query 0ditor in @, lets users develop and e#ecute (ransact-SQL statements and scripts! (he Query 0ditor has rich features such as :eyword color-coding and a results pane that returns results in a data grid! 0rror messages, if any, are also shown in the results pane! %op of page /usiness Intelligence SQL Server 200 furthers ,icrosoft leadership in the area of business intelligence 1+I2 through innovations in scalability, data integration, development tools, and rich analytics! SQL Server 200 enables scalable +I by putting critical, timely information in the hands of employees across your organi;ation! "rom the .05 to the information wor:er, employees will be able to >uic:ly and easily harness data to ma:e better decisions faster! (he comprehensive integration, analysis, and reporting capabilities of SQL Server 200 enable companies to e#tend the value of their e#isting

applications, regardless of the underlying platform! +I features include enhancements in the following areas' /n end-to-end integrated business intelligence platform Integration Services /nalysis Services )eporting Services Integration with the ,icrosoft 5ffice System 'nd!to!'nd Integrated /usiness Intelligence &latform SQL Server 200 is a complete +I platform that provides the features, tools, and functionality to build both classic and innovative :inds of analytical applications! (he following information introduces the tools that you will use to build an analytical application, and highlights new functionality that ma:es it easier than ever to build and manage comple# +I systems! (he SQL Server 200 +I toolset delivers end-to-end +I application integration' esign. +usiness Intelligence *evelopment Studio is the first integrated development environment designed for the +I developer! +uilt on 4isual Studio 200 , +usiness Intelligence *evelopment Studio delivers a rich, integrated, professional development platform for +I system developers! *ebugging, source control, and script and code development are available for all components of the +I platform! .ntegrate. SQL Server Integration Services 1SSIS2 has been rewritten to perform comple# data integration, transformation, and synthesis at high speed for very large data volumes! +usiness Intelligence *evelopment Studio ma:es building and debugging pac:ages positively fun! Integration Services, /nalysis Services, and )eporting Services wor: together to present a seamless view of data from heterogeneous sources! +na&!9e. ,icrosoft *ata ,ining has always been easy to use! 7ow it is even better with the addition of important new algorithms, including /ssociation )ules, (ime Series, )egression (rees, Se>uence .lustering, 7eural 7etwor:, and 7aLve +ayes! SQL Server 200 blurs the lines between relational and multidimensional databases! -ou can store data in the relational database, in the multidimensional database, or use the new proactive caching feature to get the best of both worlds! Important new analytical capabilities have been added to /nalysis Services cubes as wellE these include a Iey 3erformance Indicator 1I3I2 framewor:, ,*@ scripts, and other built-in advanced business analytics! (he )eporting Services report delivery and management framewor: enables easy distribution of comple# analytics to the widest possible audience! Re"ort. )eporting Services e#tends the ,icrosoft +I platform to reach the business user who needs to consume the analysis! )eporting Services is an enterprise-managed reporting environment, embedded and managed through <eb services! )eports can be personali;ed and delivered in a variety of formats, with a range of interactivity and printing options! .omple# analyses can reach a broad audience through the distribution of reports as a data source for downstream +I! 7ew with SQL Server 200 is the reporting tool, )eport +uilder!

$anage. SQL Server ,anagement Studio integrates the management of all SQL Server 200 components! +I practitioners will benefit from this e#tension of the server abilities you e#pect from the relational engineJscalability, reliability, availability, programmability, and so onJto the full set of +I platform components! Integration ervices

SQL Server 200 includes a redesigned enterprise data e#traction, transformation, and loading 10(L2 platform, called SQL Server Integration Services 1SSIS2! SSIS enables organi;ations to more easily integrate and analy;e data from multiple heterogeneous information sources! +y analy;ing data across an array of operational systems, organi;ations may gain a competitive edge through a holistic understanding of their business! 'nterprise 'T# &latform (his new platform is the successor to the popular feature in SQL Server 2000 called *ata (ransformation Services 1*(S2! SSIS is completely new for SQL Server 200 ! SSIS provides the breadth of features and very high-scale performance that is necessary to build enterprise-class 0(L applications! SSIS is fully programmable, embeddable, and e#tensibleJcharacteristics that ma:e it an ideal 0(L platform! /eyond Traditional 'T# SQL Server 200 supports nontraditional data 1<eb Services, @,L2 out of the bo#, in the following ways' SSIS brings analytics to the data without persisting the data! *ata mining and te#t mining can be done in the data flow! *ata mining and analytics are brought to the data flow for data >uality and data cleansing! Analysis ervices

<ith SQL Server 200 , /nalysis Services provides, for the first time, a unified and integrated view of all your business data as the foundation for your traditional reporting, online analytical processing 15L/32 analysis, and data mining! <nified Dimensional Model +y combining the best aspects of traditional 5L/3 analysis and relational reporting, /nalysis Services provides a metadata model that covers both sets of needs! / set of cubes and dimensions defined in /nalysis Services is referred to as a 6nified *imensional ,odel 16*,2! (he 6*, is a central metadata repository defining business entities, business logic, calculations, and metrics that serves as the source for all reports, spreadsheets, 5L/3 browsers, I3Is, and analytical applications! 6sing the powerful new *ata Source 4iew feature, the 6*, is mapped to a host of heterogeneous bac:-end data sources, providing a complete and integrated picture of the business regardless of the location of the data!

<ith the 6*,%s friendly descriptions of the business entities, navigation hierarchies, multiple perspectives, and even automatic translations to native languages, users will find it easy to e#plore the corporate business data! Data Mining SQL Server 200 *ata ,ining is the +I technology that helps you build comple# analytical models, and integrate those models with your business operations! /nalysis Services establishes new ground for data mining! +y creating an easy-to-use, e#tensible, accessible, and fle#ible platform, /nalysis Services data mining capabilities introduce data mining to organi;ations that previously would never have considered a data mining solution! (hrough an enterprise-class architecture, a deep integration with the SQL Server family of +I tools, and a rich set of other tools, /3Is, and algorithms, SQL Server enables the creation of a new breed of intelligent applications that enhance productivity, increase profits, and reduce costs by providing customi;ed data-driven solutions to a broad range of business problems! Reporting ervices

)eporting Services e#tends the ,icrosoft +I platform to reach the information wor:er who needs access to business data! )eporting Services is a server-based enterprise reporting environment, managed through <eb services! )eports can be delivered in a variety of formats, with a range of interactivity and printing options! .omple# analyses can reach a broad audience through the distribution of reports as a data source for downstream +I! /s an integrated component of SQL Server 200 , )eporting Services provides the following' / high-performance engine for processing and formatting reports! / complete set of tools for creating, managing, and viewing reports! /n e#tensible architecture and open interfaces for embedding reports or integrating reporting solutions in diverse I( environments! Relational and O#A& Reports )eports built on relational data are useful but the ability to add additional analytic capabilities ma:es such reporting powerful! )eporting Services enables you to easily build reports together or separately! SQL Server 200 supports both relational and 5L/3 data and provides a >uery editor for both, including SQL Query 0ditor and ,*@ Query 0ditor! Report /uilder )eport +uilder, a new component of SQL Server 200 )eporting Services, allows business users to create their own reports using a user-friendly model of their data! )eport +uilder ta:es advantage of the )eporting Services platform to bring ad hoc reporting to all end users! 6sers create and edit reports with the )eport +uilder client application! (he )eport +uilder user interface is built on top of familiar ,icrosoft 5ffice paradigms such as ,icrosoft 0#cel and ,icrosoft 3ower3oint! "igure C shows a sample )eport +uilder report!

Figure 5 Design Reports 3it% Report /uilder )eport +uilder is a .lic:5nce application deployed through the browser! 6sers start by selecting report layout templates containing predefined data sections such as tables, matrices, and charts! (hey drag and drop report items from the model to the design surface and set constraints to filter the report data! (he model contains all of the necessary information for the )eport +uilder to automatically generate the source >uery and retrieve the re>uested data! (he )eport +uilder also enables users to' /dd te#t and formatting to reports! .reate new fields and calculations defined using the model! 3review, print, and publish reports! 0#port report data to formats such as ,icrosoft 0#cel! Integration 3it% t%e Microsoft Office ystem

)eports served up by the )eport Server in )eporting Services can run in the conte#t of ,icrosoft Share3oint 3ortal Server and ,icrosoft 5ffice System applications such as ,icrosoft <ord and ,icrosoft 0#cel! -ou can use Share3oint features to subscribe to reports, create new versions of reports, and distribute reports! -ou can also open reports in <ord or 0#cel to view $(,L versions of the reports! %op of page <pgrading to "# erver ,00;

(he following are some tips for upgrading to SQL Server 200 '

6pgrade to SQL Server 200 from SQL Server A!0 or SQL Server 2000! )un 6pgrade /dvisor before upgrading to determine if any product changes are e#pected to brea: e#isting applications! (he SQL Server *atabase 0ngine, /nalysis Services, and )eporting Services can be upgraded by the setup program! SQL Server Integration Services, the replacement for *ata (ransformation Services 1*(S2, is installed side by side with *(S! -ou can run *(S pac:ages using the *(S runtime components! SQL Server 200 7otification Services is installed side by side with 7otification Services 2!0! -ou must migrate instances of 7otification Services to SQL Server 200 when you upgrade the SQL Server *atabase 0ngine! 6se the Surface /rea .onfiguration tool after upgrading to enable or disable SQL Server 200 services, networ: protocols, and features! "# erver &ricing and #icensing

(he family of SQL Server editions includes everything you need in one product for a comprehensive, out-of-the-bo# data storage, management, analysis, and reporting platform with fle#ible licensing that enables you to choose the solution that best fits your uni>ue needs! *esigned to scale from the largest enterprise down to the smallest business, SQL Sever provides the same performance, security, reliability, and business value to all customers! SQL Server supports implementations ranging from multi-terabyte data warehouses to 3oc:et 3. devices running SQL Server <indows ,obile 0dition! (he following table outlines the pricing and benefits for each edition of the SQL Server 200 product line! 7ote' +old type indicates a feature that is new for SQL Server 200 ! 0ach later edition includes the same functionality as the edition before it! /ll prices are in 6!S! dollars and reflect pricing for purchases within the 6nited States! &ricing and #icensing Edition Pricing Benefit Express )ree )astest way to learn" build" and deploy simple data.driven applications. Wor*group EF"G E@FG users' per 3ost affordable and easiest.to.use database solution for and growing businesses.

i!e #ne 5/< B.gigabyte &C8' :,3 si?e #ne or two 5/<s F.C8 :,3

"ey Features 6!=/ database si7e imple Reporting :eplication and SS8

D.C8 database 5lient 3anagement Studio 2mportIExport Limited :eplication /ublishing /ac9!up #og %ipping

processor

&server H ! smaller departments

&ricing and #icensing Edition Pricing Benefit Standard EJ" per 5omplete data processor E2"@GG &server H B users' management and analysis platform for medium businesses and larger departments.

i!e #ne to four 5/<s

"ey Features Database Mirroring 8asic E%L with ,nalysis Services Standard :eporting with :eporting Services (ata 3ining )ull :eplication and SS8 /ublishing 5lustering &supports two nodes' ,vailable in native F2.bit and JD.bit editions Supports 2tanium 2 and xJD Advanced database mirroring> complete online and parallel operations> and database snaps%ot ,dvanced analysis tools including full #L,/ and data mining ,dvanced reporting with customi?ed" high.scale" and ad hoc reporting ,dvanced E%L with complex data routing and transformation capabilities ,vailable in native F2. and JD.bit editions Supports 2tanium 2 and xJD 5lustering up to the limit of the operating system

<nlimited :,3 Standard #L,/ Server

Enterprise E2!" per processor EBF"! &server H 2! users'

)ully integrated data management and analysis platform for business.critical enterprise applications.

<nlimited cale and &artitioning

%op of page Introduction ,icrosoftM SQL ServerN 200 provides the ,icrosoftM <indows Server SystemN integrated server software with a database platform for the ne#t generation of connected, scalable, and reliable enterprise applications! (he breadth and depth of innovation in this version is in response to the needs of customers! (his white paper is targeted to database administrators, to give you an understanding of the new features in and capabilities of SQL Server 200 ! "rom many enhancements of e#isting features, to an entirely new security model, database administration is now more productive and in tune with the needs of the administrator! (he world of the *+/ is changing! *+/s now increasingly are as:ed by the organi;ations they wor: for to manage more systems with larger amounts of data, while at the same time organi;ations are trying to :eep I( costs the same or even to lower costs! Simultaneously, *+/s are being as:ed to give more of their time to help corporate developers to understand data models and the best data access paradigms for building reliable applications that perform to the scale that the corporation re>uires! <ith these tensions, *+/s need more from their database technologies in terms of enterprise manageability, scalability, and availability! SQL Server 200 provides the bedroc: foundation that *+/s can bet on to build their ne#t generation I( infrastructure! /t the core of SQL Server 200 are new infrastructure application capabilities! SQL Service +ro:er is a distributed application framewor: that provides a new form of scalability and reliability for asynchronous message delivery! (hough not new, ,icrosoftM SQL ServerN 7otification Services, )eporting Services, and SQL Server ,obile 0dition 1formerly called SQL Server .02 are all greatly enhanced in SQL Server 200 ! "# ervice /ro9er

5ver the last &0 years, the proliferation of e-commerce applications has created a need for increased process management across database applications! If you%ve ever built an order entry system designed for online customer ordering, you%re familiar with the comple#ities of the process at the bac: end! "or e#ample, when a customer places an order for a boo:, the order needs to commit transactions into the inventory, shipping, and credit card systems of the database, and must also send an order confirmation using another <eb application! <aiting for each of these processes to happen in order doesn%t scale well! SQL Server 200 provides a new scalable architecture for building asynchronous message routing! (he Service +ro:er technology allows internal or e#ternal processes to send and receive guaranteed, asynchronous messages by using e#tensions to normal (ransact-SQL data manipulation language 1*,L2! ,essages are sent to a >ueue in the same database as the sender, to another database in the same instance of SQL Server, or to an instance of SQL Server either on the same server or on a remote server! Service +ro:er brings the best of asynchronous messaging with the best transactional support available, the SQL Server relational engine! Reporting ervices

<ith the release of SQL Server 200 , ,icrosoft e#tends a ma8or new component of its integrated business intelligence 1+I2 platform! SQL Server )eporting Services e#pands the ,icrosoft business intelligence vision by ma:ing it easy to get the right information to the right people, in any business environment! )eporting Services is a complete, server-based platform for creating, managing, and delivering traditional and interactive reports! It includes everything you need "out of the bo#" to create,

distribute, and manage reports! /t the same time, the modular design and the e#tensive application programming interfaces 1/3Is2 of )eporting Services enable software developers, data providers, and enterprises to integrate reporting with legacy systems or third party applications! )eporting Services ships with SQL Server 200 and includes' / complete set of tools for creating, managing, and viewing reports! /n engine for hosting and processing reports! /n e#tensible architecture and open interfaces for embedding reports or integrating the solution in diverse I( environments! )otification ervices

7otification Services is a platform for developing and deploying applications that generate and send notifications to users! 7otifications are personali;ed, timely messages that can be sent to a wide variety of devices! 7otifications reflect the preferences of the subscriber! (he subscriber enters a subscription to e#press an interest in information! "or e#ample, "notify me when the stoc: price of /dventure <or:s reaches KA0!00," or "notify me when the strategy document my team is writing is updated!" / notification can be generated and sent to the user as soon as a triggering event occurs, or can be generated and sent on a predetermined schedule that the user specifies! (he user%s subscription specifies when the notification should be generated and sent! 7otifications can be sent to a wide variety of devices! "or e#ample, a notification can be sent to a user%s mobile phone, personal digital assistant 13*/2, ,icrosoft <indowsM ,essenger, or e-mail account! +ecause these devices often accompany the user, notifications are ideal for sending highpriority information! "# erver Mobile 'dition

,icrosoftM SQL ServerN 2000 shipped with ,icrosoft SQL Server 2000 <indows .0 0dition! (his is now called ,icrosoft SQL Server ,obile 0dition, and can be developed and managed through the new SQL Server ,anagement Studio! -ou can now create a SQL Server ,obile 0dition database on the des:top or on the device, directly from SQL Server ,anagement Studio! -ou can also manipulate the schema of the SQL Server ,obile 0dition database directly from ,anagement Studio, regardless of whether the database resides on the mobile device or on the des:top! -ou can create subscription databases and pull data from a SQL Server publication database through ,anagement Studio into a SQL Server ,obile 0dition database either on the des:top or on the device! Lastly, you can run >ueries through ,anagement Studio that will target a SQL Server ,obile 0dition database on the device or on the des:top, and you can ta:e advantage of new SQL Server ,obile 0dition features that include an @,L showplan rendered in a F6I format 8ust li:e native SQL Server, and the ability to use >uery hints to override the >uery optimi;er! SQL Server ,obile 0dition is integrated with *ata (ransformation Services 1*(S2! -ou can now access nonSQL Server data sources and bring data directly into a SQL Server ,obile 0dition database on the des:top by using *(S ob8ects in ,icrosoftM 4isual StudioM 200 applications! SQL Server ,obile 0dition also ta:es direct advantage of new merge replication performance improvements that greatly increase the scalability of a single server with thousands of simultaneously connected SQL Server ,obile 0dition subscription databases!

/s you can see, there are many changes to the infrastructure of the SQL Server platform! (he database engine provides a mature and reliable infrastructure for scalability, reliability, and security! (he framewor:s mentioned above participate in failover clustering, bac:up and restore, and transactional logging, and you can administer them from SQL Server ,anagement Studio! %op of page (ig% Availability and calability

SQL Server 200 ma:es significant strides in database availability and reliability! *owntime falls into two categories, planned and unplanned! 6nplanned downtime is really disaster recovery, and re>uires special planning and infrastructure! "ailover clustering can be used to :eep the system online during planned maintenance, and this technology is enhanced in SQL Server 200 ! /dditionally, SQL Server 200 introduces database mirroring, a new technology that provides an easy to use option for database availability! Failover $lustering SQL Server 200 failover clustering provides high availability support for server-wide failure! <ith failover clustering, the operating system and SQL Server wor: together to provide failure protection by providing redundant hardware and an automated mechanism to move the database server to secondary hardware in the event that the primary fails! "ailover clustering supports up to eight nodes, depending on which edition of ,icrosoftM <indows ServerN 200G is running on the server! SQL Server has e#tended the abilities of failover clustering to SQL Server /nalysis Services, 7otification Services, and SQL Server replication! <ith SQL Server 2000, SQL Server /gent and other 8ob management and processing capabilities were not covered by failover clustering! 7ow, the technologies are clustering awareE SQL Server failover clustering is now a more complete serverlevel redundancy solution! %op of page 'xtending (ig% Availability to All Database Applications SQL Server 200 e#tends the data availability frontier in new directions with copy-on-write technology! SQL Server 200 introduces a new high-performance transaction transmission technology for database-level availabilityJdatabase mirroring! <ith database mirroring, transactions changes are shipped to another server as the logs are written! /ll logged changes to the database instance are >uic:ly available for copying to another location! Database Mirroring SQL Server 200 significantly enhances the capabilities of log shipping by providing you with a database mirroring option! *atabase mirroring allows continuous streaming of the transaction log from a source server to a single destination server! In the event of a failure of the primary system, applications can reconnect to the database on the secondary server almost immediately, without waiting for recovery to finish! (he secondary instance detects failure of the primary server within several seconds and accepts database connections almost immediately after detecting a failure! 6nli:e failover clustering, the mirrored server is fully cached and ready to accept wor:loads because of its synchroni;ed state! / database mirroring system re>uires three servers that are running SQL Server, and each server has a specific architectural role' the "principal," the "mirror," and the "witness!" (he principal server is the server on which applications connect and where transactions are processed! (he mirroring

server is the target of transaction log records, which can be applied either synchronously or asynchronously! (he mirroring server e#ists in a state that does not allow direct read access to the data! /s transaction log records are generated on the principal server, they are continuously replayed on the mirroring server, producing a state in which the mirroring server is normally behind the principal server only by the time it ta:es to replay the log written in a single log write! (his provides a duplicate of the data at a point in time! (he witness server is an arbiter within the architecture, providing the tie-brea:ing "vote" in determining which server is "the principal" and which is "the mirror"! (wo servers in the architecture must agree in order for a server to be designated the principal and thus the target of all transactions! "rom a client application point of view, the failover from one server to the ne#t is automatic and nearly instantaneous! (he server that is "the witness" is only needed in instances were automatic failover is needed! 5ne of the most important things about database mirroring, besides the e#tremely low latency provided during a failover from the principal to the mirror, is the ability to synchroni;e changes in both directions! In the event that the principal goes offline and the application fails over to the mirror, the mirror then becomes the principal server in the architecture! <hen the failed server comes bac: online, it is designated the mirror and transaction log records from the principal are applied to it to bring it into synchroni;ation with the state of the database at that point in time! *atabase mirroring wor:s on standard server hardware and re>uires no special storage or controllers! <hile database mirroring provides continuous support, there are many scenarios where a "snapshot" of the database is needed' as a "warm to cold" standbyE as a test and development databaseE or as a reporting database! .opy-on-write technology provides this capability in the form of a database view! Database naps%ot

SQL Server 200 introduces the capacity for administrators to generate and use a read-only, stable view of a database! (he database snapshot provides this capability without the overhead of creating a complete copy of the database or storage re>uirement! /s the primary database diverges from the snapshot, the snapshot gets its own copy of original pages when they are modified! (he snapshot may be used to recover an accidental change to a database by simply reapplying the pages from the snapshot to the primary database! Replication )eplication is designed to increase data availability by distributing the data across multiple databases! /vailability is increased by allowing applications to scale up out the SQL Server read wor:load and across databases, or by synchroni;ing offline data with mobile user databases that occasionally connect! SQL Server 200 enhances the availability options in these two spectrums by using a new peer-to-peer model that provides a new topology in which databases can be synchroni;ed transactionally with any identical peer database! (his increases database availability by enabling a higher "read" wor:load against the distributed data while also providing the fault tolerance of the redundant distributed databases! / new option for replicating through http'BB and https'BB increases the availability of data for mobile scenarios, which enables synchroni;ation over the Internet! (he new 5racle 3ublishing feature enables replication from 5racle databases into SQL Server, improving the availability of heterogeneous data within the enterprise! %op of page

Minimi7ing t%e Maintenance .indo3 5ne of the biggest headaches for database administrators is having to restart the database server for changes in SQL Server system parameters! SQL Server 200 has substantially reduced the number of parameters that re>uire restart! -ou can now alter the database server affinities for .36 and )/, memory without being re>uired to restart! /s part of the development cycle, every feature that previously re>uired a restart now no longer re>uires a restart! <hen planned or unplanned downtime does happen, the time that it ta:es to completely recover has been reduced by the "on the fly" database capabilities in SQL Server 200 that use rolling restores! /dditionally, SQL Server provides the ability to create and manage inde#es online, so that you no longer have to ta:e the database offline for these tas:s! Online Index Operations (he ability to create, rebuild, or drop an inde# online is an enhanced feature of SQL Server 200 that augments the inde#ing capabilities of earlier versions of SQL Server! (he online inde# option allows concurrent modifications 1updates, deletes, and inserts2 to the underlying table or clustered inde# data and any associated inde#es during inde# data definition language 1**L2 e#ecution! "or e#ample, while a clustered inde# is in the process of being rebuilt, you can continue to ma:e updates to the underlying data and can perform >ueries against the data! In earlier versions of SQL Server, inde# **L operations such as rebuilding held e#clusive loc:s on the underlying data and the associated inde#es, preventing modifications or >ueries until the inde# operation was complete! <ith support for online inde# operations, you can add the inde#es without interfering with access to the tables or other e#isting inde#es! /dditionally, the server wor:load allows for inde# operations to ta:e advantage of parallel processing! Online Restore SQL Server 200 introduces the ability to perform a restore operation while an instance of SQL Server is running! 5nline restoration capabilities improve the availability of SQL Server because only the data that is being restored is unavailable! (he rest of the database remains online and available! 0arlier versions of SQL Server re>uire that you bring a database offline before you perform a restoration! -ou can choose between two options when you use online restore' /n online file-level restore of an entire database file /n online restore of a filegroup, because a filegroup is nothing more than a collection of files! Fast Recovery SQL Server 200 improves the availability of SQL Server databases with a new faster recovery option! 6sers can reconnect to a recovering database after the transaction log has been rolled forward! 0arlier versions of SQL Server re>uired users to wait until incomplete transactions had rolled bac:, even if the users did not need to access the affected parts of the database! )eadBwrite operations can continue in parallel with the undo phase of recovery! $owever, operations that access the loc:ed data for the undo phase will e#perience normal bloc:ing within the database until the undo operation releases loc:s on that data! Mirrored /ac9ups

0arlier versions of SQL Server supported only a single copy of a given bac:up! If bac:up media was damaged, roll-forward would ta:e longer, or would fail! In SQL Server 200 , bac:up media can now be mirrored! "or e#ample, you can set up four tape devices to bac: up two media families, with a mirror for each media family! (he corresponding volumes in each mirror have identical content, ma:ing them interchangeable at restore time! -ou can implement up to four mirrored bac:up sets! %op of page Database Development> Deployment> and Management? A Revolutionary Tool et <hile many features in SQL Server are evolutionary, there is one area of SQL Server that is revolutionaryJthe tool set! SQL Server ,anagement Studio is the first database administration suite that allows users to connect to and wor: with SQL Server, /nalysis Services, and a SQL Server ,obile 0dition database! ,oreover, you can also manage *(S, )eporting Services, and 7otification Services applications! <hether you%re a serious (ransact-SQL developer or are new to SQL Server, the SQL Server tool set provides the fle#ible and intelligent architecture that you need to accomplish database tas:s! (he SQL Server 200 tool set is focused on three primary usage scenarios' authoring, management, and operations! 0ach of these scenarios has uni>ue tools and features! Let%s start with a loo: at the new tools for development! "# erver Management tudio "uery 'ditor

SQL Server 200 replaces SQL Query /naly;er with the Query 0ditor, a component of SQL Server ,anagement Studio and the primary tool for designing and testing (ransact-SQL statements, >ueries, batches, and scripts interactively! <ith the Query 0ditor, you can write new scripts in (ransact-SQL and ,ultidimensional 0#pressions 1,*@2! -ou can also edit scripts that are created from files or that are automatically generated from SQL Server ,anagement Studio dialog bo#es or from SQL 5b8ect 0#plorer! (he Query 0ditor offers' Statement auto-completion, a list of possible ob8ects that might follow certain :eywords for system stored procedures! 3arameter tipping for system stored procedures to provide a list of parameters that follow stored procedures and user-defined functions! .olor-coding of (ransact-SQL and ,*@ synta# to improve the readability of comple# statements! (emplates to speed development of the (ransact-SQL statements for creating SQL Server ob8ects! 0diting of e#ecute and parse >ueries with SQL.,* e#tensions! )esults presented in either a grid or a free-form te#t window, or in @,L form, when using the @,L column or @,L functions for (ransact-SQL! Fraphical representation of the showplan information, presenting the logical steps built in to the e#ecution plan of a (ransact-SQL statement!

%op of page Deploying "# erver ,00; Tools for Deployment and $onfiguration ,any database administrators need to have greater control of SQL Server during the configuration and set up stages of database application deployment! (he ability in SQL Server 200 to alter basic parameters and locations of files provides greater fle#ibility for application security and resource management! (he following sections present an overview of some of the changes in SQL Server 200 that relate to setup and configuration! Microsoft .indo3s Installer Setup for SQL Server 200 uses ,icrosoft <indows Installer to completely integrate the installation of SQL Server features in a single feature tree! ,inimum and typical installation modes are no longer implemented! Instead, Setup displays a feature tree with default options selectedE you can then customi;e installation by selecting and clearing items on the feature tree and specifying installation paths! (his version of <indows Installer also supports remote setup and multiple instance configurations! $onsistency $%ec9er Setup for SQL Server 200 provides a Setup .onsistency .hec:er 1S..2, a new feature that chec:s and validates the target computer before setup begins! 6sing ,icrosoft <indows ,anagement Instrumentation 1<,I2 technology, the consistency chec:er prevents setup failures that are due to unsupported configurations on local, remote, or clustered target computers! If Setup can fi# failed chec: items, you can allow Setup to ta:e the necessary action! 5therwise, the consistency chec:er will guide you to a solution for each bloc:ing issue before Setup can continue! Failure Reporting Setup for SQL Server 200 includes improved failure reporting and e#tensible alerts! If an error occurs during installation, Setup determines a failure e#it code, provides a descriptive error message, recommends corrective actions to ta:e for resolution, and points you to the setup log! Setup also saves the log from each installation! $omputer Manager .omputer ,anager is a replacement for the .lient 7etwor: 6tility, SQL Server 7etwor: 6tility, and SQL Server Service ,anager! .omputer ,anager in SQL Server 200 provides the ability to wor: with /nalysis Services, )eporting Services, previous versions of SQL Server, and full-te#t search and ,icrosoft Search! "rom within .omputer ,anager, you can define networ: protocols for client and server networ: access! .omputer ,anager is supported by <,I! %op of page Tools for Management and &erformance Tuning "# Ob4ect 'xplorer (he new SQL Server ,anagement Studio integrates the functionality of 0nterprise ,anager and /nalysis Services from earlier versions of SQL Server! SQL 5b8ect 0#plorer provides all of the same functionality as 0nterprise ,anager! 0nhancements include greater scalability when you e#plore database ob8ects, and the integration of scripting across 5L(3 and online analytical

processing 15L/32 databases! SQL Server 200 and SQL Server ,obile 0dition include support for /nalysis Services, *(S, )eporting Services, and 7otification Services! SQL 5b8ect 0#plorer provides all of the administration capabilities that you e#pect from 0nterprise ,anager, including Security, SQL Server /gent, SQL ,ail, and the other SQL Server sub systems, which include *(S, 7otification Services, and )eporting Services! Maintenance &lans In earlier versions of SQL Server, you create database maintenance plans by using a single wi;ard, and they create multiple agent 8obs as an output! (hese agent 8obs themselves contain commandline parameters that indicate the function to perform! /lthough the *atabase ,aintenance <i;ard answers a few :ey customer scenarios 1such as full database bac:ups2, it is not possible to either define other scenarios such as differential bac:ups or to easily obtain e#actly which (ransact-SQL command was actually being e#ecuted for the maintenance tas:! SQL Server 200 provides a completely renovated design that provides the ability for you to define almost any SQL Server related maintenance tas:! (he ,aintenance 3lan feature in SQL Server 200 utili;es the power of the design surfaces in *(S *esigner, allowing you to define wor:flow within your maintenance plan! "# &rofiler and Database Tuning Advisor SQL Server 200 introduces a new inde# tuning tool called the *atabase (uning /dvisor 1*(/2! (he *(/ has the ability to suggest inde# and table partition changes to a database structure! /dditionally, SQL 3rofiler has undergone e#tensive revision in SQL Server 200 , resulting in greater performance and providing deeper visibility into the server! "ollowing are the biggest changes to SQL 3rofiler' 3rofiling of /nalysis Services! SQL 3rofiler now supports capturing events that are raised by /nalysis Services! Saving of traced Showplan as @,L! 7ew @,L-based Showplan events have been added and you can now save Showplan results in an @,L format! )esults that are saved in this manner can later be loaded for graphical Showplan display in SQL Server ,anagement Studio! *eadloc: events also use @,L te#t in returning deadloc: information! /s with Showplan events, deadloc: events may also be persisted to dis: as @,L and later re-graphed in SQL Server ,anagement Studio! (his includes a graphical deadloc: statement! Saving trace results as @,L! -ou can save trace results in an @,L format in addition to the standard formats of /7SI, 67I.5*0, and 50,! 5nce saved in @,L format, trace results can be edited and loaded bac: into SQL 3rofiler for replay! /ggregating view! -ou can choose an aggregate option and select a :ey for aggregation! (his will enable you to see a view that shows the column on which the aggregation was performed, along with a count for the number of rows that ma:e up the aggregate value! SQL 3rofiler can correlate performance monitor counters with SQL Server or /nalysis Services events! -ou can select from a pre-defined set of performance monitor counters and save them at specified time intervals, while also independently collecting a SQL Server or /nalysis Services trace! (race and performance data that overlap in time will be correlated by relating the graphically represented counters to trace results 1which are presented in tabular form2! %o3plan 'n%ancements

,icrosoft SQL Server 200 introduces enhancements to Showplan and *eadloc: (races that provide you with additional capabilities for tuning database servers! (hese enhancements include' Showplan results are saved in an @,L format, which later can be loaded for graphical display in the Query 0ditor! (he ability to save Showplan results in an @,L format provides a number of benefits for performance tuning' Showplans can be saved, transferred to another location, and viewed without the need to have an underlying database! -ou can use an e#ported Showplan to aid in identifying discrepancies between different in-house or remote databases! "#$MD SQL.,* is the new command prompt utility for wor:ing with SQL Server 200 ! It replaces the 5SQL command prompt utility! (he SQL.,* utility allows you to enter (ransact-SQL statements, system procedures, and script files at the command prompt! SQL.,* supports the functionality of 5SQL or ISQL, but also introduces a richer set of commands allowing for better operation in application scripts, such as ,icrosoftM 4isual +asicM for /pplications 14+/2 scripts! Dedicated Administrator $onnection SQL Server 200 introduces a dedicated administrator connection to access a running server even if the server is not responding or is otherwise unavailable! (his allows you to e#ecute diagnostic functions or (ransact-SQL statements in order to troubleshoot problems on a server! (he connection is activated by members of the s!sa)min fi#ed server role and is only available through the SQL.,* command prompt utility locally, or from a remote machine! In earlier versions of SQL Server, it is not possible to connect to a server that is not responding to a SQL Server connection! (o use the dedicated administrator connection, e#ecute the SQL.,* utility at the command prompt by using the -/ switch to specify a dedicated connection! "rom there, you can diagnose and repair the problem! "# Management Ob4ects SQL ,anagement 5b8ects 1S,52 is a new set of programming ob8ects that e#pose the functionality of the SQL Server database! S,5 is implemented as a ,icrosoftM !70( "ramewor: assembly! -ou can use S,5 to automate repetitive or common SQL Server administrative tas:s, such as programmatically retrieving configuration settings, creating new databases, applying (ransact-SQL scripts, creating SQL Server /gent 8obs, and scheduling bac:ups! (he S,5 ob8ect model e#tends and replaces *istributed ,anagement 5b8ects 1*,52, which was included with earlier versions of SQL Server! S,5 includes many improvements over *,5, including a !70( "ramewor: ob8ect model, advanced scripting operations, offline management of SQL Server configuration settings, partial or delayed instantiation of ob8ects, capture mode e#ecution, delegated e#ecution, and releasable ob8ect state! /lthough S,5 is a !70( "ramewor: class library, its functionality is still available through .omponent 5b8ect ,odel 1.5,2 1late bound only2! Some e#amples of S,5 utili;ation are' /n Internet service provider 1IS32 needs to provide delegation of SQL Server administration to its

clients in a shared database environment! (he IS3 wants to provide a <eb interface and limit the types of tas:s that can be performed! (he development team at the IS3 develops an /S3!70( application by using the S,5 ob8ect model to build a simple administrative interface, which the IS3 provides to its customers! / database administrator wants to delegate basic administration tas:s to the $elp des:, such as adding new users for the company%s SQL Server databases! /n I( developer creates a simple <eb interface built with the S,5 ob8ect model, and deploys the interface on a secure area of the company%s intranet! "# erver Agent

In SQL Server 2000, SQL Server /gent 8obs run under the account that created the 8ob! / pro#y account can be specified to run .md0#ec and .5,-based 8obs! SQL Server 200 introduces the following changes to SQL Server /gent security' (he creation of an /gent user role! 5nly users that are e#plicitly added will be able to add, edit, or e#ecute SQL Server /gent 8obs! (he ability for system administrators to create one or more pro#y accounts and include pro#ies for other SQL Server subsystems, including *(S! (he ability to assign users or groups 1SQL Server groups2 to use pro#y accounts! 0very SQL Server 200 management action can be scheduled to be run by SQL Server /gent from SQL Server, using (ransact-SQL or SQL ,anagement 5b8ects 1S,52! SQL Server 200 provides new ob8ects and counters for SQL Server /gent that <indows System ,onitor can use to monitor the activity of SQL Server /gent, including enabled 8obs, enabled alerts, enabled schedules, active 8obs, active alerts, percentage of 8ob success, and so on! (he counters also enable the ability to configure alerts that are triggered by SQL Server /gent performance counter conditions! Transact! "# 'n%ancements 0nhancements to (ransact-SQL in SQL Server 200 reflect greater conformity to the /7SI-OO SQL specification, as well as response to re>uests from customers! (his section highlights some of the changes to (ransact-SQL, many of which focus on greater e#pressiveness in >ueries! (he new common table e#pression 1.(02 functionality provides the ability to generate >uery batches in cases where a derived table would be used today! / .(0 is a temporary named result set that can be referred to by a defining statement! In its simple form, you can thin: of a .(0 as an improved version of a derived table! -ou refer to a .(0 in the ")5, clause of a >uery, similar to the way you refer to derived tables and views! .(0 functionality provides a fle#ible and e#pressive way to reorgani;e normali;ed data! 5ne of the biggest additions to (ransact-SQL is the recursive >uery, which furthers the ability to manipulate relational data! / recursive >uery is a new >uery type that provides generation of a bill of materials or a hierarchical result set! (here are new 3I45( and 673I45( operators! (hese operators perform a manipulation on an input table-valued e#pression and produce an output table as a result set! (he 3I45( operator rotates rows into columns, and may perform aggregations or other mathematical calculations along the way! It widens the input table e#pression based on a given pivot column, generating an output table with a column for each uni>ue value in the column! (he 673I45( operator performs an opposite operation to 3I45(, rotating columns into rows! It

narrows the input table e#pression based on a pivot column! (hese new recursive >ueries provide a way to reshape data! Several (ransact-SQL enhancements focus on the ability to formulate results based on the application of an operator! (he new /33L- relational operator allows you to invo:e a specified table-valued function once per each row of an outer table e#pression! -ou specify /33L- in the ")5, clause of a >uery, similar to the way you use the P5I7 relational operator! <ith the /33Loperator, SQL Server 200 allows you to refer to a table-valued function in a correlated sub>uery! /33L- comes in two forms' .)5SS /33L- and 56(0) /33L-! .)5SS /33L- invo:es a tablevalued function for each row in an outer table e#pression! -ou can refer to columns of the outer table as arguments to the table-valued function! .)5SS /33L- returns a unified result set out of all of the results that are returned by the individual invocations of the table-valued function! If the table-valued function returns an empty set for a given outer row, that outer row is not returned in the result! 56(0) /33L- is very similar to .)5SS /33L-, with the addition that it also returns rows from the outer table for which the table-valued function returned an empty set! "or more information about the capabilities in SQL Server 200 for reshaping and manipulating data, see SQL Server +oo:s 5nline! SQL Server 200 moderni;es the transactional capabilities of >ueries by adding an error handling capability! SQL Server 200 introduces a simple but powerful e#ception-handling mechanism in the form of a ()-B./(.$ (ransact-SQL construct! (ransaction abort errors that cause a batch to terminate in earlier versions of SQL Server can be caught and handled in SQL Server 200 ! "or e#ample' SET XACT_ABORT ON BEGIN TRY BEGIN TRAN INSERT INTO T1 VALUES(1) /* perform other !t"#"t$ */

%RINT &After INSERT'& CO((IT EN) TRY BEGIN CATC* TRAN_ABORT ROLLBAC+ /* perform !orre!t"#e %RINT &INSERT f ",e-'& EN) CATC* /dditionally, there are new language constructs in SQL Server 200 for security, replication, 7otification Services, @,L, and all of the !70( "ramewor: features! (o learn more about all of the new functionality in SQL Server 200 , see SQL Server +oo:s 5nline! ecurity 'n%ancements !t"#"t$ */

SQL Server 200 ma:es significant enhancements to the security model of the database platform, with the intention of providing more management and security options to both developers and administrators! / considerable investment has been made in a number of features covering a broad spectrumE for e#ample, enforcing policies for SQL Server login passwords 1in the authentication space2, providing for more granularity in terms of specifying permissions at various scopes 1in the authori;ation space2, and allowing for the separation of owners and schemas 1in the security management space2! "urthermore, :eeping in mind core security tenets li:e "reduction in surface area" and "principle of least privileges," and sound principles li:e "secure defaults and designs," certain product-wide changes are also being prepared for the final version of the product! T3o pecial calability Features

(here are two scalability features in SQL Server 200 that are worth mentioning for very large database scenarios! Snapshot isolation level allows users to access the last row that was committed, by using a transitionally consistent view of the database! (his new isolation level provides the following benefits' Increased data availability for read-only applications 7on-bloc:ing read operations allowed in an 5L(3 environment /utomatic mandatory conflict detection for write transactions Simplified migration of applications from 5racle to SQL Server "or e#ample, loc:ing can cause bloc:s between applications that are reading and writing the same data simultaneously! If a transaction changes a row, another transaction cannot read the row until the write commits! <ith snapshot isolation, the reader can access the previous committed value of the row! (he second special scalability feature is table partitioning! <hile the concept of partitioning data across tables, databases, and servers is not new to the world of databases, SQL Server 200 provides a new infrastructure capability for partitioning of tables across filegroups in a database! $ori;ontal partitioning allows division of a table into smaller groupings based on a partitioning scheme! (able partitioning is designed for very large databases, from hundreds of gigabytes to terabytes and beyond! 4ery large database 14L*+2 >uery performance is improved with partitioning! +y partitioning across a range of partitioning column values, subsets of data can be managed and reassigned to other tables >uic:ly and efficiently! (o learn more about partitioning, see SQL Server +oo:s 5nline! %op of page $onclusion SQL Server 200 provides the technologies and capabilities that organi;ations and database administrators count on! (he spectrum of new and enhanced functionality that affect database administration is immense! (his paper provides only an introduction to all of the new functionality in SQL Server 200 ! %op of page

Appendix )e3 Data Types :$L )ata t!"e. /n @,L data type that allows you to store an @,L fragment or document in SQL Server databases! Instances of an @,L data type can be columns in a table, functions, or stored procedure arguments, or variables in a function or stored procedure! In addition, the @,L data type can be speciali;ed by indicating an associated @,L schema that provides both a validation constraint and type information for the data for the @,L instance! -ou perform operations on an instance of an @,L data type by using built-in @,L >uery methods! (hese methods accept >ueries and data manipulation statements that are appropriate for @,L data! -ou can then specify >ueries 1@Query2 against the @,L that is stored in the @,L data type variable or column, and apply updates 1using insert, update, or delete2 to the @,L instance! -ou can also use an @S* to create an inde# for the @,L column, which will improve >uery performance! ;archar(ma<)! (he nvarchar1ma#2 and varbinary1ma#2 data types hold up to 2 gigabytes 1F+2 of data and are useful alternatives to the te#t, nte#t, and image data types!

You might also like