|
Sybase SQL Server 11 Unleashed
by Jeff Garbus Sams, Macmillan Computer Publishing ISBN: 0672309092 Pub Date: 04/16/96 |
| Table of Contents |
Congratulations! You have bought the premier multi-platform database management product on the market today. System 11 SQL Server continues to provide the performance, scalability, and value characteristic of Sybase database products.
System 11 SQL Server is a relational database management system (RDMS or RDBMS, depending on where you grew up!) that is capable of handling large amounts of data and many concurrent users while preserving data integrity and providing many advanced administration and data distribution capabilities.
Here are a few of the capabilities of SQL Server:
This Unleashedbook is meant for anyone who is responsible for designing, building, administering and tuning systems that rely on SQL Server. Among other things, this book contains performance information you may not find anywhere else, including tuning methods and advanced SQL techniques that are undocumented or not well described.
Understanding SQL Server starts with understandingboth functionally and conceptuallythe tasks an administrator or programmer must perform. There are several third-party tools available in the market for working with SQL Server, but few tools that ship with the core SQL Server product. For this reason, this book is task-oriented, not tool-orientedconcentrating on the tools and commands available in the core SQL Server product. In this book, we will explain the important tasks and the concepts behind them, describe when they need to occur, then show you how to perform them in the core product. You will then have a better understanding of what the tools you may choose to use are doing behind the scenes.
This book consists of five sections:
If SQL Server is not yet installed, you may want to start with Chapter 24, SQL Server Installation and Connectivity, to get SQL Server up and running, then continue on to the other sections of this book.
Start at the beginning and read about how this stuff is built. (You will never make the time later and you really need to understand this stuff to make good use of the server.)
As a System Administrator, you should read Chapter 3, Introduction to Transact-SQL, because you will need to know some SQL. Then you can jump right to Chapter 23, Overview of System Administration, and work through the administration section.
As a Database Administrator, you will need to understand Transact-SQL programming, so work through the book in order from Chapter 3 to about Chapter 14. Before you design a system ready to go into production, you should finish the performance section and try some stuff using a hands-on approach. Then you need to understand thoroughly Chapters 28 (on database logging) and 31 (on server configuration and performance). Read Chapter 22, Common Performance and Tuning Problems, before you take a production system online. If you are working with large databases, be sure to read Chapter 35.
As a programmer, you should probably read the chapters in order through Chapter 10, then make the time to look at Chapters 12 through 16 to make sure you understand the kinds of performance issues and problems you might run into. If you will be writing in Visual Basic or C, read the section on Open Client Programming. (It may help you choose the best architecture for your application.) Finally, make the time to read 19, Application Design for Performance, and Chapter 20, Advanced Transact-SQL Programming.
Weve tried to be consistent in our use of conventions here. Names of commands and stored procedures are presented in a special monospaced, computer typeface. In the text itself, we have tried to present all SQL keywords in the text in upper case, but because SQL Server does not make a distinction between upper- and lowercase for SQL keywords in actual SQL code, many code examples show SQL keywords in lowercase.
We have purposely not capitalized the names of objects, databases, or logins/users where that would be incorrect. That may have left sentences starting like this, sysdatabases includes with an initial lowercase character.
Code and output examples are presented separately from regular paragraphs and also are in a monospaced, computer typeface. Here is an example:
select id, name, audflags from sysobjects where type != "S" id name audflags ---------- ------------------------------ ---------- 144003544 marketing_table 130
When we provide syntax for a command, weve attempted to follow the following conventions:
| Key | Definition |
|---|---|
| command | Command names, options, and other keywords |
| variable | Indicates values you provide |
| {} | Indicates you must choose at least one of the enclosed options |
| [] | Means the value/keyword is optional |
| () | Parentheses are part of the command |
| | | Indicates you can select only one of the options shown |
| , | Means you can select as many of the options shown, separated by commas |
| Indicates the previous option can be repeated | |
Consider the following example:
grant {all | permission_list} on object [(column_list)] to {public |
user_or_group_name [,
]}
In this case, the object value is required, but the column_list is optional. Note also that items shown in plain computer type, such as grant, public, or all, should be entered literally as shown. Placeholders are presented in italics, such as permission_list and user_or_group_name; a placeholder is a generic term for which you must supply a specific value or values. The ellipses in the square brackets following user_or_group_name indicates that multiple user or group names can be specified separated by commas. You can specify either the keyword public or one or more user or group names, but not both.
Our editors were enormously helpful in finding inconsistencies in how we used these conventions. We apologize for any that remain; they are entirely the fault of the authors.
Please note that much of the material in this book was based upon a pre-release version of System 11 SQL Server. The syntax or output of some of the SQL Server commands and procedures may be different in the final General Availability (GA) release of System 11 SQL Server.
You are in good shape now. You have chosen a fine platform for building database applications, one that can provide outstanding performance and rock-solid reliability at a reasonable cost. And you now have the information you need to make the best of it.
We wish you all the best with SQL Server.
| Table of Contents |