Microsoft SQL Server 2000
A Guide to Enhancements and New Features
Résumé
Beginning with an overview of SQL Server 2000, this book discusses online transaction processing (OLTP) and online analytical processing (OLAP), features a tour of different SQL Server releases, and offers a guide to installation. The author describes and demonstrates the changes since SQL Server 7.0, thoroughly exploring SQL Server 2000's capacity as a Web-enabled database server. Readers are then immersed in advanced database administration topics such as performance optimization and debugging techniques.
Microsoft SQL Server™ 2000 also serves as a resource for those new to SQL Server, providing a basic introduction and details about how to make a conversion work, as well as a feature-by-feature comparison to Oracle 9i. Database administrators will find a collection of clearly explained scripts and utilities to simplify day-to-day tasks. This book concludes with a discussion of how SQL Server fits into the .NET environment and what to expect of the next release.
Sample code is used extensively to illustrate feature sets and illuminate topics covered. The accompanying CD includes this sample code as well as scriptsand utilities. Rahul Sharma also shares his tips for optimizing applications' performance with adjustments to code, settings, and hardware. He alerts readers to common errors and fixes, and provides a checklist to guide readers through the installation and verification of the database server's stability. Rahul has translated his experience into knowledge and ready-to-use tools that database administrators and developers need to realize the many benefits of moving to SQL Server 2000.
Contents
(NOTE: Each chapter concludes with a
Summary.)
Preface.
Acknowledgments.
1. SQL Server 2000 Overview.
Hardware Requirements for Installation.
Installation of SQL Server 2000.
Upgrading from a Previous Version of SQL Server.
Edition Upgrades.
Adding Components to an Instance of SQL Server 2000.
Uninstalling SQL Server 2000.
Unattended Installs.
Installing SQL Server Using SMS.
Rebuilding the Registry.
Multiple Instances.
Named Instances.
File Locations for Multiple Instances of SQL Server.
Network Protocols.
Collations Support for Internationalization.
Checklist for a Successful Install of SQL Server.
Maintenance and Integrity Checks.
I. NEW FEATURES AND IMPROVEMENTS OVER SQL SERVER 7.0.
2. Enhancements and Changes to Existing Features.
English Query.
More Scalable and Reliable.
BizTalk Server 2000.
Multi-Instance Support.
Reduction in Development Time.
Accessing Data via Internet.
Web-Based Analysis.
VI SAN Support.
Indexed Database Views.
T-SQL Debugger.
User-Defined Functions.
New Data Types.
Cascading DRI.
Distributed PartitionedViews.
OLAP Services.
DTS.
INSTEAD OF and AFTER Triggers.
Collation Enhancements.
Full-Text Search Enhancements.
Multiple Instances of SQL Server.
Index Enhancements.
Failover Clustering Enhancements.
Net-Library Enhancements.
64-GB Memory Support.
Distributed Query Enhancements.
Kerberos and Security Delegation.
Backup and Restore Enhancements.
Scalability Enhancements for Utility Operations.
Text in Row Data.
3. XML Support in SQL Server 2000.
Generating XML over the Internet.
Retrieving XML-Formatted Data from SQL Server.
Reserved Characters.
XML Templates.
Using EXPLICIT Mode.
XSL Stylesheets.
XML System Stored Procedures.
OPENXML.
Writing Queries Against an XML Document.
XPath Expression to Identify the Nodes to Be Processed (rowpattern).
Description of the Rowset to Be Generated.
Mapping Between the Rowset Columns and the XML Nodes.
Specifying Metaproperties in OPENXML.
Examples.
4. Engine Enhancements in SQL Server 2000.
Interacting with Data.
Top n Enhanced.
Shared Scans.
Concurrency.
Tables and Indexes.
New Data Types.
Indexes.
Logging and Recovery.
Shrinking the Transaction Log.
Recovery Models.
Improved Backup Functionality.
Administrative Improvements.
Database State Control.
System Process IDs and Units of Work.
Dynamic Tuning.
Data Storage Components.
Files, Filegroups, and Disks.
5. DTS Enhancements.
Enhanced Logging Facilities.
Saving DTS Packages to Visual Basic Files.
Using the Multiphase Data Pump.
Using Parameterized Queries.
Using Global Variables to Pass Information Between DTS Packages.
Using DTS Designer.
Workflows: Setting Task Precedence.
Connections: Accessing and Moving Data.
Data Pump: Transforming Data.
Data Pump Phases.
Options for Saving DTS Packages.
DTS as an Application Development Platform.
6. Profiler and Index-Tuning Wizard Enhancements.
Events.
Data Columns.
Filters.
Templates.
Defining Your Own Trace Using Stored Procedures.
Defining a Server-Side Trace.
Known Bug in SQL Server 2000 Profiler.
Cause.
Resolution.
Index Tuning Wizard.
Analyzing Index Tuning Wizard Output.
Starting the Index Tuning Wizard.
Itwiz.exe.
7. Replication Enhancements.
Replication Options.
New Features and Improvements.
Merge Replication.
Transactional Replication.
Queued Updating.
Transforming Published Data.
Replication Usability.
Log Shipping.
Configuring Log Shipping Manually.
8. New Data Types.
sql_variant.
Table.
9. User-Defined Functions.
Table-Valued Functions.
Obtaining Information About Functions.
10. Indexed Views.
Benefits of Using Indexed Views.
Query Optimizer.
Design Considerations.
Creating an Indexed View.
Using Deterministic Functions.
Additional Requirements.
Maintaining Indexed Views.
11. Trigger Alternatives.
INSTEAD OF Triggers.
Core Difference Between INSTEAD OF and AFTER Triggers.
Which Trigger to Pick?
Designing INSTEAD OF Triggers.
12. Meta Data Services Enhancements.
Meta Data Has Context.
Meta Data Has Multiple Purposes.
Meta Data Management.
Information Model Fundamentals.
Information Model Building Blocks.
Standard Information Models.
Importance of Information Models.
New Features in Meta Data Services.
XML Encoding Enhancements.
XML in Meta Data Services.
13. Tool Enhancements.
Templates.
Building Your Own Template.
Copy Database Wizard.
Copy and Move Process.
14. Backup and Recovery Enhancements.
Recovery Models.
Full Recovery.
Bulk-Logged Recovery.
Switching Recovery Models.
15. Analysis Services Enhancements.
Dimension Enhancements.
Data Mining Enhancements.
Other Enhancements.
16. Distributed Partitioned Views.
Building Distributed Partitioned Tables and Views.
How the Query Processor Uses Distributed Partitioned Views.
Designing Systems That Maximize Distributed Partitioned View Performance.
Designing the Application Tier for Load Balancing.
Designing for High Availability.
Backing Up and Restoring Federated Database Servers.
Updatable Partitioned Views.
Column Rules.
Partitioning Column Rules.
Data Modification Rules.
INSERT Statements.
UPDATE Statements.
DELETE Statements.
Distributed Partition View Rules.
17. T-SQL Debugger.
18. Cascading Declarative Referential Integrity.
Multiple Cascading Actions.
Triggers and Cascading Referential Actions.
Cascading Referential Constraints Catalog Information.
19. Collation Enhancements.
International Data and Unicode.
Sort Order.
What Is Unicode and How Can It Be Used?
UTF-16.
UTF-8.
Data Types in SQL Server 2000.
Unicode Text Types: nchar, nvarchar, ntext.
Date/Time Types: datetime, smalldatetime.
Collation in SQL Server 2000.
Collations Specified at Multiple Levels.
Collations at the Database Level.
Collations at the Column Level.
Collations in Expressions.
Considerations Before Changing the Collation of a Database.
Collation Precedence.
COLLATE Keyword.
Limitations of the COLLATE Keyword.
Issues with Defining Collation at the Column Level.
LCIDs and Collations.
ISO Strings and Collations.
Multilingual Data in the User Interface.
Multilingual Information in the Grid and SQL Panes of SQL Query Analyzer.
Format Issues in the Query Designer.
Sort Order.
Double-Byte (DBCS) Characters.
Getting to SQL Server Data (Data Access Methods).
Multilingual Transact-SQL.
II. ADVANCED DBA TOPICS.
20. SQL-Distributed Management Objects.
SQL-DMO Object Model.
ExecuteImmediate Method.
Script Method.
SQL-DMO Code for Executing a Job.
SQL-DMO Code to Play with Triggers.
21. Microsoft Desktop Engine.
Features and Limitations.
MSDE Install.
Scenarios for Using MSDE.
Developing Applications with MSDE.
MSDE Service Pack1.
22. Administration.
Undocumented DBCC Commands.
Information Schema Views.
Orphaned Sessions.
Resolving Issues through the Query Analyzer.
Changing the Check Frequency.
Linked Servers.
Setting the Linked Server Options.
Creating Logins for the Linked Server.
Querying the Linked Server.
23. Debugging Database Performance Issues.
Performance Monitor.
Which Process Is the Bottleneck?
Task Manager.
Performance Monitor Counters.
I/O Performance Counters.
Memory Performance Counters.
Network Performance Counters.
SQL Server Performance Counters.
Settings.
Event Viewer.
SQL Server Profiler.
Hardware Issues.
Database Setup.
SQL Tips.
Use Clustered Indexes.
Short Index Keys.
Use Covering Indexes.
Help SQL Server Choose Indexes.
Estimate Index Selectivity.
Use the SQL Server Query Optimizer.
Use Indexes Effectively.
Use Foreign Keys for Joins.
Use Concatenated Keys Correctly.
Use Only Selective Indexes.
Avoid NULL Checks.
Avoid Functions and Expressions on the Indexed Columns.
Avoid the Inequality Operator.
Avoid Full Table Scans.
Use EXISTS to Check for the Existence of a Record.
Replace NOT IN with NOTEXISTS.
Large Insert, Update, and Delete SQLs.
Do Not Use Positional Numbers.
Use Group Functions Carefully.
24. SQL Server 2000 Service Pack 1.
Installing Service Pack 1.
Install Database Components SP1.
Install Desktop Engine SP1.
Removing Service Pack 1/Rolling Back to the Previous State.
Fixing Bugs.
SQL Server 2000 Fixes.
III. COMPARISON WITH ORACLE 9I.
25. Oracle 9i vs. SQL Server 2000.
Database System Catalogs.
Physical and Logical Storage Structures.
Striping Data.
Transaction Logs and Automatic Recovery.
Networks.
Comparison of Features Provided by the Two RDBMS.
New Features in Oracle 9i.
26. Migrating from Oracle 9i Databases to SQL Server 2000.
Network Security.
Login Accounts.
Groups, Roles, and Permissions.
Database Users and the Guest Account.
Sysadmin Role.
db-owner Role.
Defining Database Objects.
Qualifying Table Names.
Creating Tables.
Table and Index Storage Parameters.
Views.
Indexed Views/Materialized Views.
Clustered Indexes.
Nonclustered Indexes.
Index Syntax and Naming.
Index Data Storage Parameters.
Ignoring Duplicate Keys.
Indexes on Computed Columns.
Using Temporary Tables.
Data Types.
Object-Level Permissions.
Enforcing Data Integrity and Business Rules.
Naming Constraints.
Primary Keys and Unique Columns.
Adding and Removing Constraints.
Generating Unique Values.
Domain Integrety.
Referential Integrity.
User-Defined Integrity.
Delaying the Execution of a Stored Procedure.
Specifying Parameters in a Stored Procedure.
Triggers.
Transactions, Locking, and Concurrency.
Locking and Transaction Isolation.
Dynamic Locking.
Changing Default Locking Behavior.
Handling Deadlocks.
Insert Statements: The Forgotten Culprit.
Remote Transactions.
Distributed Transactions.
Two-Phase Commit Processing.
SQL Language Support.
SELECT Statements.
INSERT Statements.
UPDATE Statements.
DELETE Statements.
TRUNCATE TABLE Statement.
Manipulating Data in Identity and Timestamp Columns.
Locking Requested Rows.
Row Aggregates and the Compute Clause.
Reading and Modifying BLOBs.
Functions.
Conditional Tests.
Converting Values to Different Data Types.
User-Defined Functions.
Comparison Operators.
Using NULL in Comparisons.
String Concatenation.
Control-of-Flow Language.
Assigning Variables.
Statement Blocks.
Conditional Processing.
Repeated Statement Execution (Looping).
GOTO Statement.
PRINT Statement.
Returning from Stored Procedures.
Raising Program Errors.
Implementing Cursors.
Declaring a Cursor.
Opening a Cursor.
Fetching Data.
CURRENT OF Clause.
Closing a Cursor.
Developing and Administering Database Replication.
Moving Data and Applications.
IV. SCRIPTS AND UTILITIES.
27. Administration and Utility Scripts.
Enable Constraints.
USP_Find_Lock.
USP_Lock_Info.
Greatest.
Update Statistics.
USP_Active.
Objects.
Number_Of_Rows.
USP_Update_One_Table.
USP_System_Info.
USP_Null_Columns.
USP_SetUP_Paths.
USP_Identity_Columns.
USP_DB_File_Info.
USP_NOIndexes.
USP_RenameDB.
USP_ForceDropDB.
USP_Trace_BlackBox.
Registry_Info.
USP_KillConnections.
USP_FK_PK.
USP_DefragDatabase.
USP_DBUpdate.
USP_Calc_Space.
BackUp.vbs.
USP_PingServers.
Schema Comparison Scripts.
USP_MonitorServices.
USP_DTSReplaceOwner.
DTS Packages.
Back Up Databases and Version Control.
ScriptData.
ExportPackages.vbs.
ImportPackages.vbs.
Executing DTS Through T-SQL.
Copying Databases from Server to Server.
Method 2.
Method 3.
Method 4.
Method 5.
V. SQL SERVER.NET.
28. SQL Server 2000 and .NET.
From Products Vendor to Services Vendor.
Web Services.
.NET Servers.
SQL Server 2000 and .NET.
Next Release of Microsoft Server.
Windows XP and .NET.
Appendix.
Index.
Caractéristiques techniques
PAPIER | |
Éditeur(s) | Addison Wesley |
Auteur(s) | Rahul Sharma |
Parution | 09/03/2002 |
Nb. de pages | 558 |
Format | 18,5 x 23,5 |
Couverture | Broché |
Poids | 887g |
Intérieur | Noir et Blanc |
EAN13 | 9780201752830 |
Avantages Eyrolles.com
Consultez aussi
- Les meilleures ventes en Graphisme & Photo
- Les meilleures ventes en Informatique
- Les meilleures ventes en Construction
- Les meilleures ventes en Entreprise & Droit
- Les meilleures ventes en Sciences
- Les meilleures ventes en Littérature
- Les meilleures ventes en Arts & Loisirs
- Les meilleures ventes en Vie pratique
- Les meilleures ventes en Voyage et Tourisme
- Les meilleures ventes en BD et Jeunesse