Jeff's SQL Server Blog

Random Thoughts & Cartesian Products with Microsoft SQL Server
posts - 138, comments - 1711, trackbacks - 64

My Links

SQLTeam.com Links

News

Welcome to my weblog. My name is Jeff Smith, and I am a software developer in Boston, MA. Check in frequently for tips, tricks, commentary and ideas on SQL Server and .NET programming.


Subscribe





Archives

Post Categories

Programming

Sports

SQL

Miscellaneous

Here are those random thoughts I warned you about. Beware!
Need an Answer? Actually, No ... You Need a Question

posted @ Tuesday, May 13, 2008 11:04 AM | Feedback (6)

You Know, There's a Much Easier Way...

posted @ Thursday, March 13, 2008 2:51 PM | Feedback (11)

An INT primary key .... yet not an Identity?

posted @ Thursday, February 21, 2008 12:08 PM | Feedback (12)

Why use Google when a better, more accurate, and more powerful "search engine" exists?

posted @ Thursday, January 17, 2008 2:56 PM | Feedback (23)

The Mailbag: Referencing Assemblies in Reporting Services; some SQL help

posted @ Thursday, October 18, 2007 12:19 PM | Feedback (0)

Is it a String Literal or an Alias?

posted @ Thursday, August 30, 2007 11:36 AM | Feedback (4)

SELECT * FROM TABLE -- except for these columns

posted @ Thursday, July 26, 2007 3:36 PM | Feedback (12)

Becoming a Better Developer, plus a SQL Crime Drama!

posted @ Thursday, July 26, 2007 10:36 AM | Feedback (2)

Distinguishing data from code

What is data, and what is code? How do we define the difference, and decide what goes where? It is great to say "keep data out of your code", but what if that data is integral to the application itself? Isn't it therefore code, and not data? read more...

posted @ Tuesday, July 24, 2007 9:02 AM | Feedback (18)

But *WHY* Must That Column Be Contained in an Aggregate Function or the GROUP BY clause?

Column 'xyz' is invalid in the select list because it is not contained in either an aggregate function or the GROUP BY clause.

Arggh!! There it is, yet again .. that annoying error message. Why is SQL so picky about this? What's the deal!? read more...

posted @ Friday, July 20, 2007 10:33 AM | Feedback (28)

Data Types -- The Easiest Part of Database Design

I see it time and time again in forums -- "dates" that don't sort properly, "numbers" that don't add correctly, "boolean" data with 10 different values, and so on ... Since we are rarely provided any DDL to review, it often takes many posts going back and forth until we finally realize: "wait ... you aren't using a datetime data type to store these dates?!" read more...

posted @ Tuesday, July 03, 2007 10:13 AM | Feedback (8)

Cross Join Updates!

posted @ Tuesday, June 26, 2007 11:43 AM | Feedback (0)

What I learned about SQL from using Access

Microsoft Access / JET SQL doesn't support cursors; the only way to process rows one by one is using VBA and opening a Recordset. This means that you're stuck using set-based "queries". So ... is this a good thing or a bad thing? A very, very good thing -- in fact, it's what makes Access a great tool for learning SQL! read more...

posted @ Wednesday, June 13, 2007 1:12 PM | Feedback (10)

Real Programmers don't need to write test applications!

You are a very important, talented, enterprise-level programmer! You write and maintain millions of lines of code, compiling your applications takes several hours, and your databases contain hundreds of tables with millions of rows. You clearly do not have time to write silly test applications!

read more...

posted @ Wednesday, May 23, 2007 12:27 PM | Feedback (17)

In SQL, it's a Case Expression, *not* a Case Statement

A Google search for the phrase sql "case statement" returns 127,000 results. Meanwhile, if we do a search for the phrase sql "case expression" we get back only 43,900 results. What does this mean? Most people don't understand what SQL's CASE feature really is, how to use it, or how it works!

read more...

posted @ Thursday, May 03, 2007 9:15 AM | Feedback (17)

Why do only the "Experts" use online help?

Studies have shown that the "F1" key is the least commonly pressed key on today's keyboards! Ok, well maybe not actual studies, but from my own experience, I am convinced that on many keyboards here around the world the F1 key still has that shiny "new key" look and smell because it's never been used.

read more

posted @ Thursday, April 05, 2007 9:10 AM | Feedback (11)

Alias Naming Conventions

Let's go to the mailbag!

In response to this post, Chris writes:

read more...

posted @ Monday, July 31, 2006 10:01 AM | Feedback (14)

Rendering Excel and Word files with SQL Server

I've been playing around with a handy tool for creating Word and Excel files called OfficeWriter that's pretty impressive.

read more...

posted @ Tuesday, July 18, 2006 3:05 PM | Feedback (2)

Programming is a funny thing ....

In most industries, beginners work on simple, short projects, using only the most basic concepts that they have learned. The experts in those industries, meanwhile, work on things that are very large, complicated, difficult to manage, and require lots of time, energy and resources.

read more...

posted @ Thursday, March 30, 2006 1:58 PM | Feedback (26)

A Quick Lesson on SQL Indexes

Just a quick post of some benchmarking code for our good friend Guayo at TheDailyWTF, in regards to this discussion.

posted @ Friday, November 12, 2004 4:42 PM | Feedback (14)

Using SQL to solve the "Sliding Tiles" puzzle

I just wanted to take a minute to highlight this thread in the sqlteam forums.

posted @ Wednesday, September 22, 2004 12:05 PM | Feedback (0)

PARSENAME() - a simple way to parse (some) strings in SQL

Handy reminder: The PARSENAME() function can be useful for parsing small strings. It returns parts 1-4 (working right to left) of a string, with each part delimited by periods.

read more...

posted @ Tuesday, September 30, 2003 5:09 PM | Feedback (2)

Hello All !

posted @ Friday, September 26, 2003 8:59 AM

Powered by: