SQL Server 2008 Transact-SQL Recipes

A Problem-Solution Approach

By Joseph Sack

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

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

Related Titles

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.

Errata

Please Login to submit errata.

On page 12:

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

On page 81:

USE master
GO
CREATE DATABASE PhotoRepository ON PRIMARY
( NAME = N'PhotoRepository',
FILENAME =

N'C:\Apress\MDF\PhotoRepository.mdf' ,
SIZE = 3048KB ,
FILEGROWTH = 1024KB ),
FILEGROUP

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

\FILESTREAM')
LOG ON
( NAME = N'PhotoRepository_log',
FILENAME = N'C:\Apress\LDF

\PhotoRepository_log.ldf' ,
SIZE = 1024KB ,
FILEGROWTH = 10%)
GO
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.