Apress Access

SQL Server 2008 Transact-SQL Recipes

A Problem-Solution Approach

By Joseph Sack

  • eBook Price: $41.99
Buy eBook Buy Print Book

SQL Server 2008 Transact-SQL Recipes Cover Image

SQL Server 2008 Transact-SQL Recipes: A Problem-Solution Approach is an example-based guide to the Transact-SQL language that is at the core of SQL Server 2008. Learn to create databases, insert and update data, generate reports, secure your data, and more.

Full Description

  • Add to Wishlist
  • ISBN13: 978-1-59059-980-8
  • 872 Pages
  • User Level: Beginner to Advanced
  • Publication Date: July 24, 2008
  • Available eBook Formats: PDF

Related Titles

  • High Performance SQL Server
  • Expert Scripting and Automation for SQL Server DBAs
  • Beginning SQL Server R Services
  • Securing SQL Server
Full Description

SQL Server 2008 Transact–SQL Recipes: A Problem–Solution Approach is an example–based guide to the Transact–SQL language that is at the core of SQL Server 2008. Learn to create databases, insert and update data, generate reports, secure your data, and more. Author Joseph Sack takes common Transact–SQL tasks and breaks them 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.

  • Focused on solutions: Look up what you need to do. Learn how to do it. Do it.
  • Current: Newly updated for SQL Server 2008
  • Comprehensive: Covers 30 different Transact–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
  • Encrypt data and capture changes for compliance purposes
  • Implement full–text search
  • Interface with Service Broker

Who this book is for

Developers who use Microsoft SQL Server 2008 as their back–end database. Database administrators who create, manage, and secure those databases.

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.


If you think that you've found an error in this book, please let us know by emailing to editorial@apress.com . You will find any confirmed erratum below, so you can check if your concern has already been addressed.

On page 12:

In the section 'How it works', you say backslash when meaning a forward slash. Backslach is '\'

On page 81:

USE master
( NAME = N'PhotoRepository',

N'C:\Apress\MDF\PhotoRepository.mdf' ,
SIZE = 3048KB ,

(NAME = 'FG_PhotoRepository',
FILENAME = N'C:\Apress

( NAME = N'PhotoRepository_log',

\PhotoRepository_log.ldf' ,
SIZE = 1024KB ,
I can't get the above SQL code to work, and like dominoes, the rest of code will not work either, until page 84. Since this is a new attribute in SQL, and the only example on FILESTREAM in the book, I am at a loss of what to do? All of the other code so far, until this point, has worked for me.


    1. SQL Server T-SQL Recipes


      View Book

    2. Beginning SQL Server 2012 Administration


      View Book

    3. Building a Data Warehouse


      View Book

    4. Pro PowerShell for Amazon Web Services


      View Book