Tài liệu hạn chế xem trước, để xem đầy đủ mời bạn chọn Tải xuống
1
/ 769 trang
THÔNG TIN TÀI LIỆU
Thông tin cơ bản
Định dạng
Số trang
769
Dung lượng
3,91 MB
Nội dung
[...]... functionality introduced in SQL Server2005A majority of the examples in this book use the AdventureWorks database, which is an optional install with SQLServer2005 ■ The AdventureWorks database is a sample database provided with SQLServer2005 It’s similar to the Tip Northwind and Pubs databases found in previous versions of SQLServer For instructions on installing this database, see SQLServer2005. .. from aSQLServer database using the SELECT statement At the beginning of each chapter you’ll notice that most of the basic concepts are covered first This is for those of you who are new to the SQLServer2005 Transact -SQL query language In addition to the basics, I’ll also provide recipes that can be used in your day-to-day development and administration These recipes will also help you learn about... on This book covers the basics and beyond, demonstrating the more complex techniques and functionality offered in SQLServer2005 s flavor of Transact -SQL Want to learn more about what’s new in SQLServer 2005? This book will also demonstrate the new Transact -SQL features and functionality introduced in SQLServer 2005, allowing you to quickly test out features with a minimal amount of fuss Written to... SELECT Statement The SELECT command is the cornerstone of the Transact -SQL language, allowing you to retrieve data from aSQLServer database (and more specifically from database objects within aSQLServer database) Although the full syntax of the SELECT statement is enormous, the basic syntax can be presented in a more boiled down form: SELECT select_list FROM table_list The select_list argument... Removing a Filegroup 563 Making a Database or Filegroup Read-Only 564 Viewing and Managing Database Space Usage 565 Viewing Database Space Usage 565 Shrinking the Database or a Database File 567 ■ CHAPTER 23 Database Integrity and Optimization 571 Database Checking... Creating a Database Using File Options 525 Creating a Database with a User-Defined Filegroup 528 Setting Database User Access 530 Renaming a Database 532 Dropping a Database 534 Detaching a Database 534 Attaching a Database... Page Verification 552 Controlling Database Access and Ownership 554 Changing a Database State to Online, Offline, or Emergency 554 Changing a Database Owner 555 Managing Database Files and Filegroups 556 Adding a Data File or Log File to an Existing Database 556 Removing a. .. Reporting Database User Information 422 Modifying a Database User 422 Removing a Database User from the Database 423 Fixing Orphaned Database Users 423 Reporting Fixed Database Roles Information 425 Managing Fixed Database Role Membership 427 Managing User-Defined Database... first part of the two part name was called the object owner Now, with SQLServer 2005, users are separated from direct ownership of database objects Instead of owning the object directly, a schema contains the object, and that schema is then owned by a user In SQLServer 2000, if an object was owned by Jane, and Jane left the company, you would not be able to drop her login until you reassigned all of... is SQLServer Books Online With its massive amounts of useful information, you know that the answer has to be there somewhere Unfortunately, finding this information may involve several click-throughs and red herrings Once you do arrive at the correct page, the information you need may be integrated into a larger syntax block, with unrelated functionality or examples SQL Server2005 T -SQL Recipes was .