Book description
Microsoft SQL Server 2005 Unleashed offers comprehensive coverage of SQL Server 2005 that goes beyond the basic syntax and information you’ll find in the product manuals, providing in-depth information derived from the authors’ real-world experience to help you build upon your working knowledge of the product and take your experience and knowledge to a higher level. This book focuses primarily on the information needed by system and database administrators, as well as for users with overlapping duties as both DBA and developer. Included is extensive coverage of the new features and upgraded tools and capabilities of SQL Server 2005, including .NET Framework integration, Integration Services, Service Broker, Database Mirroring and Snapshots, and Reporting Services.
Detailed information on…
Installing, upgrading, and administering SQL Server 2005
Database maintenance, backup, and recovery
Creating and managing tables, views, stored procedures, triggers, and user-defined functions
Database and index design
SQL Server query optimization, and performance monitoring and tuning
Transactions, transaction management, and distributed transactions
SQL Server Management Studio—NEW!
SQL Server Notification Services; Integration Services—NEW!; Analysis Services; Reporting Services—NEW!; Web Services—NEW!
SQL Server Service Broker—NEW!
SQL Server and Microsoft .NET Framework integration, including CLR-based stored procedures, functions, and triggers—NEW!
SQL Server high availability and SQL Server clustering and replication
Database Mirroring—NEW!
Database Snapshots—NEW!
Using XML in SQL Server 2005
SQL Server tools and utilities
CD-ROM includes
8 bonus chapters covering topics such as Notification Services, Service Broker, and Full-Text Search
Code samples, scripts, and sample databases
A PDF version of the entire book
Introduction
Part I Welcome to Microsoft SQL Server
1 SQL Server 2005 Overview
2 What’s New in SQL Server 2005
Part II SQL Server Tools and Utilities
3 SQL Server Management Studio
4 SQL Server Command-Line
Utilities
5 SQL Server Profiler
Part III SQL Server Administration
6 SQL Server System and Database
Administration
7 Installing SQL Server 2005
8 Upgrading to SQL Server 2005
9 Client Installation and Configuration
10 Security and User Administration
11 Database Backup and Restore
12 Database Mail
13 SQL Server Scheduling and Notification
14 SQL Server High Availability.
15 Replication
16 Database Mirroring
17 SQL Server Clustering
Part IV Database Administration
18 Creating and Managing Databases
19 Creating and Managing Tables
20 Creating and Managing Indexes
21 Implementing Data Integrity
22 Creating and Managing Views in SQL Server
23 Creating and Managing Stored Procedures
24 Creating and Managing User-Defined Functions
25 Creating and Managing Triggers
26 Transaction Management and the Transaction Log
27 Database Snapshots
28 Database Maintenance
Part V SQL Server Performance and Optimization
29 Indexes and Performance
30 Understanding Query Optimization
31 Query Analysis
32 Locking and Performance
33 Database Design and
Performance
34 Monitoring SQL Server
Performance
Part VI SQL Server Application Development
35 What’s New for Transact-SQL in SQL Server 2005
36 SQL Server and the .NET
Framework
37 Using XML in SQL Server 2005
38 SQL Server Web Services
Part VII SQL Server Business Intelligence Features
39 SQL Server 2005 Analysis Services
40 SQL Server Integration
Services
41 SQL Server 2005 Reporting
Services
Bonus Chapters on the CD
42 Managing Linked and Remote
Servers
43 Configuring, Tuning, and Optimizing SQL Server Options
44 Administering Very Large SQL Server
Databases
45 SQL Server Disaster Recovery
Planning
46 Transact-SQL Programming Guidelines, Tips, and Tricks
47 SQL Server Notification
Services
48 SQL Server Service Broker
49 SQL Server Full-Text Search
Index
Table of contents
- Copyright
- About the Lead Authors
- Acknowledgments
- We Want to Hear from You!
- Introduction
-
I. Welcome to Microsoft SQL Server
-
1. SQL Server 2005 Overview
- SQL Server Components and Features
- SQL Server 2005 Editions
- SQL Server Licensing Models
- Summary
-
2. What’s New in SQL Server 2005
-
New SQL Server 2005 Features
- SQL Server Management Studio
- SQL Server Configuration Manager
- CLR/.NET Framework Integration
- Dynamic Management Views
- System Catalog Views
- SQL Server Management Objects
- Dedicated Administrator Connection
- SQLCMD
- Database Mail
- Online Index and Restore Operations
- Native Encryption
- Database Mirroring
- Database Snapshots
- Service Broker
- SQL Server Integration Services
- Table and Index Partitioning
- Snapshot Isolation
- Business Intelligence Development Studio
- Query Notification
- Multiple Active Result Sets
- New SQL Server Data Types
-
SQL Server 2005 Enhancements
- Database Engine Enhancements
- Index Enhancements
- T-SQL Enhancements
- Security Enhancements
- Backup and Restore Enhancements
- SQL Server Agent Enhancements
- Recovery Enhancements
- Replication Enhancements
- Failover Clustering Enhancements
- Notification Services Enhancements
- Full-Text Search Enhancements
- Web Services Enhancements
- Analysis Services Enhancements
- Reporting Services Enhancements
- Summary
-
New SQL Server 2005 Features
-
1. SQL Server 2005 Overview
-
II. SQL Server Tools and Utilities
- 3. SQL Server Management Studio
-
4. SQL Server Command-Line Utilities
- What’s New in SQL Server Command-Line Utilities
- The sqlcmd Command-Line Utility
- The dta Command-Line Utility
- The tablediff Command-Line Utility
- The sac Command-Line Utility
- The bcp Command-Line Utility
- The sqldiag Command-Line Utility
- The sqlservr Command-Line Utility
- Removed or Deprecated Utilities in SQL Server 2005
- Summary
- 5. SQL Server Profiler
-
III. SQL Server Administration
- 6. SQL Server System and Database Administration
- 7. Installing SQL Server 2005
- 8. Upgrading to SQL Server 2005
-
9. Client Installation and Configuration
- What’s New in Client Installation and Configuration
- Client/Server Networking Considerations
- Client Installation
- Client Configuration
- Client Data Access Technologies
- Summary
-
10. Security and User Administration
- What’s New in Security and User Administration
- An Overview of SQL Server Security
- Authentication Methods
- Managing Principals
- Managing Securables
- Managing Permissions
- Managing SQL Server Logins
- Managing SQL Server Users
- Managing Database Roles
- Managing SQL Server Permissions
- The Execution Context
- Summary
- 11. Database Backup and Restore
- 12. Database Mail
- 13. SQL Server Scheduling and Notification
- 14. SQL Server High Availability
-
15. Replication
- What’s New in Data Replication
- What Is Replication?
- The Publisher, Distributor, and Subscriber Metaphor
-
Replication Scenarios
- The Central Publisher Replication Model
- The Central Publisher with Remote Distributor Replication Model
- The Publishing Subscriber Replication Model
- The Central Subscriber Replication Model
- The Multiple Publishers or Multiple Subscribers Replication Model
- The Updating Subscribers Replication Model
- The Peer-to-Peer Replication Model
- Subscriptions
- Replication Agents
- Planning for SQL Server Data Replication
- SQL Server Replication Types
- Basing the Replication Design on User Requirements
- Setting Up Replication
- Scripting Replication
-
Monitoring Replication
- Replication Monitoring SQL Statements
- Monitoring Replication within SQL Server Management Studio
- Troubleshooting Replication Failures
- The Performance Monitor
- Replication in Heterogeneous Environments
- Backup and Recovery in a Replication Configuration
- Some Thoughts on Performance
- Log Shipping
- Data Replication and Database Mirroring for Fault Tolerance and High Availability
- Summary
-
16. Database Mirroring
- What’s New in Database Mirroring
- What Is Database Mirroring?
- Roles of the Database Mirroring Configuration
- Setting Up and Configuring Database Mirroring
- Testing Failover from the Principal to the Mirror
- Client Setup and Configuration for Database Mirroring
- Using Replication and Database Mirroring Together
- Using Database Snapshots from a Mirror for Reporting
- Summary
- 17. SQL Server Clustering
-
IV. Database Administration
-
18. Creating and Managing Databases
- What’s New in Creating and Managing Databases
- Data Storage in SQL Server
- Database Files
- Creating Databases
- Setting Database Options
- Managing Databases
- Summary
- 19. Creating and Managing Tables
- 20. Creating and Managing Indexes
- 21. Implementing Data Integrity
- 22. Creating and Managing Views in SQL Server
-
23. Creating and Managing Stored Procedures
- What’s New in Creating and Managing Stored Procedures
- Advantages of Stored Procedures
- Creating Stored Procedures
- Executing Stored Procedures
- Deferred Name Resolution
- Viewing Stored Procedures
- Modifying Stored Procedures
- Using Input Parameters
- Using Output Parameters
- Returning Procedure Status
- Using Cursors in Stored Procedures
- Nested Stored Procedures
- Using Temporary Tables in Stored Procedures
- Using Remote Stored Procedures
- Debugging Stored Procedures Using Microsoft Visual Studio .NET
- Using System Stored Procedures
- Stored Procedure Performance
- Using Dynamic SQL in Stored Procedures
- Startup Procedures
- T-SQL Stored Procedure Coding Guidelines
- Creating and Using CLR Stored Procedures
- Using Extended Stored Procedures
- Summary
-
24. Creating and Managing User-Defined Functions
- What’s New in SQL Server 2005
- Why Use User-Defined Functions?
- Types of User-Defined Functions
- Creating and Managing User-Defined Functions
- Systemwide Table-Valued Functions
- Rewriting Stored Procedures as Functions
- Creating and Using CLR Functions
- Summary
-
25. Creating and Managing Triggers
- What’s New in Creating and Managing Triggers
- Using DML Triggers
- Using DDL Triggers
- Using CLR Triggers
- Using Nested Triggers
- Using Recursive Triggers
- Summary
-
26. Transaction Management and the Transaction Log
- What’s New in Transaction Management
- What Is a Transaction?
- How SQL Server Manages Transactions
- Defining Transactions
- Transaction Logging and the Recovery Process
- Transactions and Batches
- Transactions and Stored Procedures
- Transactions and Triggers
- Transactions and Locking
- Coding Effective Transactions
- Long-Running Transactions
- Bound Connections
- Distributed Transactions
- Summary
-
27. Database Snapshots
- What’s New with Database Snapshots
- What Are Database Snapshots?
- Limitations and Restrictions of Database Snapshots
- Copy-on-Write Technology
- When to Use Database Snapshots
- Setup and Breakdown of a Database Snapshot
- Reverting to a Database Snapshot for Recovery
- Setting Up Snapshots Against a Database Mirror
- Database Snapshots Maintenance and Security Considerations
- Summary
- 28. Database Maintenance
-
18. Creating and Managing Databases
-
V. SQL Server Performance and Optimization
-
29. Indexes and Performance
- What’s New for Indexes and Performance
- Understanding Index Structures
- Index Utilization
- Index Selection
- Evaluating Index Usefulness
- Index Statistics
- SQL Server Index Maintenance
- Index Design Guidelines
- Indexed Views
- Indexes on Computed Columns
- Choosing Indexes: Query Versus Update Performance
- Summary
-
30. Understanding Query Optimization
- What’s New in Query Optimization
- What Is the Query Optimizer?
- Query Compilation and Optimization
- Query Analysis
- Row Estimation and Index Selection
- Join Selection
- Execution Plan Selection
- Query Plan Caching
- Other Query Processing Strategies
- Parallel Query Processing
- Common Query Optimization Problems
- Managing the Optimizer
- Summary
-
31. Query Analysis
- What’s New in Query Analysis
-
Query Analysis in SSMS
- Execution Plan ToolTips
-
Logical and Physical Operator Icons
- Assert
- Clustered Index Delete, Insert, and Update
- Nonclustered Index Delete, Insert, and Update
- Clustered Index Seek and Scan
- Nonclustered Index Scan and Seek
- Split and Collapse
- Compute Scalar
- Concatenation
- Constant Scan
- Deleted Scan and Inserted Scan
- Filter
- Hash Match
- Nonclustered Index Spool, Row Count Spool, and Table Spool
- Eager Spool or Lazy Spool
- Log Row Scan
- Merge Join
- Nested Loops
- Parameter Table Scan
- Remote Delete, Remote Insert, Remote Query, Remote Scan, and Remote Update
- RID Lookup
- Sequence
- Sort
- Stream Aggregate
- Table Delete, Table Insert, Table Scan, and Table Update
- Table-valued Function
- Top
- Parallelism Operators
- Distribute Streams
- Gather Streams
- Repartition Streams
- Analyzing Stored Procedures
- Saving and Viewing Graphical Execution Plans
- SSMS Client Statistics
- Using the SET SHOWPLAN Options
- Using sys.dm_exec_query_plan
- Query Statistics
- Query Analysis with SQL Server Profiler
- Summary
-
32. Locking and Performance
- What’s New in Locking and Performance
- The Need for Locking
- Transaction Isolation Levels in SQL Server
- The Lock Manager
- Monitoring Lock Activity in SQL Server
- SQL Server Lock Types
- SQL Server Lock Granularity
- Lock Compatibility
- Locking Contention and Deadlocks
- Table Hints for Locking
- Optimistic Locking
- Summary
- 33. Database Design and Performance
-
34. Monitoring SQL Server Performance
- What’s New in Monitoring SQL Server Performance
- A Performance Monitoring Approach
- Performance Monitor
- Windows Performance Counters
- SQL Server Performance Counters
- Using DBCC to Examine Performance
- The Top 100 Worst-Performing Queries
- Other SQL Server Performance Considerations
- Summary
-
29. Indexes and Performance
-
VI. SQL Server Application Development
- 35. What’s New for Transact-SQL in SQL Server 2005
-
36. SQL Server and the .NET Framework
- What’s New in SQL Server 2005 and the .NET Framework
- Working with ADO.NET 2.0 and SQL Server
-
Developing Custom Managed Database Objects
- An Introduction to Custom Managed Database Objects
- Managed Object Permissions
- Developing Managed Objects with Visual Studio 2005
- Using Managed Stored Procedures
- Using Managed User-Defined Functions (UDFs)
- Using Managed User-Defined Types (UDTs)
- Using Managed User-Defined Aggregates (UDAs)
- Using Managed Triggers
- Using Transactions
- Using the Related System Catalogs
- Summary
-
37. Using XML in SQL Server 2005
- What’s New in Using XML in SQL Server 2005
- Understanding XML
- Relational Data as XML: The FOR XML Modes
- XML as Relational Data: Using OPENXML
-
Using the New xml Data Type
- Defining and Using xml Columns
- Using XML Schema Collections
- The Built-in xml Data Type Methods
- Indexing and Full-Text Indexing of xml Columns
- Summary
- 38. SQL Server Web Services
-
VII. SQL Server Business Intelligence Features
-
39. SQL Server 2005 Analysis Services
- What’s New in SSAS
- Understanding SSAS and OLAP
- Understanding the SSAS Environment Wizards
- An Analytics Design Methodology
-
An OLAP Requirements Example: CompSales International
- CompSales International Requirements
- OLAP Cube Creation
- Using SQL Server BIDS
-
Creating an OLAP Database
- Adding a Data Source
- Creating Data Source Views
- Defining Dimensions and Hierarchies
- Creating the Cube
- Building and Deploying the Cube
- Populating the Cube with Data
- Aggregating Data Within the Cube
- Browsing Data in the Cube
- Delivering Data to Users
- Multidimensional Expressions
- ADO MD
- Calculated Members (Calculations)
- Query Analysis and Optimization
- Generating a Relational Database
- Cube Perspectives
- KPIs
- Data Mining
- Security and Roles
- Summary
-
40. SQL Server Integration Services
- What’s New with SSIS
- SSIS Basics
- SSIS Architecture and Concepts
- SSIS Tools and Utilities
- A Data Transformation Requirement
- Running the SSIS Wizard
- The SSIS Designer
- The Package Execution Utility
- Using bcp
- Logged and Non-Logged Operations
- Summary
-
41. SQL Server 2005 Reporting Services
- What’s New in Reporting Services 2005
- Installing and Configuring Reporting Services
-
Designing Reports
- Designing Reports by Using the BIDS Report Designer
- Designing Reports Using Report Builder
- Models and the Model Designer
-
A Model Design Example
- Defining Inheritance
- Promoting Properties
- The Report Builder Design Surface
- Discourage Grouping
- Roles and Drill-Through Reports
- Debugging Models and Model Queries
- Sorting in Report Builder
- Generating Drill-Through Reports
- Saving and Opening Reports
- Customizing Drill-Through Reports
- Other Model and Model Designer Features
- Model Security
- Enabling Ad Hoc Reporting
- Management and Security
- Performance and Monitoring Tools
- Building Applications for SQL Server Reporting Services 2005 Using the Report Viewer Controls
- Summary
-
39. SQL Server 2005 Analysis Services
-
VIII. Bonus Chapters on the CD
-
42. Managing Linked and Remote Servers
- What’s New in Managing Linked and Remote Servers
- Managing Remote Servers
- Linked Servers
- Adding, Dropping, and Configuring Linked Servers
- Mapping Local Logins to Logins on Linked Servers
- Obtaining General Information About Linked Servers
- Executing a Stored Procedure via a Linked Server
- Setting Up Linked Servers Through SQL Server Management Studio
- Summary
-
43. Configuring, Tuning, and Optimizing SQL Server Options
- What’s New in Configuring, Tuning, and Optimizing SQL Server Options
- SQL Server Instance Architecture
- Configuration Options
- Fixing an Incorrect Option Setting
- Setting Configuration Options with SSMS
- Obsolete Configuration Options
-
Configuration Options and Performance
- Ad Hoc Distributed Queries
- affinity I/O mask
- affinity mask
- AWE Enabled
- CLR Enabled
- Cost Threshold for Parallelism
- Cursor Threshold
- Default Full-Text Language
- Default Language
- Fill Factor
- Index Create Memory (KB)
- Lightweight Pooling
- Locks
- Max Degree of Parallelism
- Max Server Memory and Min Server Memory
- Max Text Repl Size
- Max Worker Threads
- Min Memory Per Query
- Nested Triggers
- Network Packet Size
- Priority Boost
- Query Governor Cost Limit
- Query Wait
- Recovery Interval
- Remote Admin connections
- Remote Login timeout
- Remote Proc Trans
- Remote Query timeout
- Scan for Startup Procs
- Show Advanced Options
- User Connections
- User Options
- XP-Related Configuration Options
- Miscellaneous Options
- Database Engine Tuning Advisor
- Summary
- 44. Administering Very Large SQL Server Databases
- 45. SQL Server Disaster Recovery Planning
-
46. Transact-SQL Programming Guidelines, Tips, and Tricks
- General T-SQL Coding Recommendations
- General T-SQL Performance Recommendations
- T-SQL Tips and Tricks
- Summary
-
47. SQL Server Notification Services
- What’s New in SQL Server Notification Services
- Requirements and Editions of SSNS
- Making the Business Case for Using SSNS
- Understanding the SSNS Platform Architecture
-
Building an Effective SSNS Application
- Choosing a Programming Method
- Working with XML Using Management Studio
-
Learning the Essentials of ADFs
- Use Case for the Sample Application
- Using the ParameterDefaults ADF Element
- Using the Database ADF Element
- Using the EventClasses ADF Element
- Using the SubscriptionClasses ADF Element
- Using the NotificationClasses ADF Element
- Using the Providers ADF Element
- Using the Generator ADF Element
- Using the Distributors ADF Element
- Learning the Essentials of ICFs
- Compiling and Running the Sample Application
- Summary
- 48. SQL Server Service Broker
-
49. SQL Server Full-Text Search
- What’s New in SQL Server 2005 Full-Text Search
- How SQL Server FTS Works
- Setting Up a Full-Text Index
- Full-Text Searches
- Full-Text Search Maintenance
- Full-Text Search Performance
- Summary
-
42. Managing Linked and Remote Servers
Product information
- Title: Microsoft® SQL Server 2005 Unleashed
- Author(s):
- Release date: April 2007
- Publisher(s): Sams
- ISBN: 0672328240
You might also like
book
Microsoft® SQL Server 2008 R2 Unleashed
This is the industry’s most comprehensive and useful guide to SQL Server 2008 and 2008 R2. …
book
Inside Microsoft® SQL Server™ 2005
A comprehensive, hands-on reference for database developers and administrators, this book focuses on advanced language features …
book
A Developer’s Guide to SQL Server 2005
"I come from a T-SQL background, so when I first laid my eyes on SQL Server …
book
Professional Microsoft® SQL Server® 2008 Administration
SQL Server 2008 represents a sizable jump forward in scalability, performance, and usability for the DBA, …