Apress

SQL Server 2012 T-SQL Recipes

A Problem-Solution Approach

3rd Edition

By Jason Brimhall , David Dye , Jonathan Gennick , Andy Roberts , Wayne Sheffield

SQL Server 2012 T-SQL Recipes Cover Image

SQL Server 2012 T-SQL Recipes is an example-based guide to the Transact-SQL language that is at the core of SQL Server 2012. It provides ready-to-implement solutions to common programming and database administration tasks.

Full Description

  • ISBN13: 978-1-4302-4200-0
  • 808 Pages
  • User Level: Intermediate to Advanced
  • Publication Date: September 17, 2012
  • Available eBook Formats: EPUB, MOBI, PDF
  • Print Book Price: $59.99
  • eBook Price: $41.99
Buy eBook Buy Print Book Add to Wishlist

Related Titles

Full Description

SQL Server 2012 T-SQL Recipes is an example-based guide to the Transact-SQL language that is at the core of SQL Server 2012. It provides ready-to-implement solutions to common programming and database administration tasks. Learn to create databases, insert and update data, generate reports, secure your data, and more. Tasks and their solutions are broken down into a problem/solution format that is quick and easy to read so that you can get the job done fast when the pressure is on.

Solutions in this book are divided into chapters by problem domain. Each chapter is a collection of solutions around a single facet of the language such as writing queries, developing triggers, and applying aggregate functions. Each solution is presented code-first, giving you a working code example to copy from and implement immediately in your own environment. Following each example is an in-depth description of how and why the given solution works. Tradeoffs and alternative approaches are also discussed.

  • Focused on solutions: Look up what you need to do. Learn how to do it. Do it.
  • Current: Newly updated for SQL Server 2012
  • Comprehensive: Covers all common T-SQL problem domains

What you’ll learn

  • Create databases, tables, and indexes
  • Query and manipulate data
  • Store and manage XML inside the database
  • Move business logic into the database
  • Resolve common performance problems.
  • Build reports that matter to your business.
  • Perform common backup and recovery tasks.

Who this book is for

SQL Server 2012 T-SQL Recipes is aimed at technically-oriented users of SQL Server desiring to extract the full power of the platform through it's powerful, built-in programming and scripting language. Target readers include developers who use Microsoft SQL Server 2012 as their back–end database, and the database administrators who create, manage, and secure those databases.

Table of Contents

Table of Contents

  1. Getting Started with SELECT
  2. Elementary Programming
  3. Nulls and Other Pitfalls
  4. Combining Data from Multiple Tables
  5. Grouping and Summarizing
  6. Advanced SELECT Techniques
  7. Query Techniques for Reporting
  8. Inserting, Updating, Deleting
  9. Working with Strings
  10. Working with Dates
  11. Working with Numbers
  12. Transactions, Locking, Blocking, Deadlocking
  13. Managing Tables
  14. Managing Views
  15. Managing Indexes
  16. Managing Large Tables
  17. Stored Procedures
  18. User-Defined Functions
  19. Triggers
  20. Error Handling
  21. Query Performance
  22. Hints
  23. Index Tuning and Statistics
  24. XML
  25. Files, Filegroups, and Integrity
  26. Backup
  27. Recovery
  28. Principals and Users
  29. Securables and Permissions
  30. Objects and Dependencies
Source Code/Downloads

Downloads are available to accompany this book.

Your operating system can likely extract zipped downloads automatically, but you may require software such as WinZip for PC, or StuffIt on a Mac.

Errata

If you think that you've found an error in this book, please let us know about it. You will find any confirmed erratum below, so you can check if your concern has already been addressed.

* Required Fields

No errata are currently published