An Overview of SQL Server 2005 For The Database Administrator
An Overview of SQL Server 2005 For The Database Administrator
An Overview of SQL Server 2005 For The Database Administrator
By Eric Brown
/w EWCALQoo+h
Table of Contents
1. Overview
2. What is an Index?
3. Why Use an Index?
4. Types of Indexes?
○ 4.1 Clustered
○ 4.2 Non-Clustered
5. Uniqueness
6. Creating a Table
7. Creating an Index
○ 7.1 Creating an Index - Table Designer
○ 7.2 Creating an Index – Transact-SQL
○ 7.3 Drop an Index
8. Index and Statistics
9. Summary
10. References
11. History
1. Overview
Human needs have increased tremendously. Now people are doing much more composite
tasks than ever before. The society has become very complex, a person has to work with
huge amount of information every day. In order to work with the enormous information,
we must have a system where we can store, manipulate and share the information all over
the world. It is one of the core reasons for introducing Database Management Systems
(DBMS) as well as Relational Database Management Systems (RDBMS) now-a-days.
So, one thing is clear to us that we store and manipulate data / information into a
database, where the database contains various types of tables for storing various types of
data / information.
Developers can create tables of a database; it would be possible to stop at this point and
just start working with our data from here. However this would not be one of our best
choices, but why? Because it is not really a good idea for better performances, let’s take
an example:
“A library has a huge collection of books, files, etc... A student requests the librarian for
a book of Microsoft SQL Server 2008, if we think without an index the librarian had to
find this without any help s/he has to search one by one! Which must be time consuming;
so with a proper arrangement, that is with the help of an index, it very much easier and
faster to find out the desired one.”
There are many ways to create an index, but first of all we need to know what is an index
is and how it is held within SQL Server.
2. What is an Index?
A SQL table explanation is not good enough for getting the desired data very quickly or
sorting the data in a specific order. What we actually need for doing this is some sort of
cross reference facilities where for certain columns of information within a table, it
should be possible to get whole records of information quickly. But if we consider a huge
amount of data in a table, we need some sort of cross reference to get to the data very
quickly. This is where an index within SQL Server comes in.
So an index can be defined as:
• “An index is an on-disk structure associated with a table or views that
speed retrieval of rows from the table or view. An index contains keys
built from one or more columns in the table or view”. These keys are
stored in a structure (B-tree) that enables SQL Server to find the row or
rows associated with the key values quickly and efficiently.”
• “An index is a database object created and maintained by DBMS. It is
essentially a list of the contents of a column or group of columns.
Indexes are ordered so that extremely first search can be computed
through them to find data.”
CREATE TABLE
[ database_name.[ owner ] . | owner. ] table_name
( { < column_definition >
| column_name AS computed_column_expression
| < table_constraint > } [ ,...n ]
)
In this article, we will not discuss database tables. I hope that every one knows the basic
concepts about database tables.
More information about database tables can be found at:
• SQL Database Table
• Create Table
7. Creating an Index
As we discuss what an index is, why we use an index, types of indexes, etc, we are going
to discuss how to create an index. There are two ways of creating an index they are as
follows:
• Creating an Index using SQL Server Table Designer
• Creating an Index using Transact-SQL
7.1 Creating an Index using by SQL Server Table Designer
SQL Server Table designer is an excellent feature to manage various tables designing
creation, modification, indexing and so much more. Here you need to follow the step(s)
below to create an index using the SQL Table designer.
Step(s)
1. Open your SQL Server Enterprise Management Studio and choose your
database for creating a table index. Now select your desired table and
open the Table Design window. The following figure shows how to do
this.
2. A window will appear where you will find all the available inputs for
creating a Table. You just need to input the columns name, data type
length and also you may set the columns to allow null value or not.
Note that you can set a default value of a column. The following figure
will show you how you can perform all of this:
Figure 2 (How to set table columns, data type, length, etc.)
3. Well, now you know how to create a table. Let's see how to set an
index in a table. Select the column by clicking your mouse button, a
new popup menu will appear, select/click the Indexes/Keys for opening
a new window where you can configure the columns for indexing. The
following figure will show how to set an index.
You can configure the index as clustered or non-clustered from the Create as
clustered properties. Figure 4 shows the configuration of clustered or non-
clustered indexes by default.
So we discussed how to create an index by using SQL Server Table Designer. Let’s try to
create an index by using Transact-SQL.
7.2 Creating an Index – Transact-SQL
If we want to create an index by using Transact – SQL , we must know the columns
detail for index creation. A sample syntax is given below.
Syntax
Collapse
11. History
• 16th August, 2009: Initial post
• 26th August, 2009: Reformation
License
This article, along with any associated source code and files, is licensed under The Code
Project Open License (CPOL)
Bottom of Form
Microsoft SQL Server 2005 Product Overview
Published: April 1, 2005
By Michelle Dumler
Summary: This paper provides an overview of the new benefits and functionality
available in SQL Server 2005.
On This Page
Introduction
Microsoft SQL Server 2005 Overview
What’s New in SQL Server 2005
Windows Server System Common Engineering Roadmap
Introduction
Organizations today face numerous data challenges; for example, the need for faster and
more data-driven decisions, the need to increase the productivity and flexibility of
development staff, and pressure to reduce overall Information Technology budgets while
at the same time scaling the infrastructure to meet ever-increasing demands.
The next release of Microsoft® SQL Server™ is designed to help enterprises address
these challenges. Microsoft SQL Server 2005 is a next-generation data management and
analysis solution that delivers increased security, scalability, and availability to enterprise
data and analytical applications, while making them easier to build, deploy, and manage.
Building on the strengths of SQL Server 2000, SQL Server 2005 provides an integrated
data management and analysis solution that will help organizations of any size to:
• Build, deploy, and manage enterprise applications that are more secure, scalable,
and reliable.
• Maximize Information Technology productivity by reducing the complexity of
building, deploying, and managing database applications.
• Share data across multiple platforms, applications, and devices to make it easier to
connect internal and external systems.
• Control costs without sacrificing performance, availability, scalability, or security.
Read on to learn more about SQL Server 2005 advancements in three key areas:
enterprise data management, developer productivity, and business intelligence as well
pricing and licensing, upgrading to SQL Server 2005, and the Microsoft Windows Server
System™.
Top Of Page
Failover Clustering
Failover clustering is a high availability solution that exploits Microsoft Windows®
Clustering Services to create fault-tolerant virtual servers that provide fast failover in the
event of a database server failure. In SQL Server 2005, support for failover clustering has
been extended to SQL Server Analysis Services, Notification Services, and SQL Server
replication. The maximum number of cluster nodes has been increased to eight. SQL
Server failover clustering is now a complete fault-tolerant server solution.
Availability Feature Database Mirroring Failover Clustering
Automatic Failover Yes Yes
Transparent Client Redirection Yes, auto-redirect Yes, reconnect to same IP
Impact on Overall Throughput No impact to minimal No impact
Zero Work Loss Yes Yes
Requires Certified Hardware No Yes
Provides Redundant Data Yes No
Database Snapshots
SQL Server 2005 introduces the ability for database administrators to create instant, read-
only views of a database. The database snapshot provides a stable view without the time
or storage overhead of creating a complete copy of the database. As the primary database
diverges from the snapshot, the snapshot adds its own copy of pages as they are modified.
Thus the snapshot may be used to quickly 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 2005 improves the availability of SQL Server databases with a new faster
recovery option. Users can reconnect to a recovering database after the transaction log
has been rolled forward. Earlier versions of SQL Server required users to wait until
incomplete transactions had rolled back, even if the users did not need to access the
affected parts of the database.
Dedicated Administrator Connection
SQL Server 2005 introduces a dedicated administrator connection to access a running
server even if the server is not responding or is otherwise unavailable. This allows you to
execute diagnostic functions or Transact-SQL statements in order to troubleshoot
problems on a server. The connection is activated by members of the sysadmin fixed
server role and is only available through the SQLCMD command prompt utility either
locally, or from a remote machine.
Online Operations (index operations and restore)
The ability to create, rebuild, or drop an index online is an enhanced feature of SQL
Server 2005 that augments the indexing capabilities of earlier versions of SQL Server.
The 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 (DDL) execution. With support for online index operations, you can
add indexes without interfering with access to tables or other existing indexes.
Additionally, the server workload allows index operations to take advantage of parallel
processing
SQL Server 2005 also introduces the ability to perform a restore operation while an
instance of SQL Server is running. Online restoration capabilities improve the availability
of SQL Server because only the data that is being restored is unavailable. The rest of the
database remains online and available. Earlier versions of SQL Server require that you
bring a database offline before you restore the database.
Replication
Replication is designed to increase data availability by distributing the data across
multiple database servers. Availability is increased by allowing applications to scale out
the SQL Server read workload across databases. SQL Server 2005 offers enhanced
replication using a new peer-to-peer model that provides a new topology in which
databases can be synchronized transactionally with any identical peer database.
Scalability
Scalability advancements such as table partitioning, snapshot isolation, and 64-bit support
will enable you to build and deploy your most demanding applications using SQL Server
2005. The partitioning of large tables and indexes significantly enhances query
performance against very large databases.
Table and Index Partitioning
Table and index partitioning eases the management of large databases by facilitating the
management of the database in smaller, more manageable chunks. While the concept of
partitioning data across tables, databases, and servers is not new to the world of
databases, SQL Server 2005 provides a new capability for the partitioning of tables
across filegroups in a database. Horizontal partitioning allows for the division of a table
into smaller groupings based on a partitioning scheme. Table partitioning is designed for
very large databases, from hundreds of gigabytes to terabytes and beyond.
Snapshot Isolation
Once data is copied, transformed, and archived to an analysis-oriented database it must
be maintained and/or rebuilt periodically. Users certainly benefit from looking at a
transactionally consistent version of the database; however, the version of the data that
they are viewing is no longer current. It can take many hours to build and index the and
that might not be what the user really needs. This is where snapshot isolation comes in.
The snapshot isolation level allows users to access the last row that was committed, by
using a transactionally consistent view of the database. This new isolation level provides
the following benefits:
• Increased data availability for read-only applications.
• Nonblocking read operations allowed in an OLTP environment.
• Automatic mandatory conflict detection for write transactions.
• Simplified migration of applications from Oracle to SQL Server.
Replication Monitor
Replication Monitor is a tool that sets a new standard for ease of use in managing
complex data replication operations with its intuitive user interface and wealth of data
metrics.
Support for 64-Bit System Itanium2 and x64
Optimized for the Intel Itanium processor, SQL Server (64-bit) takes advantage of
advanced memory addressing capabilities for essential resources such as buffer pools,
caches, and sort heaps, reducing the need to perform multiple I/O operations to bring data
in and out of memory from disk. Greater processing capacity without the penalties of I/O
latency opens the door to new levels of application scalability.
Windows Server™ 2003 x64 provides high performance for both 32-bit and 64-bit
applications on the same system. The underlying architecture is based on 64-bit
extensions to the industry-standard x86 instruction set, allowing today's 32-bit
applications to run natively on x64 processors. At the same time, new 64-bit applications
are executed in 64-bit mode, which processes more data per clock cycle, allows greater
access to memory, and speeds numeric calculations. The end result is a platform that
leverages the existing wealth of 32-bit applications while also providing a smooth
migration path to 64-bit computing.
Security
SQL Server 2005 makes significant enhancements to the security model of the database
platform, with the intention of providing more precise and flexible control to enable
tighter security of the data. A considerable investment has been made in a number of
features to provide a high level of security for your enterprise data including:
• Enforcing policies for SQL Server login passwords in the authentication space.
• Providing for more granularity in terms of specifying permissions at various
scopes in the authorization space.
• Allowing for the separation of owners and schemas in the security management
space.
Authorization
A new security model in SQL Server 2005 allows administrators to manage permissions
at a granular level and at a designated scope, making management of permissions easier
as well as ensuring that the principle of least privileges is upheld. SQL Server 2005
allows you to specify a context under which statements in a module execute. This feature
also acts as an excellent mechanism for granular permission management.
Authentication
SQL Server 2005 clustering supports Kerberos authentication against a SQL Server 2005
virtual server. Administrators can specify Microsoft Windows-style policies on standard
logins so that a consistent policy is applied across all accounts in the domain.
Native Encryption
SQL Server 2005 supports encryption capabilities within the database itself, fully
integrated with a key management infrastructure. By default, client/server
communications are encrypted. To centralize security assurance, server policy can be
defined to reject unencrypted communications.
SQL and Trustworthy Computing
The Trustworthy Computing initiative outlines a framework that defines the steps
necessary to support secure computing as well as measures that help you deploy and
maintain a secure environment. These steps help to protect the confidentiality, integrity,
and availability of data and systems at every phase of the software life cycle—from
design, to delivery, to maintenance. To uphold the four tenets of the Trustworthy
Computing initiative, Microsoft and the SQL Server team have taken the following steps:
• Secure by design. The SQL Server development team conducted multiple security
audits and spent more than two months studying SQL Server components and the
interaction between them. For each potential security threat, the team did a threat
analysis to evaluate the issue and completed additional design and testing work to
neutralize potential security issues. As a result of these design efforts, SQL Server
2005 includes many new server security features.
• Secure by default. Upon installation, SQL Server 2005 chooses the right set of
configuration values for all setup options, ensuring that when a new system is
installed, it will be in a secure state by default.
• Secure in deployment. Microsoft has created content to help organizations deploy
SQL Server using the proper security credentials and to fully understand the steps
and permissions required. SQL Server deployment tools provide the information
necessary to understand the decisions you need to make during deployment.
Security updates are easy to find and install—and if you choose the option, the
updates install automatically. Tools are also available to help you assess and
manage security risks across organizations.
Developer Productivity
SQL Server 2005 includes many new technologies that bring significant increases in
developer productivity. From .NET Framework support to tight integration with Visual
Studio®, these features provide developers with the ability to more easily create secure,
robust database applications at a lower cost. SQL Server 2005 enables developers to
leverage existing skills across a variety of development languages while providing an
end-to-end development environment for the database. Native XML capabilities will also
allow developers to build new classes of connected applications across any platform or
device.
Enhancements for developer productivity include:
• Expanded language support
• Improved development tools
• Extensibility
• Improved data access
• XML and Web services
• Application Framework
Expanded Language Support
Because the common language runtime (CLR) is hosted in the database engine,
developers can choose from a variety of familiar languages to develop database
applications, including Transact-SQL, Microsoft Visual Basic® .NET, and Microsoft
Visual C#® .NET. Additionally, CLR hosting will provide developers with increased
flexibility through the use of user-defined types and functions. The CLR will also provide
opportunities to use third-party code for rapid database application development.
CLR/.NET Framework integration
With the release of Microsoft SQL Server 2005, database programmers can now take full
advantage of the Microsoft .NET Framework class library and modern programming
languages to implement functionality within the server. Using common language runtime
(CLR) integration, you can code your stored procedures, functions, and triggers in the
.NET Framework language of your choice. Microsoft Visual Basic .NET and the C#
programming language both offer object-oriented constructs, structured exception
handling, arrays, namespaces, and classes. In addition, the .NET Framework provides
thousands of classes and methods that have extensive built-in capabilities that you can
easily use on the server-side. Many tasks that were awkward or difficult to perform in
Transact-SQL can be better accomplished by using managed code; additionally, two new
types of database objects—aggregates and user-defined types—are available. You can
now better use the knowledge and skills that you have already acquired to write in-
process code. In short, SQL Server 2005 enables you to extend the database server to
more easily perform appropriate computation and operations on the back end.
This integration between SQL Server and the CLR provides several major benefits:
• Enhanced programming model: Programming languages that are compatible
with the .NET Framework are in many respects richer than Transact-SQL, offering
constructs and capabilities that were previously not available to SQL developers.
• Enhanced safety and security: Managed code runs in a CLR environment, hosted
by the database engine. This allows .NET Framework database objects to be safer
and more secure than the extended stored procedures available in earlier versions
of SQL Server.
• User-defined types and aggregates: Two new database objects that expand the
storage and querying capabilities of SQL Server are enabled by hosting the CLR.
• Common development environment: Database development is integrated into
the Microsoft Visual Studio 2005 development environment. You can use the
same tools for developing and debugging database objects and scripts that you use
to write middle-tier or client-tier .NET Framework components and services.
• Performance and scalability: Because managed code compiles to native code
prior to execution, you can achieve significant performance increases in some
scenarios.
By using languages such as Visual Basic .NET and C#, you can capitalize on CLR
integration to write code that has more complex logic and is more suited for computation
tasks. In addition, Visual Basic .NET and C# offer object-oriented capabilities such as
encapsulation, inheritance, and polymorphism. You can easily organize related code into
classes and namespaces, which means that you can more easily organize and maintain
your code investments when you are working with large amounts of code. The ability to
logically and physically organize code into assemblies and namespaces is a huge benefit,
that allows you to better find and relate different pieces of code in a large database
implementation.
Managed code is more efficient than Transact-SQL at processing numbers and managing
complicated execution logic, and provides extensive support for string handling, regular
expressions, and so on. Also, with the functionality that is available in the .NET
Framework class library, you have full access to thousands of pre-built classes and
routines that you can access easily from any stored procedure, trigger, or user-defined
function. Everything from improved string-handling functions, math functions, date
operations, access to system resources, advanced encryption algorithms, file access,
image processing, and XML data manipulation is easily accessible from managed stored
procedures, functions, triggers, and aggregates.
One of the major benefits of managed code is type safety. Before managed code is
executed, the CLR performs several checks through a process known as verification to
ensure that the code is safe to run. For example, the code is checked to ensure that
memory is not read that has not been written to.
Transact-SQL enhancements
Transact-SQL has long been the basis for all programmability of SQL Server. SQL
Server 2005 provides many new language capabilities for developing scalable database
applications. These enhancements include error handling, new recursive query
capabilities, and support for new SQL Server Database Engine capabilities. Transact-
SQL enhancements in SQL Server 2005 increase your expressive powers in query
writing, allowing you to improve the performance of your code and extend your error
management capabilities. The continuous effort that is being put into enhancing Transact-
SQL shows a firm belief in its significant role in SQL Server.
Improved Development Tools
Developers will be able to use one development tool for Transact-SQL, XML,
Multidimensional Expressions (MDX), and XML for Analysis (XML/A). Integration
with the Visual Studio development environment will provide more efficient
development and debugging of line-of-business and business intelligence (BI)
applications.
Business Intelligence Development Studio
The Business Intelligence Development Studio is a common development environment
for building BI solutions based on Visual Studio including a database engine, analysis
services, and reporting services. Use the Business Intelligence Development Studio
graphical user interface to design SQL Server Integration Services (SSIS) packages for
data management applications. SSIS packages are designed, developed, and debugged in
the Business Intelligence Development Studio by dragging tasks from the toolbox, setting
their properties, and connecting tasks with precedence constraints. Figure 3 shows the
interface in Visual Studio for the Business Intelligence Development Studio.
MARS
MARS provides the ability to have more than one pending request per connection, in
particular to have more than one default result set open per connection. Default result sets
are forward-only read-only result sets. For default result sets, the client drivers
transparently retrieve the data in large chunks (Tabular Data Stream buffer sized chunks)
so that application requests are satisfied without a roundtrip to the server (as in the case
of server cursors). The application can use a simple row-at-a-time programming model
without compromising performance. The multiple active result sets feature removes the
current restriction in which an open default result set blocks the driver from sending
requests to the server until the entire result set is consumed.
Transparent failover for data mirroring
SQL Server 2005 supports a "hot spare" capability through database mirroring. If a SQL
Server instance fails, the work can be shifted over to the backup server automatically.
This requires an instance to witness the failover known as (not surprisingly) the witness
instance. Hot spare scenarios require that existing client connections must "know" to fail
over (establish a connection with the new server instance), as well. Client connections
that produce an error on the next attempted access and must be manually "failed over" by
client programming are suboptimal. SqlClient in ADO.NET 2.0 supports client failover
without special programming of the application program.
XML Support
Advancements such as native XML data type and XQuery help organizations to
seamlessly connect internal and external systems. SQL Server 2005 will support both
relational and XML data natively, so enterprises can store, manage, and analyze data in
the format that best suits their needs. Support for existing and emerging open standards
such as Hypertext Transfer Protocol (HTTP), XML, Simple Object Access Protocol
(SOAP), XQuery, and XML Schema definition language (XSD) will also facilitate
communication across extended enterprise systems.
XML Data Type
XML can model complex data; it is not limited to the scalar types that are supported by
SQL Server. As such, a string-based, built-in data type such as char or varchar does not
suffice to make full and effective use of the power and the numerous advantages of XML.
For example, if XML is stored as a string, you can insert or select an entire document, or
even retrieve contiguous bytes from it, but you cannot query into the contents of the
document itself. By providing the XML data type, SQL Server 2005 allows you to query
portions of an XML document, validate that the document conforms to an XML schema,
and even modify the contents of the XML document in place. It also integrates
traditional, relational data with data in unstructured or semi-structured XML documents
in ways that are not possible with SQL Server 2000. In SQL Server 2005, XML data is
stored as binary large objects (BLOBs) in an internal representation that allows efficient
reparsing and some compression.
A collection of XML schemas can be associated with a column of type XML. This
provides validation for constraints, inserts, and updates, and typing of values inside
stored XML data, as well as optimizations for storage and query processing. SQL Server
2005 also provides several DDL statements for managing schemas on the server.
XQuery
The XML Query Language, or XQuery, is an intelligent and robust language that is
optimized for querying all types of XML data. With XQuery you can run queries against
variables and columns of the XML data type using the latter's associated methods. As
with many of the XML standards, the World Wide Web Consortium (W3C) oversees the
development of XQuery. XQuery evolved from a query language called Quilt, which was
itself based on a variety of other query languages such as the XML Path Language
(XPath) version 1.0, XQL, and SQL. It also contains XPath 2.0 as a subset. Therefore, if
you have experience using XPath 1.0, you can capitalize on your skills and do not have to
learn an entirely new query language. There are, however, significant enhancements that
go beyond XPath 1.0, such as typing, special functions, and support for better iteration,
sorting of results, and construction.
SQL Server 2005 ships with deep XQuery capabilities that allow for XML object
manipulation in the data tier. It supports a statically typed subset of the XQuery 1.0
Working Draft of November 15, 2003.
Web Services Support
In SQL Server 2005, you can develop XML Web services in the database tier, making
SQL Server an HTTP listener. This provides a new type of data access capability for
applications that are centralized around Web services. In SQL Server 2005, you can use
HTTP to access SQL Server directly without using a middle-tier listener such as
Microsoft Internet Information Services (IIS). SQL Server exposes a Web service
interface to allow the execution of SQL statements and invocation of functions and
procedures. Query results are returned in XML format and can take advantage of the Web
services infrastructure of Visual Studio.
XML for Analysis Services (XML/A)
XML for Analysis Services (XML/A) is the native, standards-based protocol for
communicating with the Analysis Services server. New kinds of applications are enabled
and easy to develop—applications that integrate analytics with operations in real time.
With XML/A as the native protocol, Analysis Services clients can be configured to have
a zero footprint, and each server is automatically a Web service. A light-footprint Win32
layer is available for backward compatibility with tools that work with Analysis Services
2000 on OLE DB for OLAP, ADOMD, and ADOMD.NET. Many users will continue to
use the ADOMD.NET object model to build custom applications on Analysis Services.
Application Framework
SQL Server 2005 introduces a new SQL Server application framework including: Service
Broker, Notification Services, SQL Server Mobile, and SQL Server Express. Service
Broker is a distributed application framework that provides reliable asynchronous
messaging at the database to database level.
Service Broker
Over the last 10 years, the proliferation of e-commerce applications has created the need
for increased workflow management across database applications. When an online
customer places an order for a book, this order needs to commit transactions into the
inventory, shipping, and credit card systems, and also needs to send an order
confirmation using another Web application. Waiting for each of these processes to
happen in order doesn't scale well. SQL Server 2005 provides a new scalable architecture
for building asynchronous message routing. Figure 5 outlines the Service Broker
architecture.
Figure 5: Service Broker architecture
The Service Broker technology allows internal or external processes to send and receive
streams of reliable, asynchronous messages by using extensions to normal Transact-SQL
data manipulation language. Messages are sent to a queue 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.
“SQL Service Broker in SQL Server 2005 has made development 60 percent faster
compared to writing SQL jobs.”--Ketan Patel, Senior Application Developer,
Information Technology Corporate Strategy Planning and Analysis, Microsoft
Notification Services
Microsoft SQL Server Notification Services is a platform for developing and deploying
applications that generate and send notifications to users. Notifications are personalized,
timely messages that can be sent to a wide variety of devices.
Notifications reflect the preferences of the subscriber. The subscriber enters a
subscription to express an interest in information. For example, "notify me when the
stock price of Adventure Works reaches $70.00," or "notify me when the strategy
document my team is writing is updated."
A 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. The
user's subscription specifies when the notification should be generated and sent.
Notifications can be sent to a wide variety of devices. For example, a notification can be
sent to a user's mobile phone, personal digital assistant (PDA), Microsoft Windows
Messenger, or e-mail account. Because these devices often accompany the user,
notifications are ideal for sending high-priority information.
SQL Server Mobile Edition
SQL Server 2000 shipped with SQL Server 2000 Windows CE Edition, which is now
SQL Server Mobile Edition version 3.0. There are a number of new key features in SQL
Server Mobile Edition that relate to developers:
• You can create a SQL Server Mobile Edition database on the desktop or on the
device, directly from SQL Server Management Studio. You can also manipulate
the schema of the SQL Server Mobile Edition database directly from Management
Studio, regardless of whether the database resides on the mobile device or on the
desktop. You can use SQL Server Management Studio to run queries that target a
SQL Server Mobile Edition database on the device or on the desktop. You can
also take advantage of new SQL Server Mobile Edition features that include an
XML showplan rendered in a GUI format just like native SQL Server and the
ability to use query hints to override the query optimizer in SQL Server Mobile
Edition. For the first time, you can control the optimization plan on a device.
• You can now code against SQL Server Integration Services (SSIS) objects to
exchange data.
• The new SqlCeResult set is derived from the SQLResult set that is in SQL Server
2005. This allows SQL Server Mobile Edition to have a true scrollable, updateable
cursor. It also allows binding to data objects that are on devices.
• You can code an application to synchronize 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.
• You can get notifications that you can code into status bars that will give the status
of a synchronization. Previously, there was no way to know how far
synchronization status was, to notify users that a device had not stopped
responding.
• You can maintain the small size of the database through a much more aggressive
page reclamation policy.
• You can share parameterized query code with SQL Server syntax.
SQL Server Express
More than ever developers are leveraging relational databases to provide a rich end-user
experience. Protecting and managing information inside these applications is critical.
Microsoft SQL Server Express helps developers build robust and reliable applications by
providing a free, easy to use, and robust database. Too often database systems are overly
complex for building simple applications. Microsoft Visual Studio 2005 and SQL Server
Express reduce this complexity by providing a simple but powerful development
environment for building data-driven applications. Developers can design schemas, add
data, and query local databases, all inside the Visual Studio 2005 environment. If
developers need more advanced database features, then SQL Server Express can be
seamlessly upgraded to more sophisticated versions of SQL Server. Figure 6 shows the
Query Editor interface in SQL Server Express Manager.
A new GUI tool called SQL Server Express Manager (XM) is freely available as a
separate Web download. XM allows easy database management and query analysis
capabilities, will have a small download size, and will be freely redistributable. XM
supports connections to SQL Server Express and other SQL Server 2005 editions, SQL
Server 2000, and MSDE 2000. A simplified connection dialog box guides the user
through the selection of the instance and the authentication methods to be used. Both
local and remote connections are possible using XM. Object Explorer will enumerate and
display the common objects used, such as the instance, tables, stored process, etc., in a
hierarchical manner and will help the user visualize access to the database.
All database management functionalities are available by invoking the right-click context
menu from Object Explorer. Some of the database management options to be exposed
include creating and modifying databases, tables, logins, and users. Many of these
common database operations are available as task wizards that guide the user through the
process, while many others are available as tabbed window documents. For instance, XM
will provide a New/Edit Database document for creating new databases and editing
existing databases.
Many database users prefer to manage their servers using Transact-SQL, since this
approach offers finer-grained control than using the graphical user interface. The Query
Editor in XM will allow users to develop and execute Transact-SQL statements and
scripts. The Query Editor will have rich features such as keyword color-coding and a
results pane that returns results in a data grid. The error messages, if any, will also be
shown in the results pane.
Business Intelligence
SQL Server 2005 will further Microsoft’s leadership in the are of business intelligence
(BI) through innovations in scalability, data integration, development tools, and rich
analytics. SQL Server 2005 enables scalable business intelligence by putting critical,
timely information in the hands of employees across your organization. From the CEO to
the information worker, employees will be able to quickly and easily harness data to
make better decisions faster. The comprehensive integration, analysis, and reporting
capabilities of SQL Server 2005 enable companies to extend the value of their existing
applications, regardless of the underlying platform.
Business intelligence features include enhancements in the following areas:
• End-to-end integrated business intelligence platform
• Integration Services
• Analysis Services
• Reporting Services
• Integration with the Microsoft Office System
End-to-End Integrated Business Intelligence Platform
SQL Server 2005 is a complete business intelligence platform that provides the features,
tools, and functionality to build both classic and innovative kinds of analytical
applications. The following provides an introduction to the tools that you will use to build
an analytical application, and highlights new functionality that makes it easier than ever
to build and manage complex BI systems.
The SQL Server 2005 business intelligence toolset delivers end-to-end BI application
integration:
• Design: Business Intelligence Development Studio is the first integrated
development environment designed for the business intelligence developer. Built
on Visual Studio 2005, the Business Intelligence Development Studio delivers a
rich, integrated, professional development platform for BI system developers.
Debugging, source control, and script and code development are available for all
components of the BI platform.
• Integrate: SQL Server Integration Services (SSIS) has been rewritten to perform
complex data integration, transformation, and synthesis at high speed for very
large data volumes. The Business Intelligence Development Studio makes
building and debugging packages positively fun. Integration Services, Analysis
Services, and Reporting Services work together to present a seamless view of data
from heterogeneous sources.
• Analyze: Microsoft Data Mining has always been easy to use. Now it's even better
with the addition of important new algorithms, including Association Rules, Time
Series, Regression Trees, Sequence Clustering, Neural Network, and Naïve Bayes.
SQL Server 2005 blurs the lines between relational and multidimensional
databases. You can store data in the relational database, in the multidimensional
database, or use the new Proactive Cache feature to get the best of both worlds.
Important new analytical capabilities have been added to Analysis Services cubes
as well: these include Key Performance Indicator (KPI) framework, MDX scripts,
and other built-in advanced business analytics. The Reporting Services report
delivery and management framework enables easy distribution of complex
analytics to the widest possible audience.
• Report: Reporting Services extends the Microsoft business intelligence platform
to reach the business user who needs to consume the analysis. Reporting Services
is an enterprise managed reporting environment, embedded and managed via Web
services. Reports can be personalized and delivered in a variety of formats, with a
range of interactivity and printing options. Complex analyses can reach a broad
audience through the distribution of reports as a data source for downstream
business intelligence. New with SQL Server 2005 is the reporting tool, Report
Builder.
• Manage: SQL Server Management Studio integrates the management of all SQL
Server 2005 components. Business intelligence practitioners will benefit from
Microsoft's extension of the server abilities you expect from the relational engine
—scalability, reliability, availability, programmability, and so on—to the full set
of BI platform components.
Integration Services
SQL Server 2005 includes a redesigned enterprise ETL platform, called SQL Server
Integration Services (SSIS). SQL Server Integration Services enables organizations to
more easily integrate and analyze data from multiple heterogeneous information sources.
By analyzing data across a wide array of operational systems, organizations may gain a
competitive edge through a holistic understanding of their business.
Enterprise ETL Platform
This new platform is the successor to the popular feature in SQL Server 2000, called Data
Transformation Services (DTS). SSIS is completely new for SQL Server 2005. SSIS
provides the breadth of features, and very high scale performance that is necessary to
build enterprise-class ETL applications. SSIS is fully programmable, embeddable, and
extensible—characteristics that make it an ideal ETL platform.
Beyond Traditional ETL
SQL Server 2005 supports nontraditional data (Web Services, XML) out-of-the box
through:
• SSIS brings analytics to the data without persisting the data.
• Data Mining and text mining in the data flow.
• Data Mining and analytics are brought to the data flow for data quality and data
cleansing.
Analysis Services
With SQL Server 2005, Analysis Services provides, for the first time, a unified and
integrated view of all your business data as the foundation for all of your traditional
reporting, OLAP analysis, and data mining.
“The move to Analysis Services in SQL Server 2005 has been a huge benefit for our
operations. …We’re seeing at least a 75 percent reduction in OLAP cube processing
time.”--Mike McGrew, Development Manager, Information Technology Tax and
Audit Product Group, Microsoft
Unified Dimensional Model
By combining the best aspects of traditional OLAP analysis and relational reporting,
Analysis Services 2005 provides a metadata model that covers both sets of needs. A set
of cubes and dimensions defined in Analysis Services 2005 is referred to as a Unified
Dimensional Model (UDM). The UDM is a central metadata repository defining business
entities, business logic, calculations, and metrics that serves as the source for all reports,
spreadsheets, OLAP browsers, KPIs, and analytical applications.
Using the powerful new Data Source View feature, the UDM is mapped to a host of
heterogeneous back-end data sources allowing a complete and integrated picture of the
business regardless of the location of the data.
With the UDM’s friendly descriptions of the business entities, navigation hierarchies,
multiple perspectives, and even automatic translations to native languages, users will find
it easy to explore the corporate business data.
Data Mining
Microsoft SQL Server 2005 Data Mining is the business intelligence technology that
helps you build complex analytical models, and integrate those models with your
business operations. Microsoft SQL Server 2005 Analysis Services establishes new
ground for data mining. By creating an easy to use, extensible, accessible, and flexible
platform, SQL Server 2005 Analysis Services data mining capabilities introduces data
mining to organizations that previously would never have considered a data mining
solution.
Through an enterprise class architecture; a deep integration with the SQL Server family
of business intelligence tools, and a rich set of tools, APIs and algorithms, SQL Server
enables the creation of a new breed of intelligent applications that enhance productivity,
increase profits and reduce costs by providing customized data-driven solutions to a
broad range of business problems.
Reporting Services
Reporting Services extends the Microsoft BI platform to reach the information worker
who needs access to business data. Reporting Services is a server-based enterprise
reporting environment, managed via Web services. Reports can be delivered in a variety
of formats, with a range of interactivity and printing options. Complex analyses can reach
a broad audience through the distribution of reports as a data source for downstream
business intelligence.
An integrated component of SQL Server 2005, Reporting Services provides:
• A high performance engine for processing and formatting reports.
• A complete set of tools for creating, managing, and viewing reports.
• An extensible architecture and open interfaces for embedding reports or
integrating reporting solutions in diverse Information Technology environments.
Relational and OLAP Reports
Reports built on relational data are useful but the ability to add additional analytic
capabilities makes reporting powerful. Reporting Services allows you to easily build
reports together or separately. SQL Server 2005 supports both relational and OLAP data
and provides a query editor for both including SQL Query Editor and MDX Query
Editor.
Report Builder
Report Builder, a new component of SQL Server 2005 Reporting Services, allows
business users to create their own reports using a user-friendly model of their data.
Report Builder leverages the Reporting Services platform to bring ad hoc reporting to all
end users. Users create and edit reports with the Report Builder client application. The
Report Builder user interface is built on top of familiar Microsoft Office paradigms such
as Excel and PowerPoint. Figure 7 shows a sample Report Builder report.
Report Builder is a ClickOnce application deployed via the browser. Users start by
selecting report layout templates containing predefined data sections such as tables,
matrices and charts. They drag and drop report items from the model to the design
surface and set constraints to filter the report data. The model contains all of the
necessary information for the Report Builder to automatically generate the source query
and retrieve the requested data. The Report Builder also allows users to:
• Add text and formatting to reports.
• Create new fields and calculations defined using the model.
• Preview, print, and publish reports.
• Export report data to formats such as Microsoft Excel.
Integration with the Microsoft Office System
Reports that are served up by the Report Server in Reporting Services can run in the
context of Microsoft SharePoint® Portal Server and Microsoft Office System
applications such as Microsoft Word and Microsoft Excel. You can use SharePoint
features to subscribe to reports, create new versions of reports, and distribute reports. You
can also open reports in Word or Excel to view HTML versions of the reports.
Upgrading to SQL Server 2005
Following are some tips for upgrading to SQL Server 2005.
• Upgrade to SQL Server 2005 from SQL Server 7.0 or SQL Server 2000.
• Run Upgrade Advisor before upgrading to determine if any product changes are
expected to break existing applications.
• The Database Engine, Analysis Services, and Reporting Services can be upgraded
by Setup.
• SQL Server Integration Services, the replacement for DTS, is installed side-by-
side with DTS. You can run DTS packages using the DTS runtime components.
• SQL Server 2005 Notification Services is installed side-by-side with Notification
Services 2.0. You must migrate instances of Notification Services to SQL Server
2005 when you upgrade the Database Engine.
• Use the Surface Area Configuration tool after upgrading to enable or disable SQL
Server 2005 services, network protocols, and features.
Microsoft SQL Server Pricing and Licensing
The family of SQL Server editions includes everything you need in one product for a
comprehensive, out-of-the-box data storage, management, analysis and reporting
platform with flexible licensing that allows you to choose the solution that best fits your
unique needs
Designed 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
Pocket PC devices running SQL Server Windows CE Edition.
Pricing & licensing
Edition Pricing Benefit Size Key Features
4-GB DB size
1 CPU
Fastest way to learn,
build and deploy Simple Reporting
Express Free 1-GB RAM
simple data-driven
applications. Replication & SSB
4-GB DB size
Client
Management Studio
Basic ETL
Advanced reporting
with customized, high
scale, and ad hoc
reporting.
(server +
enterprise applications.
25 users)
Advanced ETL with
complex data routing and
transformation
capabilities.
Available in native 32
and 64 bit editions.