Jeff's SQL Server Blog

Random Thoughts & Cartesian Products with Microsoft SQL Server
posts - 155, comments - 2574, trackbacks - 64

My Links

SQLTeam.com Links

News

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


Subscribe





Archives

Post Categories

Programming

Sports

SQL

Links

Random links from the "Internet tubes" that you may enjoy -- free of charge!
An interesting take on "Stored Procedures" (link)

posted @ Monday, November 16, 2009 1:42 PM | Feedback (3)

Programming is like dreaming?

posted @ Monday, November 02, 2009 2:52 PM | Feedback (1)

SQL Server 2005 Foreign Key Constraints: SET NULL and SET DEFAULT

posted @ Wednesday, August 13, 2008 9:56 AM | Feedback (5)

Log Buffer #98

posted @ Friday, May 23, 2008 9:09 AM | Feedback (10)

Implementing Table Inheritance with SQL Server

posted @ Thursday, February 21, 2008 11:05 AM | Feedback (6)

Working with Time Spans and Durations in SQL Server

posted @ Monday, October 15, 2007 9:28 AM | Feedback (0)

SQL Server 2008 - Enhancements in Date and Time Data Types (link)

posted @ Thursday, August 30, 2007 10:05 PM | Feedback (1)

More on GROUP BY; Examining SUM(Distinct)

I've written a two part article on using SQL GROUP BY clauses over at SQLTeam.com. read more...

posted @ Tuesday, July 31, 2007 12:44 PM | Feedback (5)

Using LINQ with SQL (link)

There's a great series of posts over at Scott Guthrie's Blog covering LINQ, a new feature in the upcoming version of Visual Studio ("Orcas"). Check it out; I have not had a chance to play around with it yet, but it certainly looks very interesting. The articles are very well done and explain the concept very clearly with lots of examples.

posted @ Friday, July 13, 2007 4:27 PM | Feedback (1)

SQL 2005 PIVOT Operator (link)

There's two interesting posts over at the MSDN blogs from Craig Freedman about the new PIVOT operator in SQL 2005. First, he gives a nice overview of the operator and how to use it, and then he follows it up with a performance analysis as well. A good read, check it out.

posted @ Thursday, July 12, 2007 9:24 AM | Feedback (2)

SQL Server 2005: CROSS APPLY

SQL Server User-Defined Functions (UDFs) can return either a single value or virtual tables. However, sometimes we might like for a User-Defined Function to simply return more than 1 piece of information, but an entire table is more than what we need.

posted @ Tuesday, June 12, 2007 8:52 AM | Feedback (2)

Slightly more dynamic ORDER BY in SQL Server 2005

posted @ Tuesday, June 05, 2007 10:24 AM | Feedback (1)

Using SQLBulkCopy to copy any .NET Object to a SQL Server Table

In my SQLBulkCopy article, I mentioned that you can quickly copy data from anything that implements IDataReader to a SQL Server table using SQLBulkCopy (new in .NET 2.0). In this SQLTeam forum post, Jesse Hersch (jezemine) tells us that SQLBulkCopy only actually uses 3 methods of the interface. This means that it is very easy to quickly create your own custom class which implements this interface to bulk copy pretty much any type of object collection or array to a SQL Server table.

posted @ Tuesday, May 22, 2007 2:40 PM | Feedback (3)

SQL Server 2005: Specifying Partitions for Aggregate Functions

Did you know that a new feature in SQL Server 2005 allows you to specify an OVER partition for aggregate functions in your SELECT statements?

read more...

posted @ Monday, May 21, 2007 2:52 PM | Feedback (7)

SQL Challenge Response: Finding Consecutive Available Blocks in a Schedule

Here's my response to a SQL Challenge, regarding how to find consecutive free time slots in a schedule. This can sometimes be tricky to solve in SQL, but using either of the two techniques shown here, it is actually pretty easy. (Updated to show 2 possible solutions)

read more...

posted @ Tuesday, May 15, 2007 9:52 AM | Feedback (6)

Using SQLBulkCopy to quickly transfer data from .NET to SQL Server

posted @ Monday, May 07, 2007 9:29 AM | Feedback (3)

Custom Auto-Generated Sequences in SQL Server

Be sure to visit SQLTeam.com to check out my latest article, Custom Auto-Generated Sequences in SQL Server. It addresses a common question we see in the SQL Team forums.

posted @ Tuesday, April 24, 2007 8:36 AM | Feedback (3)

Have you seen Joe's "Blog" Yet?

I just discovered Joe Celko's weblog; it is really entertaining, at least the 5-6 posts I've read so far! It seems the "blog" is actually just a collection of questions and Celko's rather, umm, "honest" responses from various newsgroups and forums.

posted @ Saturday, April 21, 2007 10:13 AM | Feedback (6)

Unique Passwords?

posted @ Tuesday, April 03, 2007 7:38 PM | Feedback (1)

A true MVP

Congratulations to our good friend Alex Papadimoulis over at the asp.net weblogs on his Microsoft MVP award. Well-earned!

 

posted @ Wednesday, November 30, 2005 5:08 PM | Feedback (0)

You've got to have an IDENTITY!

Here's kind of a funny/scary thread over at the DailyWTF:

read more...

posted @ Friday, November 04, 2005 11:18 PM | Feedback (3)

Powered by: