Join Amazon Prime and ship Two-Day for free and Overnight for $3.99. Already a member? Sign in.
Guru's Guide to Transact-SQL, The and over 300,000 other books are available for Amazon Kindle – Amazon’s new wireless reading device. Learn more

 

or
Sign in to turn on 1-Click ordering.
 
 
More Buying Choices
50 used & new from $14.48

Have one to sell? Sell yours here
 
   
The Guru's Guide to Transact-SQL
 
 
Start reading Guru's Guide to Transact-SQL, The on your Kindle in under a minute.

Don’t have a Kindle? Get yours here.
 
  

The Guru's Guide to Transact-SQL (Paperback)

by Ken Henderson (Author), Joe Celko (Foreword)
4.7 out of 5 stars See all reviews (236 customer reviews)

List Price: $64.99
Price: $45.01 & this item ships for FREE with Super Saver Shipping. Details
You Save: $19.98 (31%)
In Stock.
Ships from and sold by Amazon.com. Gift-wrap available.

Only 5 left in stock--order soon (more on the way).

Want it delivered Monday, July 13? Choose One-Day Shipping at checkout. Details
22 new from $30.00 28 used from $14.48
Also Available in: List Price: Our Price: Other Offers:
Kindle Edition (Kindle Book) $40.52

Special Offers and Product Promotions


Frequently Bought Together

The Guru's Guide to Transact-SQL + The Guru's Guide to SQL Server Stored Procedures, XML, and HTML + The Guru's Guide to SQL Server Architecture and Internals
Price For All Three: $130.86

Show availability and shipping details


Customers Who Bought This Item Also Bought

Inside Microsoft SQL Server 2005: T-SQL Querying (Solid Quality Learning)

Inside Microsoft SQL Server 2005: T-SQL Querying (Solid Quality Learning)

by Itzik Ben-Gan
4.7 out of 5 stars (30)  $29.69
The Guru's Guide to SQL Server Architecture and Internals

The Guru's Guide to SQL Server Architecture and Internals

by Ken Henderson
4.3 out of 5 stars (27)  $41.99
Sams Teach Yourself Microsoft SQL Server T-SQL in 10 Minutes

Sams Teach Yourself Microsoft SQL Server T-SQL in 10 Minutes

by Ben Forta
4.3 out of 5 stars (6)  $13.59
Microsoft SQL Server 2005 Reporting Services 2005

Microsoft SQL Server 2005 Reporting Services 2005

