Don Peterson


SQLServerCentral Article

Is XML the Answer?

New Author! Don Peterson writes his first article for us and explores why he considers XML to be...bad! There are some interesting points made here and if you've haven't thought about what XML means to you as a DBA, it's a subject worth spending some time on.

4.77 (79)

You rated this post out of 5. Change rating

2008-05-02 (first published: )

64,732 reads

SQLServerCentral Article

Beware of Search Argument (SARG) Data Types

Performance tuning often seems like it can be more of an art than a science. However there are a number of fundamentals that can help you tune most of the queries that you will write or have issues with their performance. Don Peterson brings us a look at how he tuned a query in the real world to avoid a conversion that can cause a query to run slower.

5 (6)

You rated this post out of 5. Change rating

2006-07-13

11,841 reads

SQLServerCentral Article

Lookup Table Madness

Are you mad? Not angry, more like crazy when it comes to designing databases in SQL Server? Don Peterson has met a few people he thinks are just that when it comes to building lookup tables. Does it stem from poor understanding of database design? Or do you disagree? Read Don's case against this particular design practice.

4.48 (27)

You rated this post out of 5. Change rating

2006-03-24 (first published: )

51,900 reads

SQLServerCentral Article

All About Transactions - Part 3

Transactions in SQL Server are probably no more complicated than those in other RDBMS products, which is to say they are fairly complex. Don Peterson continues with part 3 of his series and takes a look at transaction isolation levels and how they interact with multiple connections and their impact on locking.

4.33 (9)

You rated this post out of 5. Change rating

2004-12-02

15,928 reads

SQLServerCentral Article

All About Transactions - Part 1

The heart of an RDBMS is the transaction system that it employs. SQL Server has a great one that can easily be misunderstood or misused by those that haven't spent time delving into the details of how it works. Don Peterson has done that and brings us the start of a new series on the details of how transactions work in SQL Server.

4.62 (13)

You rated this post out of 5. Change rating

2004-11-15

24,843 reads

Blogs

Query to Email….Well Formatted Email

By

When I get alerts from SQL Server I want it to do three things...

Announcements from the Microsoft Fabric Community Conference

By

A ton of new features for Microsoft Fabric were announced at the Microsoft Fabric Community...

T-SQL Tuesday #185: Video

By

This month’s invite is from Erik Darling, who invites you to make a video...

Read the latest Blogs

Forums

SSIS XML Source Columns Don't Match XML/XSD

By s15199d

In my SSIS package I have a Data Flow with a XML Source with...

Get days between 2 dates excluding weekends.

By bswhipp

Hello all. Trying to measure the time in days between to dates excluding weekends....

Running DML on a Primary AG Instance

By SteveOC

Kind of a DML question - but specific to an AG instance running on...

Visit the forum

Question of the Day

The Long String

I have a table (dbo.beer) with this data:

BeerIDBeerNamebrewerbeerdescription
-------------------------------------------------------------------------------------------------------------------------------------
1BecksInterbrewBeck's is a German-style pilsner beer known for its golden color, full-bodied taste, and a crisp, clean finish with floral and fruity hop aromas, brewed according to the German purity law
2Fat TireNew BelgiumToasty malt, gentle sweetness, flash of fresh hop bitterness. The malt and hops are perfectly balanced.
3Mac n JacksMac & Jack's BreweryThis beer erupts with a floral, hoppy taste, followed by a well rounded malty middle, finishing with a nicely organic hop flavor. Locally sourced two row grain and a blend of specialty malts give our amber its rich taste.
4Alaskan AmberAlaskan BrewingAlaskan Brewing Amber Ale is an "alt" style beer, meaning it's fermented slowly and at colder temperatures, resulting in a well-balanced, richly malty, and long-lasting flavor profile with a clean, pleasing aftertaste.
8KirinKirin BrewingKirin Ichiban is a Lager-type beer, which means it is fermented at low temperatures and offers a light and refreshing texture with a smooth and balanced flavor.
Here is the DDL For the table:
CREATE TABLE [dbo].[Beer]
(
[BeerID] [int] NOT NULL IDENTITY(1, 1),
[BeerName] [varchar] (20) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
[brewer] [varchar] (20) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
[beerdescription] [varchar] (max) COLLATE SQL_Latin1_General_CP1_CI_AS NULL
) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]
GO
I run this code:
SET TEXTSIZE 20;
SELECT
  b2.BeerName
, b2.beerdescription
FROM dbo.Beer AS b2;
GO
What is returned?  

See possible answers