comparison sql2000 to sql2005 ii

Upload: pavan-krishna-o

Post on 03-Jun-2018

223 views

Category:

Documents


0 download

TRANSCRIPT

  • 8/12/2019 Comparison SQL2000 to SQL2005 II

    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! romprogramming to administrative capabilities, this version of SQL Server tops all others and itenhances many e#isting SQL Server 2000 features! $ere I%ll outline the &0 most significant newfeatures 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 #pressions 1.(s, which return a record set in a statement, and theability 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 !7( compliant languagesuch as .9, /S3!7( or 4+!7( to build ob8ects 1stored procedures, triggers, functions, etc!! (hisenables you to e#ecute !7( code in the *+S to ta:e advantage of the !7( functionality! It ise#pected to replace e#tended stored procedures in the SQL Server 2000 environment as well ase#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 coupledmanner! / message is sent, processed and responded to, completing the transaction! (his greatlye#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 tablenatively! 5rgani;ations had to rely on third-party products to address this need! SQL Server 200has 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!

  • 8/12/2019 Comparison SQL2000 to SQL2005 II

    2/40

    give users new capabilities when wor:ing with SQL Server! or e#ample, it allows multiplesearches, or a search and data entry! (he bottom line is that one client connection can havemultiple active processes simultaneously!

    More information from Microsoft.

    ,. eicate aministrator connectionIf 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 singlediagnostic connection to SQL Server even if the server is having an issue!

    More information from Microsoft.

    . SQL Server ntegration Services (SSS)SSIS has replaced *(S 1*ata (ransformation Services as the primary (L 1#traction,(ransformation and Loading tool and ships with SQL Server free of charge! (his tool, completelyrewritten since SQL Server 2000, now has a great deal of fle#ibility to address comple# datamovement!

    For more information from Microsoft.

    1/. ata0ase mirroringIt%s not e#pected to be released with SQL Server 200 at the )( in 7ovember, but I thin: thisfeature has great potential! *atabase mirroring is an e#tension of the native high-availabilitycapabilities! 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 Servicesand )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 aboutthe new functionality and how organi;ations are implementing it with 3ro8ect )eal!

    Top 10 Features for Database AdministrationFeature Description

    Database

    Mirroring

    Extend log shipping capabilities with the database 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 RestoreWith SQL Server 2!" database administrators are able to

    perform a restore operation while an instance of SQL Server isrunning. #nline restore improves the availability of SQL Server

    because only the data being restored is unavailable$ the rest of

    the database remains online and available.Online

    Indexing

    Operations

    %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

    http://go.microsoft.com/fwlink/?LinkId=44142http://www.microsoft.com/technet/prodtechnol/sql/2005/sqlydba.mspxhttps://www.microsoftelearning.com/eLearning/offerDetail.aspx?offerPriceId=66792https://www.microsoftelearning.com/eLearning/offerDetail.aspx?offerPriceId=66792http://www.microsoft.com/technet/prodtechnol/sql/2005/dbmirror.mspxhttp://www.microsoft.com/technet/prodtechnol/sql/2005/dbmirror.mspxhttp://www.microsoft.com/sql/bi/ProjectREAL/default.mspxhttp://go.microsoft.com/fwlink/?LinkId=44142http://www.microsoft.com/technet/prodtechnol/sql/2005/sqlydba.mspxhttps://www.microsoftelearning.com/eLearning/offerDetail.aspx?offerPriceId=66792http://www.microsoft.com/technet/prodtechnol/sql/2005/dbmirror.mspxhttp://www.microsoft.com/sql/bi/ProjectREAL/default.mspx
  • 8/12/2019 Comparison SQL2000 to SQL2005 II

    3/40

    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

    after the transaction log has been rolled forward.

    tandards!based

    Information

    Access

    ,ny ob-ect" data source" or business intelligence component canbe exposed using standardsbased protocols such as S#,/ and

    0%%/1eliminating the need for a middletier listener" such as S"

    to access a Web services interface that is exposed by SQL Server

    2!."# erver

    Management

    tudio

    SQL Server 2! includes SQL Server 3anagement Studio" a new

    integrated suite of management tools with the functionality to

    develop" deploy" and troubleshoot SQL Server databases" as well

    as enhancements to previous functionality.

    DedicatedAdministrator

    $onnection

    SQL Server 2! provides a dedicated administrator connectionthat administrators can use to access a running server even if the

    server is loc*ed or otherwise unavailable. %his capability enables

    administrators to troubleshoot problems on a server by executing

    diagnostic functions or %ransactSQL statements.naps%ot

    Isolation

    Snapshot solation &S' level is provided at the database level.

    With S" users can access the last committed row using a

    transitionally consistent view of the database. %his capability

    provides greater scalability.

    Data

    &artitioning

    (ata partitioning is enhanced with native table and index

    partitioning that enables efficient manageability of large tables

    and indexes.Replication

    'n%ancements

    )or distributed databases" SQL Server 2! provides

    comprehensive schema change &((L' replication" nextgeneration

    monitoring capabilities" built in replication from #racle to SQL

    Server" merge replication over https" and significant merge

    replication scalability and performance improvements.

    ,dditionally" the peertopeer transactional replication featureimproves support for data scale out using replication.

    %op of page

    Top 10 Features for DevelopmentFeature Description

    (osted

    $ommon#anguage

    Runtime

    With SQL Server 2! developers can create database ob-ects

    using familiar languages such as 3icrosoft 4isual 56 .7E% and

    3icrosoft 4isual 8asic .7E%. (evelopers can also create two

    http://www.microsoft.com/sql/prodinfo/features/#tophttp://www.microsoft.com/sql/prodinfo/features/#tophttp://www.microsoft.com/sql/prodinfo/features/#top
  • 8/12/2019 Comparison SQL2000 to SQL2005 II

    4/40

  • 8/12/2019 Comparison SQL2000 to SQL2005 II

    5/40

    %op of page

    Top 10 Features for /usiness IntelligenceFeature Description

    Analysis

    ervices

    With SQL Server 2! ,nalysis Services moves into the realm of

    real time analytics. )rom scalability enhancements to deep

    integration with 3icrosoft #ffice" SQL Server 2! helps extend

    business intelligence to every level of your business.Integration

    ervices

    I

    SQL Server ntegration Services &SSS' is a next generation data

    integration platform that can integrate data from any source. SSS

    provides a scalable and extensible platform that empowers

    development teams to build" manage" and deploy integration

    solutions to meet uni+ue integration needs.Data Mining 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

    decisions.Reporting

    ervices

    SQL Server :eporting Services is a comprehensive" serverbased

    reporting solution designed to help you author" manage" and

    deliver both paperbased and interactive Webbased reports.$lustering

    upport

    ,nalysis Services improves availability with support for failover

    clustering" enhanced multiinstance support" and support for

    bac*ing up and restoring ,nalysis Services ob-ects and data.2ey

    &erformance

    Indicators

    >ey performance indicators &>/s' provide businesses with the

    capability to define graphic" customi?able business metrics to help

    generate and trac* *ey corporate benchmar*s.calability and

    &erformance

    )eatures such as parallel partition processing" creation of remote

    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

    with a userfriendly enterprise data model.&roactive

    $ac%ing

    /roactive 5aching combines 3#L,/ class +uery performance with

    realtime 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

    http://www.microsoft.com/sql/prodinfo/features/#tophttp://www.microsoft.com/sql/prodinfo/features/#tophttp://www.microsoft.com/sql/prodinfo/features/#top
  • 8/12/2019 Comparison SQL2000 to SQL2005 II

    6/40

    Feature Description

    highspeed +uerying and for isolating endusers from overloading

    the relational databases. %he structure of the cache is

    automatically derived from the

  • 8/12/2019 Comparison SQL2000 to SQL2005 II

    7/40

    an e#tensible management infrastructure that can be easily programmed by using SQLanagement 5b8ects, enabling users to customi;e and e#tend their management environment andindependent software vendors 1IS4s to build additional tools and functionality to further e#tend thecapabilities 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, /nalysisServices, )eporting Services, 7otification Services, and SQL Server obile dition across largenumbers of distributed servers and databases! *atabase administrators can perform several tas:sat the same time, such as authoring and e#ecuting a >uery, viewing server ob8ects, managing anob8ect, monitoring system activity, and viewing online help! SQL Server anagement Studio hosts adevelopment environment for authoring, editing, and managing scripts and stored procedures using(ransact-SQL, ultidimensional #pressions, @L for /nalysis, and SQL Server obile dition!anagement Studio is readily integrated with source control! anagement Studio also hosts toolsfor scheduling SQL Server /gent 8obs and managing maintenance plans to automate dailymaintenance and operation tas:s! (he integration of management and authoring in a single toolcoupled with the ability to manage all types of servers provides enhanced productivity for databaseadministrators!

    SQL Server 200 e#poses more than A0 new measures of internal database performance andresource usage, ranging from memory, loc:ing, and scheduling to transactions and networ: anddis: IB5! (hese dynamic management views 1*4s provide greater transparency and visibility intothe database and a powerful infrastructure for proactive monitoring of database health andperformance!

    "# Management Ob4ects

    SQL anagement 5b8ects 1S5 is a new set of programming ob8ects that e#poses all of themanagement functionality of the SQL Server database! In fact, anagement Studio was built withSQL anagement 5b8ects! S5 is implemented as a icrosoft !7( ramewor: assembly! oucan use S5 to automate common SQL Server administrative tas:s, such as programmaticallyretrieving configuration settings, creating new databases, applying (ransact-SQL scripts, creatingSQL Server /gent 8obs, and scheduling bac:ups! (he S5 ob8ect model is a more secure, reliable,and scalable replacement for *istributed anagement 5b8ects 1*5, which was included withearlier versions of SQL Server!

    Availability

    Investments in high-availability technologies, additional bac:up and restore capabilities, andreplication 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 criticalenterprise 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 asingle destination server! In the event of a failure of the primary system, applications canimmediately reconnect to the database on the secondary server! (he secondary instance detectsfailure 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 orcontrollers! igure & shows the basic configuration of database mirroring!

  • 8/12/2019 Comparison SQL2000 to SQL2005 II

    8/40

    Figure 1 /asic $onfiguration of Database Mirroring

    Failover $lustering

    ailover clustering is a high-availability solution that e#ploits icrosoft uic:ly recover from an accidental change to a database by simply reapplying theoriginal 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 recoveryoption! 6sers can reconnect to a recovering database after the transaction log has been rolledforward! arlier versions of SQL Server re>uired users to wait until incomplete transactions hadrolled 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*/. to access a runningserver even if the server is not responding or is otherwise unavailable! (his enables you to e#ecute

  • 8/12/2019 Comparison SQL2000 to SQL2005 II

    9/40

    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 availablethrough the SQL.* command prompt tool either locally or from a remote computer!

    Online Operations Index Operations and Restore

    (he ability to create, rebuild, or drop an inde# online is an enhanced feature of SQL Server 200that augments the inde#ing capabilities of earlier versions of SQL Server! (he online inde# option

    allows concurrent modifications 1updates, deletes, and inserts to the underlying table or clusteredinde# data and any associated inde#es during inde# data definition language 1**L e#ecution! uire that you bring a databaseoffline before you restore the database!

    Replication

    )eplication is designed to increase data availability by distributing the data across multipledatabase servers! /vailability is increased by allowing applications to scale out the SQL Serverread wor:load across databases! SQL Server 200 offers enhanced replication using a new peer-to-peer model that provides a new topology in which databases can be synchroni;ed transactionallywith any identical peer database!

    calability

    Scalability advancements such as table partitioning, snapshot isolation, and CD-bit support enableyou to build and deploy your most demanding applications using SQL Server 200! (he partitioningof 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 themanagement of the database in smaller, more manageable chun:s!

  • 8/12/2019 Comparison SQL2000 to SQL2005 II

    10/40

    Increased data availability for read-only applications!

    7onbloc:ing read operations allowed in an online transaction processing 15L(3 environment!

    /utomatic mandatory conflict detection for write transactions!

    Simplified migration of applications from 5racle to SQL Server!

    Replication Monitor

  • 8/12/2019 Comparison SQL2000 to SQL2005 II

    11/40

    SQL Server 200 clustering supports erberos authentication against a SQL Server 200 virtualserver! /dministrators can specify icrosoft

  • 8/12/2019 Comparison SQL2000 to SQL2005 II

    12/40

    Improved development tools

    #tensibility

    Improved data access

    @L and

  • 8/12/2019 Comparison SQL2000 to SQL2005 II

    13/40

    %erormance an sca&a0i&it!.+ecause managed code compiles to native code prior toe#ecution, you can achieve significant performance increases in some scenarios!

    +y using languages such as 4isual +asic !7( and .9, you can capitali;e on .L) integration towrite code that has more comple# logic and is more suited for computation tas:s! /dditionally,4isual +asic !7( and .9 offer ob8ect-oriented capabilities such as encapsulation, inheritance, andpolymorphism! 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 withlarge amounts of code! (he ability to logically and physically organi;e code into assemblies andnamespaces is a huge benefit that enables you to better find and relate different pieces of code in alarge database implementation!

    anaged code is more efficient than (ransact-SQL at processing numbers and managingcomplicated e#ecution logic, and provides e#tensive support for string handling, regulare#pressions, and so on! /lso, with the functionality that is available in the !7( ramewor: classlibrary, you have full access to thousands of prebuilt classes and routines that you can accesseasily from any stored procedure, trigger, or user-defined function! verything from improved string-handling functions, math functions, date operations, access to system resources, advancedencryption 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 verificationto ensure that the code issafe to run! or e#ample, the code is chec:ed to ensure that memory is not read that has not beenwritten to!

    Transact!"# 'n%ancements

    (ransact-SQL has long been the basis for all SQL Server programmability! SQL Server 200provides many new language capabilities for developing scalable database applications! (hese

    enhancements include error handling, new recursive >uery capabilities, and support for new SQLServer *atabase ngine capabilities! (ransact-SQL enhancements in SQL Server 200 increaseyour e#pressive powers in >uery writing, enabling you to improve the performance of your code ande#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 #pressions1*@, and @L for /nalysis 1@L/! Integration with the 4isual Studio development environmentprovides more efficient development and debugging of line-of-business and business intelligence1+I 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 reportingservices! 6se the +usiness Intelligence *evelopment Studio graphical user interface 1F6I todesign SQL Server Integration Services 1SSIS pac:ages for data-management applications! SSISpac:ages are designed, developed, and debugged in +usiness Intelligence *evelopment Studio bydragging tas:s from the toolbo#, setting their properties, and connecting tas:s with precedenceconstraints! igure 2 shows the interface in 4isual Studio for +usiness Intelligence *evelopmentStudio!

  • 8/12/2019 Comparison SQL2000 to SQL2005 II

    14/40

    Figure , /usiness Intelligence Development tudio Interface in -isual tudio

    -isual tudio Integration

    SQL Server 200 and 4isual Studio 200 together provide deeper levels of integration between thedatabase and the application development environment than ever before! *evelopers now have theability to create .L) stored procedures, functions, user-defined types, and user-defined aggregatesdirectly from within the 4isual Studio development environment! (hey can deploy these newdatabase 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 Studiopro8ects, thus providing an even greater level of integration and security to your developmentprocesses!

    $ross!Tier and $ross!#anguage Debugging

    SQL Server 200 and 4isual Studio 200 together provide even deeper integration in the area ofapplication debugging! (he combination lets you seamlessly debug both .L) and (ransact-SQLcode 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 developercomputer or stored in the SQL Server database!

    'xtensibility

    ser-eine T!"es an +ggregates

    6ser-defined types in SQL Server 200 are not an ob8ect relational e#tensibility mechanism! (heyare a way to e#tend the scalar type system of the database! (he scalar type system includes thecolumnar types that ship with SQL Server 1types such as int, nvarchar, uni>ueidentifier, and so on!

  • 8/12/2019 Comparison SQL2000 to SQL2005 II

    15/40

  • 8/12/2019 Comparison SQL2000 to SQL2005 II

    16/40

    directly, without using a middle-tier listener such as icrosoft Internet Information Services 1IIS!SQL Server e#poses a uest perconnection, 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 driverstransparently retrieve the data in large chun:s 1(abular *ata Stream buffer-si;ed chun:s so thatapplication re>uests are satisfied without a round trip to the server 1as in the case of servercursors! (he application can use a simple row-at-a-time programming model without compromisingperformance! (he /)S feature removes the current restriction in which an open default result setbloc: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 Serverinstance fails, wor: can be shifted to the bac:up server automatically! (his re>uires an instance to

  • 8/12/2019 Comparison SQL2000 to SQL2005 II

    17/40

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

    *M# upport

    /dvancements such as the native @L data type and @Query help organi;ations seamlesslyconnect internal and e#ternal systems! SQL Server 200 supports both relational and @L datanatively, so enterprises can store, manage, and analy;e data in the format that best suits theirneeds! Support for e#isting and emerging open standards such as $yperte#t (ransfer 3rotocol1$((3, @L, Simple 5b8ect /ccess 3rotocol 1S5/3, @Query, and @L Schema definitionlanguage 1@S* 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 andeffective use of the power and the numerous advantages of @L! or e#ample, if @L is stored asa string, you can insert or select an entire document, or even retrieve contiguous bytes from it, butyou cannot >uery into the contents of the document itself! +y providing the @L data type, SQLServer 200 enables you to >uery portions of an @L document, validate that the documentconforms to an @L schema, and even modify the contents of the @L document in place! It alsointegrates traditional, relational data with data in unstructured or semistructured @L documents inways that are not possible with SQL Server 2000! In SQL Server 200, @L data is stored asbinary large ob8ects 1+L5+s in an internal representation that allows efficient reparsing and somecompression!

    / collection of @L schemas can be associated with a column of type @L! (his providesvalidation for constraints, inserts, and updates, and typing of values inside stored @L data, as wellas optimi;ations for storage and >uery processing! SQL Server 200 also provides several **Lstatements 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! ueries against variables and columns ofthe @L data type using the latter%s associated methods! /s with many @L standards, the

  • 8/12/2019 Comparison SQL2000 to SQL2005 II

    18/40

    In SQL Server 200, you can develop @L

  • 8/12/2019 Comparison SQL2000 to SQL2005 II

    19/40

    Figure 6 ervice /ro9er Arc%itecture

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

    )otification ervices

    icrosoft SQL Server 7otification Services is a platform for developing and deploying applicationsthat generate and send notifications to users! 7otifications are personali;ed, timely messages thatcan be sent to a variety of devices!

    7otifications reflect subscriber preferences! (he subscriber enters a subscription to e#press aninterest in information, such as "7otify me when the stoc: price of /dventure

  • 8/12/2019 Comparison SQL2000 to SQL2005 II

    20/40

  • 8/12/2019 Comparison SQL2000 to SQL2005 II

    21/40

    Figure ; T%e "uery 'ditor in "# erver 'xpress Manager

    / new graphical user interface tool called SQL Server #press anager 1@ is freely available asa separate uery analysis capabilities,has a small download si;e, and will be freely redistributable! @ supports connections to SQLServer #press and other SQL Server 200 editions, SQL Server 2000, and S* 2000! /simplified connection dialog bo# guides the user through the selection of the instance and theauthentication methods to be used! +oth local and remote connections are possible using @!5b8ect #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 thedatabase!

    /ll database management functionalities are available by invo:ing the right-clic: conte#t menu from

    5b8ect #plorer! Some of the database management options to be e#posed include creating andmodifying databases, tables, logins, and users! any of these common database operations areavailable as tas: wi;ards that guide the user through the process, while many others are availableas tabbed window documents! or instance, @ provides a 7ewBdit *atabase document forcreating new databases and editing e#isting databases!

    any database users prefer to manage their servers using (ransact-SQL, because this approachoffers finer-grained control than using the graphical user interface! (he Query ditor in @ letsusers develop and e#ecute (ransact-SQL statements and scripts! (he Query ditor has richfeatures such as :eyword color-coding and a results pane that returns results in a data grid! rrormessages, 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+I throughinnovations in scalability, data integration, development tools, and rich analytics! SQL Server 200enables scalable +I by putting critical, timely information in the hands of employees across yourorgani;ation! rom the .5 to the information wor:er, employees will be able to >uic:ly and easilyharness data to ma:e better decisions faster! (he comprehensive integration, analysis, andreporting capabilities of SQL Server 200 enable companies to e#tend the value of their e#isting

    http://www.microsoft.com/sql/prodinfo/overview/#tophttp://www.microsoft.com/sql/prodinfo/overview/#tophttp://www.microsoft.com/sql/prodinfo/overview/#top
  • 8/12/2019 Comparison SQL2000 to SQL2005 II

    22/40

    applications, regardless of the underlying platform! +I features include enhancements in thefollowing 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 tobuild both classic and innovative :inds of analytical applications! (he following informationintroduces the tools that you will use to build an analytical application, and highlights newfunctionality 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 developmentenvironment designed for the +I developer! +uilt on 4isual Studio 200, +usiness Intelligence*evelopment Studio delivers a rich, integrated, professional development platform for +I systemdevelopers! *ebugging, source control, and script and code development are available for allcomponents of the +I platform!

    ntegrate.SQL Server Integration Services 1SSIS has been rewritten to perform comple# data

    integration, transformation, and synthesis at high speed for very large data volumes! +usinessIntelligence *evelopment Studio ma:es building and debugging pac:ages positively fun!Integration Services, /nalysis Services, and )eporting Services wor: together to present aseamless view of data from heterogeneous sources!

    +na&!9e.icrosoft *ata ining has always been easy to use! 7ow it is even better with theaddition of important new algorithms, including /ssociation )ules, (ime Series, )egression(rees, Se>uence .lustering, 7eural 7etwor:, and 7ave +ayes! SQL Server 200 blurs the linesbetween relational and multidimensional databases! ou can store data in the relationaldatabase, in the multidimensional database, or use the new proactive caching feature to get thebest of both worlds! Important new analytical capabilities have been added to /nalysis Servicescubes as wellE these include a ey 3erformance Indicator 13I framewor:, *@ scripts, and

    other built-in advanced business analytics! (he )eporting Services report delivery andmanagement framewor: enables easy distribution of comple# analytics to the widest possibleaudience!

    Re"ort.)eporting Services e#tends the icrosoft +I platform to reach the business user whoneeds to consume the analysis! )eporting Services is an enterprise-managed reportingenvironment, embedded and managed through

  • 8/12/2019 Comparison SQL2000 to SQL2005 II

    23/40

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

    Integration ervices

    SQL Server 200 includes a redesigned enterprise data e#traction, transformation, and loading1(L platform, called SQL Server Integration Services 1SSIS! SSIS enables organi;ations to moreeasily integrate and analy;e data from multiple heterogeneous information sources! +y analy;ingdata across an array of operational systems, organi;ations may gain a competitive edge through aholistic 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*(S! SSIS is completely new for SQL Server 200! SSIS provides thebreadth of features and very high-scale performance that is necessary to build enterprise-class (Lapplications! SSIS is fully programmable, embeddable, and e#tensibleJcharacteristics that ma:e it

    an ideal (L platform!

    /eyond Traditional 'T#

    SQL Server 200 supports nontraditional data 1

  • 8/12/2019 Comparison SQL2000 to SQL2005 II

    24/40

  • 8/12/2019 Comparison SQL2000 to SQL2005 II

    25/40

    Figure 5 Design Reports 3it% Report /uilder

    )eport +uilder is a .lic:5nce application deployed through the browser! 6sers start by selectingreport 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 filterthe report data! (he model contains all of the necessary information for the )eport +uilder toautomatically generate the source >uery and retrieve the re>uested data! (he )eport +uilder alsoenables users to'

    /dd te#t and formatting to reports!

    .reate new fields and calculations defined using the model!

    3review, print, and publish reports!

    #port report data to formats such as icrosoft #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

  • 8/12/2019 Comparison SQL2000 to SQL2005 II

    26/40

    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 tobrea: e#isting applications!

    (he SQL Server *atabase ngine, /nalysis Services, and )eporting Services can be upgradedby the setup program!

    SQL Server Integration Services, the replacement for *ata (ransformation Services 1*(S, isinstalled 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! oumust migrate instances of 7otification Services to SQL Server 200 when you upgrade the SQLServer *atabase ngine!

    6se the Surface /rea .onfiguration tool after upgrading to enable or disable SQL Server 200services, networ: protocols, and features!

    "# erver &ricing and #icensing

    (he family of SQL Server editions includes everything you need in one product for acomprehensive, out-of-the-bo# data storage, management, analysis, and reporting platform withfle#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 providesthe same performance, security, reliability, and business value to all customers! SQL Serversupports implementations ranging from multi-terabyte data warehouses to 3oc:et 3. devicesrunning SQL Server

  • 8/12/2019 Comparison SQL2000 to SQL2005 II

    27/40

    &ricing and #icensingEdition Pricing Benefit i!e "ey Features

    Standard J" per

    processor

    2"@GG

    &server H

    B users'

    5omplete data

    management and

    analysis platform for

    medium businesses

    and larger

    departments.

    #ne to four

    5/ and

    database snaps%ot

    ,dvanced analysis tools

    including full #L,/ and

    data mining

    ,dvanced reporting with

    customi?ed" highscale"

    and ad hoc reporting

    ,dvanced E%L with

    complex data routing

    and transformation

    capabilities

    ,vailable in native F2

    and JDbit editions

    Supports tanium 2 and

    xJD

    5lustering up to the limit

    of the operating system

  • 8/12/2019 Comparison SQL2000 to SQL2005 II

    28/40

    %op of page

    Introduction

    icrosoftM SQL ServerN 200 provides the icrosoftM uires!

  • 8/12/2019 Comparison SQL2000 to SQL2005 II

    29/40

    distribute, and manage reports! /t the same time, the modular design and the e#tensive applicationprogramming interfaces 1/3Is 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 indiverse I( environments!

    )otification ervices

    7otification Services is a platform for developing and deploying applications that generate and sendnotifications to users! 7otifications are personali;ed, timely messages that can be sent to a widevariety of devices!

    7otifications reflect the preferences of the subscriber! (he subscriber enters a subscription toe#press an interest in information! or e#ample, "notify me when the stoc: price of /dventure

  • 8/12/2019 Comparison SQL2000 to SQL2005 II

    30/40

    /s you can see, there are many changes to the infrastructure of the SQL Server platform! (hedatabase 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, andtransactional 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 fallsinto two categories, planned and unplanned! 6nplanned downtime is really disaster recovery, andre>uires special planning and infrastructure! ailover clustering can be used to :eep the systemonline during planned maintenance, and this technology is enhanced in SQL Server 200!

    /dditionally, SQL Server 200 introduces database mirroring, a new technology that provides aneasy to use option for database availability!

    Failover $lustering

    SQL Server 200 failover clustering provides high availability support for server-wide failure!

  • 8/12/2019 Comparison SQL2000 to SQL2005 II

    31/40

    server is the target of transaction log records, which can be applied either synchronously orasynchronously! (he mirroring server e#ists in a state that does not allow direct read access to thedata! /s transaction log records are generated on the principal server, they are continuouslyreplayed on the mirroring server, producing a state in which the mirroring server is normally behindthe principal server only by the time it ta:es to replay the log written in a single log write! (hisprovides 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 architecturemust agree in order for a server to be designated the principal and thus the target of alltransactions! rom a client application point of view, the failover from one server to the ne#t isautomatic and nearly instantaneous! (he server that is "the witness" is only needed in instanceswere automatic failover is needed!

    5ne of the most important things about database mirroring, besides the e#tremely low latencyprovided during a failover from the principal to the mirror, is the ability to synchroni;e changes inboth directions! In the event that the principal goes offline and the application fails over to themirror, the mirror then becomes the principal server in the architecture! uires no special storage orcontrollers!

  • 8/12/2019 Comparison SQL2000 to SQL2005 II

    32/40

    Minimi7ing t%e Maintenance .indo3

    5ne of the biggest headaches for database administrators is having to restart the database serverfor changes in SQL Server system parameters! SQL Server 200 has substantially reduced thenumber of parameters that re>uire restart! ou can now alter the database server affinities for .36and )/ memory without being re>uired to restart! /s part of the development cycle, every featurethat previously re>uired a restart now no longer re>uires a restart! ueries against the data! In earlier versions ofSQL Server, inde# **L operations such as rebuilding held e#clusive loc:s on the underlying dataand the associated inde#es, preventing modifications or >ueries until the inde# operation wascomplete! uire that you bring a database offline before youperform 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 recoveryoption! 6sers can reconnect to a recovering database after the transaction log has been rolledforward! arlier versions of SQL Server re>uired users to wait until incomplete transactions hadrolled 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 withinthe database until the undo operation releases loc:s on that data!

    Mirrored /ac9ups

  • 8/12/2019 Comparison SQL2000 to SQL2005 II

    33/40

    arlier versions of SQL Server supported only a single copy of a given bac:up! If bac:up mediawas damaged, roll-forward would ta:e longer, or would fail! In SQL Server 200, bac:up media cannow be mirrored! or e#ample, you can set up four tape devices to bac: up two media families, witha 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 Toolet

    ueries, batches, and scripts interactively!

  • 8/12/2019 Comparison SQL2000 to SQL2005 II

    34/40

    %op of page

    Deploying "# erver ,00;

    Tools for Deployment and $onfiguration

    any database administrators need to have greater control of SQL Server during the configurationand set up stages of database application deployment! (he ability in SQL Server 200 to alter basicparameters and locations of files provides greater fle#ibility for application security and resourcemanagement! (he following sections present an overview of some of the changes inSQL Server 200 that relate to setup and configuration!

    Microsoft .indo3s Installer

    Setup for SQL Server 200 uses icrosoft

  • 8/12/2019 Comparison SQL2000 to SQL2005 II

    35/40

    processing 15L/3 databases! SQL Server 200 and SQL Server obile dition include support for/nalysis Services, *(S, )eporting Services, and 7otification Services! SQL 5b8ect #plorerprovides all of the administration capabilities that you e#pect from nterprise anager, includingSecurity, 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 command-line parameters that indicate the function to perform! /lthough the *atabase aintenance

  • 8/12/2019 Comparison SQL2000 to SQL2005 II

    36/40

    icrosoft SQL Server 200 introduces enhancements to Showplan and *eadloc: (races thatprovide 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 inthe Query ditor!

    (he ability to save Showplan results in an @L format provides a number of benefits forperformance tuning' Showplans can be saved, transferred to another location, and viewed withoutthe need to have an underlying database!

    ou can use an e#ported Showplan to aid in identifying discrepancies between different in-house orremote databases!

    "#$MD

    SQL.* is the new command prompt utility for wor:ing with SQL Server 200! It replaces the5SQL 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 inapplication scripts, such as icrosoftM 4isual +asicM for /pplications 14+/ scripts!

    Dedicated Administrator $onnection

    SQL Server 200 introduces a dedicated administrator connection to access a running server evenif the server is not responding or is otherwise unavailable! (his allows you to e#ecute diagnosticfunctions or (ransact-SQL statements in order to troubleshoot problems on a server! (heconnection is activated by members of the s!saminfi#ed server role and is only available throughthe 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 1S5 is a new set of programming ob8ects that e#pose the functionalityof the SQL Server database! S5 is implemented as a icrosoftM !7( ramewor: assembly! oucan use S5 to automate repetitive or common SQL Server administrative tas:s, such asprogrammatically retrieving configuration settings, creating new databases, applying (ransact-SQLscripts, creating SQL Server /gent 8obs, and scheduling bac:ups!

    (he S5 ob8ect model e#tends and replaces *istributed anagement 5b8ects 1*5, which wasincluded with earlier versions of SQL Server! S5 includes many improvements over *5,including a !7( ramewor: ob8ect model, advanced scripting operations, offline management ofSQL Server configuration settings, partial or delayed instantiation of ob8ects, capture modee#ecution, delegated e#ecution, and releasable ob8ect state! /lthough S5 is a !7( ramewor:class library, its functionality is still available through .omponent 5b8ect odel 1.5 1late boundonly! Some e#amples of S5 utili;ation are'

    /n Internet service provider 1IS3 needs to provide delegation of SQL Server administration to its

  • 8/12/2019 Comparison SQL2000 to SQL2005 II

    37/40

    clients in a shared database environment! (he IS3 wants to provide a

  • 8/12/2019 Comparison SQL2000 to SQL2005 II

    38/40

    narrows the input table e#pression based on a pivot column! (hese new recursive >ueries provide away to reshape data!

    Several (ransact-SQL enhancements focus on the ability to formulate results based on theapplication of an operator! (he new /33L relational operator allows you to invo:e a specifiedtable-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! uery!

    /33L comes in two forms' .)5SS /33L and 56() /33L! .)5SS /33L invo:es a table-valued function for each row in an outer table e#pression! ou can refer to columns of the outertable as arguments to the table-valued function! .)5SS /33L returns a unified result set out ofall of the results that are returned by the individual invocations of the table-valued function! If thetable-valued function returns an empty set for a given outer row, that outer row is not returned in theresult! 56() /33L is very similar to .)5SS /33L, with the addition that it also returns rowsfrom the outer table for which the table-valued function returned an empty set! or more informationabout 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 handlingcapability! 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 toterminate in earlier versions of SQL Server can be caught and handled in SQL Server 200! ore#ample'

    SET XACT_ABORT ON

    BEGIN TRY

    BEGIN TRAN

    INSERT INTO T1 VALUES(1)

    /* perform other !t"#"t$ */

    %RINT &After INSERT'&

    COIT

    EN TRY

    BEGIN CATC TRAN_ABORT

    ROLLBAC+

    /* perform !orre!t"#e !t"#"t$ */

    %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 !7( ramewor: features! (o learn more about all of thenew functionality in SQL Server 200, see SQL Server +oo:s 5nline!

    ecurity 'n%ancements

  • 8/12/2019 Comparison SQL2000 to SQL2005 II

    39/40

    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 andadministrators! / considerable investment has been made in a number of features covering a broadspectrumE for e#ample, enforcing policies for SQL Server login passwords 1in the authenticationspace, providing for more granularity in terms of specifying permissions at various scopes 1in theauthori;ation space, and allowing for the separation of owners and schemas 1in the securitymanagement space!

    urthermore, :eeping in mind core security tenets li:e "reduction in surface area" and "principle ofleast privileges," and sound principles li:e "secure defaults and designs," certain product-widechanges 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 largedatabase scenarios! Snapshot isolation level allows users to access the last row that wascommitted, by using a transitionally consistent view of the database! (his new isolation levelprovides 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 samedata simultaneously! If a transaction changes a row, another transaction cannot read the row untilthe write commits! 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 databaseadministrators count on! (he spectrum of new and enhanced functionality that affect databaseadministration is immense! (his paper provides only an introduction to all of the new functionality inSQL Server 200!

    %op of page

    http://www.microsoft.com/technet/prodtechnol/sql/2005/#tophttp://www.microsoft.com/technet/prodtechnol/sql/2005/#tophttp://www.microsoft.com/technet/prodtechnol/sql/2005/#tophttp://www.microsoft.com/technet/prodtechnol/sql/2005/#tophttp://www.microsoft.com/technet/prodtechnol/sql/2005/#tophttp://www.microsoft.com/technet/prodtechnol/sql/2005/#top
  • 8/12/2019 Comparison SQL2000 to SQL2005 II

    40/40

    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 storedprocedure arguments, or variables in a function or stored procedure! In addition, the @L datatype can be speciali;ed by indicating an associated @L schema that provides both a validationconstraint 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 @Ldata! ou can then specify >ueries 1@Query against the @L that is stored in the @L data typevariable or column, and apply updates 1using insert, update, or delete to the @L instance! oucan also use an @S* to create an inde# for the @L column, which will improve >ueryperformance!

    ;archar(ma