Book description
Introducing SQL Server is a fast and easy introduction to SQL Server and the world of relational databases. You’ll learn how databases work and how to use the T-SQL language by practicing on one of the most widely-used and powerful database engines in the corporate world: Microsoft SQL Server.
Do you quake at the sight of a SELECT statement? Start to shiver when people start talking about tables and rows? Fear not, Introducing SQL Server is here to rescue you. The book focuses on the knowledge and skills needed to begin your journey toward becoming a solid and competent SQL Server professional and database programmer. You’ll learn the core concepts of SQL Server, from installing the software to executing and profiling queries.
Introducing SQL Server is aimed at SQL Server newcomers as well as at those wanting to improve their database skills. You’ll put a comprehensive database together as you work through the book. You will create tables and learn to use constraints; create reusable functions and stored procedures; and even learn how indexes work and what they bring in terms of increased performance. Introducing SQL Server shows you that databases don’t need to be difficult.
Table of contents
- Cover
- Title
- Copyright
- Dedication
- Contents at a Glance
- Contents
- About the Author
- About the Technical Reviewer
- Acknowledgments
- Chapter 1 : What Is SQL Server?
- Chapter 2 : Obtaining and Installing SQL Server
- Chapter 3 : Database Basics
- Chapter 4 : Tables
- Chapter 5 : Putting Good Tables Together
- Chapter 6 : Automating Deployment with SQLCMD
- Chapter 7 : NULLs and Table Constraints
- Chapter 8 : DML (or Inserts, Updates, and Deletes)
- Chapter 9 : Bulk Inserting Data
- Chapter 10 : Creating Data Import Scripts
- Chapter 11 : The SELECT Statement
- Chapter 12 : Joining Tables
- Chapter 13 : Views
-
Chapter 14 : Indexes
- What Is an Index?
- Why Are Indexes Useful?
- What Do Indexes Affect?
- Identifying Which Columns to Index
- How Indexes Work
- Basics Of The CREATE INDEX Statement
- Clustered Indexes
- Non-Clustered Indexes
- Indexed Columns vs. Included Columns
- Filtered Indexes
- Unique Indexes
- Other Types of Index
- Maintaining Indexes
- Dropping Indexes
- Statistics
- Creating Indexed Views
- Are Indexes Ever a Bad Idea?
- Summary
- Chapter 15 : Transactions
- Chapter 16 : Functions
- Chapter 17 : Table-Valued Functions
-
Chapter 18 : Stored Procedures—Part 1
- What Are Stored Procedures, and Why Should I Use Them?
- CREATE PROCEDURE and ALTER PROCEDURE
- DROP PROCEDURE
- SSMS and Stored Procedures
- A First Stored Procedure
- Executing a Stored Procedure
- SET NOCOUNT ON and OFF
- Schema Names
- Returning Data from Stored Procedures
- Parameters
- Basic Debugging with PRINT
- Rollback
- Summary
- Chapter 19 : Stored Procedures—Part 2
- Chapter 20 : Bits and Pieces
- Appendix A: SQL Data Types
- Appendix B: Glossary
-
Appendix C: Common SQL Server System Objects
- Global Variables
-
System Functions
- AVG()
- COALESCE(value1, value2, valueN)
- COUNT(criteria)
- DATABASEPROPERTYEX(database name, property name)
- DATEADD(datepart, number to add/subtract, date)
- DAY(date)
- DB_ID()
- DB_NAME(id)
- GETDATE()
- GETUTCDATE()
- LEFT(string, number of characters)
- LEN(string)
- LOWER(string)
- LTRIM(string)
- MAX()
- MIN()
- MONTH(date)
- OBJECT_NAME(id)
- RIGHT(string, number of characters)
- RTRIM(string)
- SCOPE_IDENTITY()
- UPPER(string)
- YEAR(date)
- System Stored Procedures
- Appendix D: Exercises
- Index
Product information
- Title: Introducing SQL Server
- Author(s):
- Release date: October 2015
- Publisher(s): Apress
- ISBN: 9781484214190
You might also like
book
Introducing Microsoft SQL Server 2019
Explore the impressive storage and analytic tools available with the in-cloud and on-premises versions of Microsoft …
book
Securing SQL Server: DBAs Defending the Database
Protect your data from attack by using SQL Server technologies to implement a defense-in-depth strategy for …
book
Securing SQL Server: DBAs Defending the Database
Protect your data from attack by using SQL Server technologies to implement a defense-in-depth strategy, performing …
book
Securing SQL Server, 3rd Edition
SQL server is the most widely-used database platform in the world, and a large percentage of …