by Brian Larson
4.2 out of 5 stars (48)  $31.49
SQL Cookbook (Cookbooks (O'Reilly))

SQL Cookbook (Cookbooks (O'Reilly))

by Anthony Molinaro
4.7 out of 5 stars (44)  $26.37
Explore similar items

Editorial Reviews

Product Description
Information, explanations, and advice you need to master Transact-SQL and develop the best possible Transact-SQL code. Covers Microsoft Transact-SQL. Softcover. CD-ROM included. DLC: SQL (Computer program language)

From the Inside Flap

This is a coder's book. It's intended to help developers build applications that make use of Transact-SQL. It's not about database administration or design. It's not about end-user or GUI application development. It's not even about server or database performance tuning. It's about developing the best Transact-SQL code possible, regardless of the application.

When I began writing this book, I had these design goals in mind:

Be very generous with code samples--don't just tell readers how to do something, show them. Include complete code samples within the chapter texts so that the book can be read through without requiring a computer or CD-ROM. Use modern coding techniques, with specific emphases on ANSI compliance and current version features and enhancements. Construct chapters so that they're self-contained--so that they rely as little as possible on objects created in other chapters. Provide real-world code samples that have intrinsic value apart from the book. Avoid rehashing what's already covered extensively in the SQL Server Books Online. Highlight aspects of Transact-SQL that differentiate it from other SQL dialects; don't just write another ANSI SQL book. Avoid excessive screenshots and other types of filler mechanisms often seen in computer books. Proceed from the simple to the complex within each chapter and throughout the book. Provide an easygoing, relaxed commentary with a de-emphasis on formality. Be the reader's indulgent, amiable tutor. Attempt to communicate in writing the way that people speak.

You'll have to judge for yourself whether these goals have been met, but my hope is that, regardless of the degree of success, the effort will at least be evident. About the Sample Databases

This book uses SQL Server's Northwind and pubs sample databases extensively. You'll nearly always be able to determine which database a particular example uses from the surrounding commentary or from the code itself. The pubs database is used more often than Northwind, so, when it's not otherwise specified or when in doubt, use pubs.

Usually, modifications to these databases are made within transactions so that they can be reversed; however, for safety's sake, you should probably drop and recreate them after each chapter in which they're modified. The scripts to rebuild them (instnwnd.sql and instpubs.sql) can be found in the \Install subdirectory under the root SQL Server folder. Results Abridged

If I have a pet peeve about computer books, it's the shameless use of space-filling devices to lengthen them--the dirty little secret of the computer publishing industry. Many technical books these days overflow with gratuitous helpings of screenshots, charts, diagrams, outlines, sidebars, icons, line art, etc. There are people who assign more value to a book that's heavy, and many authors and publishers have been all too happy to accommodate them. They seem to take the old saying that "a picture is worth a thousand words" literally--in some cases turning out books that are little more than picture books.

I think there's a point at which comprehensiveness gives way to corpulence, a time when exhaustiveness becomes exhausting. In this book, I've tried to strike a balance between being thorough and being space-efficient. To that end, I've often truncated or clipped query result sets, especially those too wide to fit on a page and those of excessive length (I always point this out). On occasion I also list them using reduced font sizes. I don't include screenshots unless doing so benefits the discussion at hand materially (only one chapter contains any screenshots). This is in keeping with my design goal of being complete without being overwrought. Nearly 600 SQL scripts are used in this book, and they are all included in the chapters that reference them. Hopefully none of the abridgements will detract from the book's overall usefulness or value. On Formality

Another of my pet peeves is formality for the sake of formality. An artist once observed that "it's harder to draw a good curved line than a straight one." What he meant was that it's in some ways more difficult to do something well for which there is no exact or stringent standard than to do something that's governed by explicit rules and stuffy precedents. All you have to do to draw a straight line is pick up a straightedge. The rules that govern formal writing, particularly that of the academic variety, make writing certain kinds of books easier because they convert much of the subjective nature of writing into something more objective. They're like training wheels on the would-be author's bicycle. Writing goes from being a creative process to a mechanical one. Cross all the T's, dot all the I's, and you're halfway there. Obviously, this relieves the author of many of the decisions that shape creative writing. It also turns otherwise good pieces of work into dreary, textbook-like dissertations that are about as interesting as the telephone book White Pages.

So, I reject the notion that formal writing is better writing, that it is a higher standard and is the ideal for which all technical writers should strive. Instead, I come from the Mark Twain school of thought--I "eschew surplusage"--and I believe that, so long as common methods of speech do not become overly banal (a subjective distinction, I freely admit), the ultimate goal of the technical writer should be to write the way that readers speak. It is the way people--even technical people--are most accustomed to communicating and the way they are the most able to learn and share ideas. I did not invent this way of thinking; it's simply the way most of my favorite authors--Mark Twain, Dean Koontz, Joe Celko, Ernest Hemingway, Robert Heinlein, Andrew Miller, Oscar Wilde, P. J. O'Rourke, Patricia O'Connor--write. Though it is far more difficult to structure and write a narrative that flows naturally and reads easily, it's worth the effort if the ideas the writer seeks to convey are understood as they were intended.

So, throughout this book, you'll see a number of the rules and pseudo rules of formal writing stretched, skirted, bent, and sometimes outright broken. This is intentional. Sometimes I split infinitives, begin sentences with conjunctions, and end them with prepositions. Sometimes record is used interchangeably with row; sometimes field takes the place of column; and I never, ever treat data as a plural word. I saw some software recently that displayed a message to the effect "the data are being loaded," and I literally laughed out loud. The distinction between the plural data and its obscure singular form datum is not maintained in spoken language and hasn't really ever been (except, perhaps, in ancient Rome). It has also been deprecated by numerous writing guides and many authors. You will have to look very hard for an author who treats data as a plural word (I can think of only one off the top of my head, the irascible Ted Codd). The tendency for technical communication to become self-important or ostentatious has always baffled me: why stoop to pretension? Why trade the fluid conveyance of ideas between people for nonsense that confuses some and reads like petty one-upmanship to others? Acknowledgments

I'd like to thank my wife, who not only makes it possible for me to write books but also makes it worthwhile. The book you see before you is as much hers as it is mine. I'd like to thank Neil Coy, who made a real programmer of me many years ago. Under Neil's tutelage, I learned software craftsmanship from a master. Joe Celko, the dean of the SQL language, has been a good friend and a valuable source of information throughout this project. Kudos to John Sarapata and Thomas Holaday for helping me come up with a title for the book (I'll keep Sybase for Dummies in mind for future use, John). Thanks to the book's technical reviewers, particularly Wayne Snyder, Gianluca Hotz, Paul Olivieri, and Ron Talmage. Heartfelt thanks to John Gmuender, Joe Gallagher, Mike Massing, and Danny Thorpe for their equanimity and for keeping me sane through the recent storm. Congratulations and genuine appreciation to the superb team at Addison-Wesley--Michael Slaughter, Marisa Meltzer, J. Carter Shanklin, and others too numerous to list. Special thanks to Nancy Cara-Sager, a friend, technical reviewer, and copyeditor who's been with me through several books and a couple of publishers now. Her tireless attention to detail has saved me from embarrassing myself more times than I can count.

0201615762P04062001

See all Editorial Reviews


Product Details

  • Paperback: 592 pages
  • Publisher: Addison-Wesley Professional; 1st edition (March 4, 2000)
  • Language: English
  • ISBN-10: 0201615762
  • ISBN-13: 978-0201615760
  • Product Dimensions: 9.1 x 7.2 x 1.2 inches
  • Shipping Weight: 1.8 pounds (View shipping rates and policies)
  • Average Customer Review: 4.7 out of 5 stars See all reviews (236 customer reviews)
  • Amazon.com Sales Rank: #52,018 in Books (See Bestsellers in Books)

    Popular in this category: (What's this?)

    #85 in  Books > Computers & Internet > Networking > Data in the Enterprise > Client-Server Systems

Look Inside This Book

Citations (learn more)

What Do Customers Ultimately Buy After Viewing This Item?


Tags Customers Associate with This Product

 (What's this?)
Click on a tag to find related items, discussions, and people.
Check the boxes next to the tags you consider relevant or enter your own tags in the field below.
(7)

Your tags: Add your first tag
 
Help others find this product — tag it for Amazon search
No one has tagged this product for Amazon search yet. Why not be the first to suggest a search for which it should appear?

 

Customer Reviews

236 Reviews
5 star:
 (201)
4 star:
 (16)
3 star:
 (7)
2 star:
 (8)
1 star:
 (4)
 
 
 
 
 
Average Customer Review
4.7 out of 5 stars (236 customer reviews)
 
 
 
 
Share your thoughts with other customers:
Most Helpful Customer Reviews

 
94 of 96 people found the following review helpful:
5.0 out of 5 stars If you want to become a T-SQL guru yourself, get this book, September 18, 2000
Ah, where to begin. This book is a masterpiece. It is over the top. It distills, in one volume, all that's worth knowing about advanced Transact-SQL. If you've read the Books Online, this book is a natural next step in your T-SQL education. It took me from a rank amateur to an advanced coder within days. It gave me insights into new ways of coding that I'd never have thought of on my own. It showed me how to work in harmony with T-SQL and SQL Server, rather than try to get them to do things they weren't designed to do.

The best chapters, are, IMHO, these:
- DML Insights
- DDL Insights
- The Mighty SELECT
- Statistical Functions
- Transactions
- Cursors
- Sets
- Arrays
- Stored Procedures and Triggers
- T-SQL Performance Tuning
- Administrative T-SQL
- OLE Automation
- Undocumented T-SQL

There's so much good info in this book, it's hard to pick a list of the "best chapters." To be sure, there's not a weak chapter in the book, and you should read every last one of them.

[...] This book is a must-read for anyone serious about coding in Transact-SQL.

Comment Comment | Permalink | Was this review helpful to you? Yes No (Report this)



 
87 of 89 people found the following review helpful:
5.0 out of 5 stars Concentrated, well-written, with lots of expert advice, September 29, 2000
By Jon Ferris (SE United States) - See all my reviews
The best thing about this book is that it doesn't follow the example of most of the other SQL Server books out there -- it doesn't settle for merely repeating the Books Online. Instead, it fills in the details the BOL leaves out and provides expert advice that only a guru could.

I've been a certified SQL Server DBA since Microsoft first offered the certification, and I can say that this book is hands down the best T-SQL book around, as Joe Celko says in the book's Foreword. Beyond that, it's the best book I've seen on _any_ SQL dialect - Microsoft or otherwise.

The best parts of the book are the early chapters. The Data Types chapter, for example, provides an expansive tour through the many nuances of the SQL Server data types, including the new ones introduced by SQL Server 7.0. The new GUID type, for example, is covered in detail, and expert comparisons with other similar types are offered.

The Nulls chapter is also a gem. Most database writers avoid getting drawn into the sometimes philosophical debate over missing values. Henderson handles the subject adroitly and succinctly -- recommending a course of action without sounding religious.

The DDL Insights and DML Insights chapters are also quite good. The book could have stooped to merely regurgitating the BOL, but this book doesn't do that. So, instead of a 100 pages each on DML and DDL, with have two chapters of about ten pages a piece that focus on the things not mentioned by the BOL -- things only a guru would know.

The chapter titled The Mighty SELECT Statement is the crown jewel of the book. I was well aware of most of the things SELECT could do before I ever read this book, however, this book takes the subject to a new level. It exposes features and power even veterans like myself would normally miss. It showed me ways of making SELECT work for me that I'd never even dreamed of. I used one of the techniques it illustrates just yesterday and blew my coworkers away. Like many of the techniques in this book, that one tip alone was worth the price of the book.

All around, I'd say this is the best investment you can make with your SQL Server $$. If you want to know Transact-SQL like the gurus do, read this book and learn it inside out.

Comment Comment | Permalink | Was this review helpful to you? Yes No (Report this)



 
71 of 72 people found the following review helpful:
5.0 out of 5 stars The ultimate Transact-SQL magnum opus, May 2, 2000
By Luke Miller (New York) - See all my reviews
Because it was called a "Guru's Guide" I didn't know whether this book expected me to already be a guru or whether it was claiming that it was written by one. Luckily for me, it was the latter.

Myself, I'm relatively new to Transact-SQL. When I got this book, I very much considered myself a beginner. I'd only begun working in T-SQL about a year and a half ago.

I can honestly say that this book was so full of great information that I began moving to the next level almost immediately. The author pulls no punches and delivers on his committment to avoid filler material throughout. This is a dense, gem-packed treatise on the language that belongs in the library of every would-be Transact-SQL expert.

Favorite parts:

- Cursor chapter (the story of the ill-fated SQL Server conversion is priceless -- I have been there, I have been there...)

- Performance & Tuning chapter (could be a book unto itself)

- Undocumented T-SQL chapter (because I like hidden goodies)

- Preface (because it's honest)

If you want to be a Transact-SQL coder or DBA worth your money, get this book and learn its many secrets inside out.

Comment Comment | Permalink | Was this review helpful to you? Yes No (Report this)


Share your thoughts with other customers: Create your own review
 
 
 
Most Recent Customer Reviews

5.0 out of 5 stars A great SQL Server Scripting Text & Reference
I have used this book as a reference on projects involving SQL Server Scripting and it is among the best. It is very readable and clear and presents its examples well. Read more
Published 23 days ago by Daniel A. Joseph

4.0 out of 5 stars Decent Transaction
There was a bit of a delay w/the order but the seller took care of the issue and corrected the issue promptly.
Published 1 month ago by Marc Roberts

5.0 out of 5 stars Former Microsoft employee says **Buy this one**
I worked in the SQL Server group at Microsoft for 5+ years. I learned more about T-SQL from Henderson's book than from any other. Read more
Published 8 months ago by Tyro

3.0 out of 5 stars Outdated
The downside to this book is that it is from 2000, and the code snippets are no longer available online. Read more
Published 14 months ago by Daniel Gras

5.0 out of 5 stars If I could only have one book for sql server...
...this would be it.

I have worked with Microsoft SQL Server day in and day out for many years now, and I have owned this book ever since it first came out. Read more
Published 22 months ago by Eddie Merkel

4.0 out of 5 stars Excellent material, just getting a bit long in the tooth
I bought this book seven years ago when doing my MCDBA in SQL Server 7.0. At the time I was focussing on getting my certifications and upon a cursory browsing, just couldn't get... Read more
Published 23 months ago by Matthew Bryde

5.0 out of 5 stars Great recommendation!
This book was recommended by a SQL consultant our company hired to improve the speed of our servers and it was well worth it! Read more
Published on May 9, 2007 by Girl Geek

5.0 out of 5 stars Don't waste your time - buy this book
Although it's billed as a T-SQL book and it's written specifically for SQL Server 2000, I'd recommend this book for anyone who wants to learn more about SQL. Read more
Published on April 27, 2007 by O. Nate

5.0 out of 5 stars Still one of the best references
I've used this book as a reference for 3 years.

Great straight forward examples. Logical presentation. Read more
Published on March 13, 2007 by M. Dickey

5.0 out of 5 stars Wonderful, but truly intense book
I thought "SQL for Smarties" was the end-all for knowledge in SQL. It is not. "Guru's Guide to Transact-SQL" is. Disclaimer: this book is not for the faint-of-heart. Read more
Published on November 16, 2006 by book fan

Only search this product's reviews



Customer Discussions

 Beta (What's this?)
New! See all customer communities, and bookmark your communities to keep track of them.
This product's forum (0 discussions)
  Discussion Replies Latest Post
  No discussions yet

Ask questions, Share opinions, Gain insight
Start a new discussion
Topic:
First post:
Prompts for sign-in
  [Cancel]


Active discussions in related forums
   


Product Information from the Amapedia Community

Beta (What's this?)

The Guru's Guide to Transact-SQL

Ken Henderson's T-SQL book gets the best reviews. It's not an introductory text for beginners, but is geared toward the experienced stored procedure programmer who wants to get better.

(Report this)
Created on Feb 10, 2006, last edited on Feb 10, 2006.

 Explore and Edit at Amapedia.com opens new browser window



So You'd Like to...


Look for Similar Items by Category


Transform Your Bathroom for Less

Home Improvement Value Center
Save up to 50% on sinks, faucets, showerheads, and toilet seats in the Home Improvement Value Center. Make your bathroom transformation a reality today.

Shop the Value Center

 

Best Books of 2008

Best of 2008
Find our top 100 editors' picks as well as customers' favorites in dozens of categories in our Best Books of 2008 Store.
 

Buy Three Books, Get a Fourth Free

4-for-3 Books
Order any four eligible books under $10 and get the lowest-price book free in our 4-for-3 Books Store. See more details.
 

Delta Machinery

Shop for Delta tools
Delta is the leader in innovative power tools, equipment, and accessories for woodworking professionals.

Shop for Delta tools

 

 

Feedback

If you need help or have a question for Customer Service, contact us.
 Would you like to update product info or give feedback on images?
Is there any other feedback you would like to provide?

Your comments can help make our site better for everyone.


Where's My Stuff?

Shipping & Returns

Need Help?

Your Recent History

  (What's this?)
You have no recently viewed items or searches.

After viewing product detail pages or search results, look here to find an easy way to navigate back to pages you are interested in.

Look to the right column to find helpful suggestions for your shopping session.

Continue shopping: Top Sellers

Conditions of Use | Privacy Notice © 1996-2009, Amazon.com, Inc. or its affiliates