Preface |
|
xxiii | |
Acknowledgments |
|
xxvii | |
|
|
1 | (32) |
|
|
1 | (2) |
|
Hardware Requirements for Installation |
|
|
3 | (6) |
|
Installation of SQL Server 2000 |
|
|
9 | (14) |
|
Debugging Installation Issues with SQL Server 2000 |
|
|
14 | (1) |
|
Upgrading from a Previous Version of SQL Server |
|
|
15 | (2) |
|
|
17 | (1) |
|
Adding Components to an Instance of SQL Server 2000 |
|
|
18 | (1) |
|
Uninstalling SQL Server 2000 |
|
|
19 | (1) |
|
|
20 | (2) |
|
Installing SQL Server Using SMS |
|
|
22 | (1) |
|
|
23 | (1) |
|
|
23 | (3) |
|
|
24 | (1) |
|
|
24 | (1) |
|
File Locations for Multiple Instances of SQL Server |
|
|
25 | (1) |
|
|
26 | (1) |
|
Collations Support for Internationalization |
|
|
26 | (1) |
|
Checklist for a Successful Install of SQL Server |
|
|
27 | (3) |
|
Maintenance and Integrity Checks |
|
|
30 | (1) |
|
|
31 | (2) |
PART I New Features and Improvements over SQL Server 7.0 |
|
33 | (240) |
|
Enhancements and Changes to Existing Features |
|
|
35 | (14) |
|
|
35 | (11) |
|
|
35 | (1) |
|
|
36 | (1) |
|
More Scalable and Reliable |
|
|
36 | (1) |
|
|
37 | (1) |
|
|
37 | (1) |
|
Reduction in Development Time |
|
|
38 | (1) |
|
Accessing Data via Internet |
|
|
39 | (1) |
|
|
40 | (1) |
|
|
40 | (1) |
|
|
40 | (1) |
|
|
41 | (1) |
|
|
41 | (1) |
|
|
41 | (1) |
|
|
41 | (1) |
|
Distributed Partitioned Views |
|
|
42 | (1) |
|
|
42 | (1) |
|
|
42 | (1) |
|
INSTEAD OF and AFTER Triggers |
|
|
43 | (1) |
|
|
43 | (1) |
|
Full-Text Search Enhancements |
|
|
43 | (1) |
|
Multiple Instances of SQL Server |
|
|
44 | (1) |
|
|
44 | (1) |
|
Failover Clustering Enhancements |
|
|
44 | (1) |
|
|
44 | (1) |
|
|
45 | (1) |
|
Distributed Query Enhancements |
|
|
45 | (1) |
|
Kerberos and Security Delegation |
|
|
45 | (1) |
|
Backup and Restore Enhancements |
|
|
46 | (1) |
|
Scalability Enhancements for Utility Operations |
|
|
46 | (1) |
|
|
46 | (1) |
|
|
46 | (3) |
|
XML Support in SQL Server 2000 |
|
|
49 | (28) |
|
Generating XML with the SELECT Statement |
|
|
50 | (1) |
|
Generating XML over the Internet |
|
|
51 | (1) |
|
Retrieving XML-Formatted Data from SQL Server |
|
|
51 | (2) |
|
|
53 | (4) |
|
|
57 | (1) |
|
|
58 | (4) |
|
|
62 | (2) |
|
XML System Stored Procedures |
|
|
64 | (1) |
|
|
64 | (6) |
|
Writing Queries Against an XML Document |
|
|
70 | (6) |
|
|
70 | (1) |
|
XPath Expression to Identify the Nodes to Be Processed' (rowpattern) |
|
|
70 | (1) |
|
Description of the Rowset to Be Generated |
|
|
71 | (1) |
|
Mapping Between the Rowset Columns and the XML Nodes |
|
|
72 | (1) |
|
Specifying Metaproperties in OPENXML |
|
|
73 | (1) |
|
|
73 | (3) |
|
|
76 | (1) |
|
Engine Enhancements in SQL Server 2000 |
|
|
77 | (22) |
|
|
78 | (3) |
|
|
81 | (4) |
|
Reading Data More Effectively |
|
|
82 | (1) |
|
|
82 | (1) |
|
|
83 | (1) |
|
|
83 | (2) |
|
|
85 | (2) |
|
|
85 | (1) |
|
|
86 | (1) |
|
|
86 | (1) |
|
|
87 | (4) |
|
|
88 | (1) |
|
Shrinking the Transaction Log |
|
|
89 | (1) |
|
|
90 | (1) |
|
Improved Backup Functionality |
|
|
91 | (2) |
|
Administrative Improvements |
|
|
93 | (2) |
|
|
93 | (1) |
|
|
94 | (1) |
|
System Process IDs and Units of Work |
|
|
94 | (1) |
|
|
95 | (1) |
|
|
95 | (2) |
|
|
96 | (1) |
|
Files, Filegroups, and Disks |
|
|
96 | (1) |
|
|
97 | (2) |
|
|
99 | (14) |
|
|
100 | (2) |
|
|
101 | (1) |
|
Enhanced Logging Facilities |
|
|
101 | (1) |
|
Saving DTS Packages to Visual Basic Files |
|
|
101 | (1) |
|
Using the Multiphase Data Pump |
|
|
101 | (1) |
|
Using Parameterized Queries |
|
|
101 | (1) |
|
Using Global Variables to Pass Information Between DTS Packages |
|
|
102 | (1) |
|
|
102 | (5) |
|
Tasks: Defining Steps in a Package |
|
|
102 | (3) |
|
Workflows: Setting Task Precedence |
|
|
105 | (1) |
|
Connections: Accessing and Moving Data |
|
|
106 | (1) |
|
Data Pump: Transforming Data |
|
|
107 | (2) |
|
|
108 | (1) |
|
|
109 | (1) |
|
Options for Saving DTS Packages |
|
|
109 | (1) |
|
DTS as an Application Development Platform |
|
|
110 | (1) |
|
|
110 | (3) |
|
Profiler and Index Tuning Wizard Enhancements |
|
|
113 | (32) |
|
|
113 | (2) |
|
|
115 | (13) |
|
|
116 | (2) |
|
|
118 | (4) |
|
|
122 | (3) |
|
|
125 | (3) |
|
|
128 | (1) |
|
Defining Your Own Trace Using Stored Procedures |
|
|
128 | (1) |
|
Defining a Server Side Trace |
|
|
129 | (6) |
|
Known Bug in SQL Server 2000 Profiler |
|
|
135 | (1) |
|
|
135 | (1) |
|
|
136 | (1) |
|
|
136 | (1) |
|
|
136 | (2) |
|
Analyzing Index Tuning Wizard Output |
|
|
138 | (2) |
|
Starting the Index Tuning Wizard |
|
|
140 | (1) |
|
|
140 | (4) |
|
|
144 | (1) |
|
|
145 | (10) |
|
|
146 | (1) |
|
|
146 | (2) |
|
New Features and Improvements |
|
|
148 | (3) |
|
|
148 | (1) |
|
|
149 | (1) |
|
Transactional Replication |
|
|
150 | (1) |
|
|
151 | (1) |
|
Transforming Published Data |
|
|
151 | (1) |
|
|
151 | (1) |
|
|
152 | (2) |
|
Configuring Log Shipping with the Database Maintenance Plan Wizard |
|
|
152 | (1) |
|
Configuring Log Shipping Manually |
|
|
153 | (1) |
|
|
154 | (1) |
|
|
155 | (6) |
|
|
155 | (1) |
|
|
155 | (2) |
|
|
157 | (3) |
|
|
160 | (1) |
|
|
161 | (8) |
|
Types of User Defined Functions |
|
|
162 | (4) |
|
|
162 | (1) |
|
|
162 | (4) |
|
Obtaining Information About Functions |
|
|
166 | (1) |
|
|
166 | (3) |
|
|
169 | (12) |
|
Performance Gains from Indexed Views |
|
|
170 | (1) |
|
Benefits of Using Indexed Views |
|
|
171 | (1) |
|
|
171 | (2) |
|
|
173 | (2) |
|
|
175 | (3) |
|
Using SET Options to Obtain Consistent Results |
|
|
175 | (1) |
|
Using Deterministic Functions |
|
|
176 | (1) |
|
|
177 | (1) |
|
Maintaining Indexed Views |
|
|
178 | (1) |
|
|
179 | (2) |
|
|
181 | (10) |
|
|
181 | (5) |
|
|
181 | (1) |
|
|
181 | (4) |
|
Core Difference Between INSTEAD OF and AFTER Triggers |
|
|
185 | (1) |
|
|
186 | (1) |
|
Designing INSTEAD OF Triggers |
|
|
186 | (3) |
|
|
189 | (2) |
|
Meta Data Services Enhancements |
|
|
191 | (8) |
|
|
191 | (3) |
|
|
192 | (1) |
|
|
193 | (1) |
|
Meta Data Has Multiple Purposes |
|
|
193 | (1) |
|
|
193 | (1) |
|
Information Model Fundamentals |
|
|
194 | (2) |
|
Information Model Building Blocks |
|
|
195 | (1) |
|
Standard Information Models |
|
|
195 | (1) |
|
Importance of Information Models |
|
|
195 | (1) |
|
New Features in Meta Data Services |
|
|
196 | (1) |
|
Meta Data Browser Enhancement |
|
|
196 | (1) |
|
XML Encoding Enhancements |
|
|
196 | (1) |
|
XML in Meta Data Services |
|
|
196 | (1) |
|
|
197 | (2) |
|
|
199 | (6) |
|
|
199 | (1) |
|
|
199 | (2) |
|
Using Templates in SQL Query Analyzer |
|
|
200 | (1) |
|
Building Your Own Template |
|
|
201 | (1) |
|
|
201 | (2) |
|
Uses of Copy Database Wizard |
|
|
202 | (1) |
|
|
203 | (1) |
|
|
203 | (2) |
|
Backup and Recovery Enhancements |
|
|
205 | (8) |
|
Backup and Restore Architecture |
|
|
205 | (2) |
|
|
206 | (1) |
|
|
207 | (4) |
|
|
208 | (1) |
|
|
208 | (1) |
|
|
209 | (2) |
|
Switching Recovery Models |
|
|
211 | (1) |
|
|
211 | (2) |
|
Analysis Services Enhancements |
|
|
213 | (8) |
|
|
213 | (2) |
|
|
215 | (2) |
|
|
217 | (1) |
|
|
218 | (1) |
|
|
219 | (2) |
|
Distributed Partitioned Views |
|
|
221 | (14) |
|
What Are Distributed Partitioned Views? |
|
|
221 | (5) |
|
How Distributed Partitioned Views Work |
|
|
223 | (1) |
|
Building Distributed Partitioned Tables and Views |
|
|
223 | (2) |
|
How the Query Processor Uses Distributed Partitioned Views |
|
|
225 | (1) |
|
Designing Systems That Maximize Distributed Partitioned View Performance |
|
|
226 | (3) |
|
|
226 | (2) |
|
Designing the Application Tier for Load Balancing |
|
|
228 | (1) |
|
Designing for High Availability |
|
|
228 | (1) |
|
Backing Up and Restoring Federated Database Servers |
|
|
229 | (1) |
|
Updatable Partitioned Views |
|
|
229 | (4) |
|
|
230 | (1) |
|
|
230 | (1) |
|
Partitioning Column Rules |
|
|
231 | (1) |
|
|
231 | (1) |
|
|
231 | (1) |
|
|
232 | (1) |
|
|
232 | (1) |
|
Distributed Partition View Rules |
|
|
233 | (1) |
|
|
233 | (2) |
|
|
235 | (4) |
|
|
237 | (2) |
|
Cascading Declarative Referential Integrity |
|
|
239 | (6) |
|
Cascading Referential Integrity Constraints |
|
|
239 | (1) |
|
Multiple Cascading Actions |
|
|
240 | (1) |
|
Triggers and Cascading Referential Actions |
|
|
241 | (1) |
|
Cascading Referential Constraints Catalog Information |
|
|
242 | (1) |
|
|
243 | (2) |
|
|
245 | (28) |
|
How Character Data Is Stored |
|
|
245 | (2) |
|
International Data and Unicode |
|
|
247 | (1) |
|
|
248 | (1) |
|
What Is Unicode and How Can It Be Used? |
|
|
248 | (3) |
|
|
249 | (1) |
|
|
250 | (1) |
|
|
250 | (1) |
|
Data Types in SQL Server 2000 |
|
|
251 | (4) |
|
Non-Unicode Text Types: char varchar, text |
|
|
251 | (1) |
|
Unicode Text Types: nchar, nvarchar, ntext |
|
|
252 | (1) |
|
Date/Time Types: datetime, smalldatetime |
|
|
253 | (2) |
|
Collation in SQL Server 2000 |
|
|
255 | (3) |
|
Collations Specified at Multiple Levels |
|
|
258 | (5) |
|
Collations at the Server Level |
|
|
258 | (1) |
|
Collations at the Database Level |
|
|
258 | (1) |
|
Collations at the Column Level |
|
|
259 | (2) |
|
Collations in Expressions |
|
|
261 | (1) |
|
Considerations Before Changing the Collation of a Database |
|
|
262 | (1) |
|
|
263 | (2) |
|
|
265 | (1) |
|
Limitations of the COLLATE Keyword |
|
|
266 | (1) |
|
Issues with Defining Collation at the Column Level |
|
|
266 | (1) |
|
|
266 | (1) |
|
ISO Strings and Collations |
|
|
267 | (1) |
|
Multilingual Data in the User Interface |
|
|
267 | (1) |
|
Multilingual Information in the Grid and SQL Panes of SQL Query Analyzer |
|
|
268 | (1) |
|
Format Issues in the Query Designer |
|
|
269 | (1) |
|
|
269 | (1) |
|
Double-Byte (DBCS) Characters |
|
|
270 | (1) |
|
Getting to SQL Server Data (Data Access Methods) |
|
|
270 | (1) |
|
Multilingual Transact-SQL |
|
|
271 | (1) |
|
|
272 | (1) |
Part II Advanced DBA Topics |
|
273 | (96) |
|
SQL Distributed Management Objects |
|
|
275 | (8) |
|
|
276 | (1) |
|
|
276 | (2) |
|
|
278 | (1) |
|
|
279 | (1) |
|
SQL-DMO Code for Executing a Job |
|
|
280 | (1) |
|
SQL-DMO Code to Play with Triggers |
|
|
281 | (1) |
|
|
282 | (1) |
|
|
283 | (10) |
|
|
284 | (1) |
|
|
284 | (1) |
|
|
285 | (1) |
|
|
286 | (3) |
|
|
289 | (1) |
|
Developing Applications with MSDE |
|
|
290 | (1) |
|
|
290 | (1) |
|
|
290 | (1) |
|
|
291 | (2) |
|
|
293 | (20) |
|
Database Consistency Checks (DBCCs) |
|
|
293 | (2) |
|
Undocumented DBCC Commands |
|
|
295 | (6) |
|
|
301 | (2) |
|
|
303 | (3) |
|
Issues with Orphaned Sessions |
|
|
303 | (1) |
|
Resolving Issues through the Query Analyzer |
|
|
304 | (1) |
|
Changing the Check Frequency |
|
|
305 | (1) |
|
|
306 | (5) |
|
|
307 | (1) |
|
Setting the Linked Server Options |
|
|
308 | (1) |
|
Creating Logins for the Linked Server |
|
|
309 | (1) |
|
Querying the Linked Server |
|
|
309 | (2) |
|
|
311 | (2) |
|
Debugging Database Performance Issues |
|
|
313 | (38) |
|
Performance Monitor or Task Manager? |
|
|
313 | (1) |
|
|
314 | (4) |
|
Using the Performance Monitor |
|
|
315 | (2) |
|
Which Process Is the Bottleneck? |
|
|
317 | (1) |
|
|
318 | (1) |
|
Performance Monitor Counters |
|
|
319 | (7) |
|
|
320 | (2) |
|
|
322 | (1) |
|
Memory Performance Counters |
|
|
322 | (1) |
|
Network Performance Counters |
|
|
323 | (1) |
|
SQL Server Performance Counters |
|
|
324 | (2) |
|
|
326 | (2) |
|
|
328 | (2) |
|
|
330 | (1) |
|
|
331 | (4) |
|
|
335 | (1) |
|
|
336 | (13) |
|
Create and Use Proper Indexes |
|
|
336 | (1) |
|
|
337 | (2) |
|
|
339 | (1) |
|
|
340 | (1) |
|
Help SQL Server Choose Indexes |
|
|
341 | (1) |
|
Estimate Index Selectivity |
|
|
341 | (2) |
|
Use the SQL Server Query Optimizer |
|
|
343 | (1) |
|
|
344 | (1) |
|
Use Foreign Keys for Joins |
|
|
344 | (1) |
|
Use Concatenated Keys Correctly |
|
|
344 | (1) |
|
Use Only Selective Indexes |
|
|
344 | (1) |
|
|
345 | (1) |
|
Avoid Functions and Expressions on the Indexed Columns |
|
|
345 | (1) |
|
Avoid the Inequality Operator |
|
|
346 | (1) |
|
|
346 | (1) |
|
Use EXISTS to Check for the Existence of a Record |
|
|
347 | (1) |
|
Replace NOT IN with NOTEXISTS |
|
|
347 | (1) |
|
Large Insert, Update, and Delete SQLs |
|
|
347 | (1) |
|
Do Not Use Positional Numbers |
|
|
348 | (1) |
|
Use Group Functions Carefully |
|
|
348 | (1) |
|
|
349 | (2) |
|
SQL Server 2000 Service Pack 1 |
|
|
351 | (18) |
|
|
352 | (1) |
|
Installing Service Pack 1 |
|
|
353 | (1) |
|
Install Database Components SP1 |
|
|
354 | (2) |
|
Install Analysis Services SP1 |
|
|
355 | (1) |
|
Install Desktop Engine SP1 |
|
|
356 | (1) |
|
Removing Service Pack 1/Rolling Back to the Previous State |
|
|
356 | (1) |
|
|
356 | (12) |
|
|
357 | (5) |
|
|
362 | (6) |
|
|
368 | (1) |
PART III Comparison with Oracle 9i |
|
369 | (88) |
|
Oracle 9i vs. SQL Server 2000 |
|
|
371 | (16) |
|
|
371 | (2) |
|
|
373 | (1) |
|
Physical and Logical Storage Structures |
|
|
374 | (1) |
|
|
374 | (1) |
|
Transaction Logs and Automatic Recovery |
|
|
375 | (1) |
|
|
376 | (1) |
|
Comparison of Features Provided by the Two RDBMS |
|
|
377 | (7) |
|
New Features in Oracle 9i |
|
|
384 | (1) |
|
|
385 | (2) |
|
Migrating from Oracle 9i Databases to SQL Server 2000 |
|
|
387 | (70) |
|
Database Security and Roles |
|
|
387 | (4) |
|
|
387 | (1) |
|
|
387 | (1) |
|
|
388 | (1) |
|
Groups, Roles, and Permissions |
|
|
388 | (1) |
|
Database Users and the Guest Account |
|
|
389 | (1) |
|
|
390 | (1) |
|
|
391 | (1) |
|
Defining Database Objects |
|
|
391 | (7) |
|
Database Object Identifiers |
|
|
393 | (1) |
|
|
393 | (2) |
|
|
395 | (1) |
|
Table and Index Storage Parameters |
|
|
396 | (1) |
|
|
397 | (1) |
|
Indexed Views/Materialized Views |
|
|
398 | (5) |
|
|
398 | (1) |
|
|
399 | (1) |
|
|
400 | (1) |
|
|
400 | (1) |
|
Index Data Storage Parameters |
|
|
401 | (1) |
|
|
401 | (1) |
|
Indexes on Computed Columns |
|
|
402 | (1) |
|
|
402 | (1) |
|
|
403 | (2) |
|
|
403 | (1) |
|
|
404 | (1) |
|
Enforcing Data Integrity and Business Rules |
|
|
405 | (9) |
|
|
406 | (1) |
|
Primary Keys and Unique Columns |
|
|
406 | (1) |
|
Adding and Removing Constraints |
|
|
407 | (1) |
|
|
407 | (2) |
|
|
409 | (1) |
|
|
410 | (1) |
|
|
411 | (1) |
|
Delaying the Execution of a Stored Procedure |
|
|
412 | (1) |
|
Specifying Parameters in a Stored Procedure |
|
|
412 | (1) |
|
|
412 | (2) |
|
Transactions, Locking, and Concurrency |
|
|
414 | (8) |
|
|
415 | (1) |
|
Locking and Transaction Isolation |
|
|
416 | (1) |
|
|
417 | (1) |
|
Changing Default Locking Behavior |
|
|
418 | (2) |
|
|
420 | (1) |
|
Insert Statements: The Forgotten Culprit |
|
|
420 | (2) |
|
|
422 | (1) |
|
|
422 | (1) |
|
Two-Phase Commit Processing |
|
|
423 | (1) |
|
|
423 | (5) |
|
SELECT and Data Manipulation Statements |
|
|
423 | (1) |
|
|
424 | (1) |
|
|
425 | (1) |
|
|
426 | (1) |
|
|
427 | (1) |
|
|
428 | (1) |
|
Manipulating Data in Identity and Timestamp Columns |
|
|
428 | (1) |
|
|
429 | (1) |
|
Row Aggregates and the Compute Clause |
|
|
429 | (2) |
|
|
430 | (1) |
|
Reading and Modifying BLOBs |
|
|
431 | (1) |
|
|
432 | (2) |
|
|
434 | (2) |
|
Converting Values to Different Data Types |
|
|
436 | (1) |
|
|
436 | (2) |
|
|
438 | (1) |
|
|
439 | (1) |
|
Using NULL in Comparisons |
|
|
439 | (1) |
|
|
439 | (1) |
|
|
440 | (13) |
|
|
441 | (1) |
|
|
441 | (1) |
|
|
441 | (1) |
|
|
442 | (1) |
|
Repeated Statement Execution (Looping) |
|
|
442 | (1) |
|
|
443 | (1) |
|
|
443 | (1) |
|
Returning from Stored Procedures |
|
|
444 | (1) |
|
|
444 | (1) |
|
|
445 | (1) |
|
|
445 | (2) |
|
|
447 | (1) |
|
|
447 | (1) |
|
|
448 | (1) |
|
|
448 | (5) |
|
Developing and Administering Database Replication |
|
|
453 | (1) |
|
Moving Data and Applications |
|
|
454 | (1) |
|
|
455 | (2) |
PART IV Scripts and Utilities |
|
457 | (60) |
|
Administration and Utility Scripts |
|
|
459 | (58) |
|
|
459 | (47) |
|
|
459 | (2) |
|
|
461 | (2) |
|
|
463 | (2) |
|
|
465 | (1) |
|
|
466 | (1) |
|
|
466 | (1) |
|
|
467 | (1) |
|
|
468 | (1) |
|
|
469 | (1) |
|
|
470 | (2) |
|
|
472 | (1) |
|
|
473 | (1) |
|
|
474 | (1) |
|
|
474 | (1) |
|
|
475 | (1) |
|
|
475 | (1) |
|
|
476 | (1) |
|
|
476 | (1) |
|
|
477 | (2) |
|
|
479 | (2) |
|
|
481 | (3) |
|
|
484 | (1) |
|
|
485 | (1) |
|
|
486 | (2) |
|
|
488 | (13) |
|
|
501 | (1) |
|
|
502 | (1) |
|
Schema Comparison Scripts |
|
|
503 | (1) |
|
|
504 | (1) |
|
|
505 | (1) |
|
|
506 | (7) |
|
|
507 | (1) |
|
Back Up Databases and Version Control |
|
|
507 | (1) |
|
|
508 | (1) |
|
|
508 | (3) |
|
|
511 | (2) |
|
Executing DTS Through T-SQL |
|
|
513 | (1) |
|
Copying Databases from Server to Server |
|
|
513 | (3) |
|
|
513 | (2) |
|
|
515 | (1) |
|
|
516 | (1) |
|
|
516 | (1) |
|
|
516 | (1) |
|
|
516 | (1) |
PART V SQL Server.NET |
|
517 | (10) |
|
|
519 | (8) |
|
|
519 | (1) |
|
From Products Vendor to Services Vendor |
|
|
519 | (3) |
|
|
522 | (1) |
|
|
522 | (1) |
|
|
523 | (1) |
|
Next Release of Microsoft Server |
|
|
524 | (1) |
|
|
525 | (1) |
|
|
525 | (2) |
Appendix |
|
527 | (4) |
|
|
527 | (1) |
|
|
527 | (1) |
|
MSDE Install Sample VB Application |
|
|
527 | (4) |
Index |
|
531 | |