The Lohn BOER Time Management System

Here’s a confession:  I consider myself a time management guru.  I think about time management and ways to improve efficiency and effectiveness all the time.  It drives my wife crazy.

It all started when I read The Seven Habits of Highly Effective People about 10 years ago.  Then one Saturday when I was single, I had [...]

Top 10 SQL Resources on the Web

The other day I was talking to a guy who is just starting out his SQL career.  He asked what are my favorite web sites for SQL Server are.  I mentioned a few, but I got thinking about it and decided to come up with my official list …as of now….tomorrow things will probably change.

[...]

100 Posts

Since April 9, 2007, I’ve posted 100 times now.  I’m a numbers guy, so here’s what it breaks down to…

Declare @startdate date
Set @startdate = '4/9/2007'

Select DATEDIFF(Day, @startdate, getdate())/100.0

11.38 days per post – much smaller number than I thought it would be.  In the future, I’d like to get that number down to 2.5 or [...]

Big Trys and Small Trans

The catch phrase around the office these days is “Big Trys and small Trans.”  This came about as we were review stored procedure changes and I two suggestions.  First, that the entire procedure has a try…catch around it and second that the transaction be as small as possible.

Big Try

We’ve got standards in place [...]

Sweet Sweet Bacon – Sunflower Seeds?

Is there anything bacon doesn’t make better?

Here’s the info on the seeds I’m currently eating – kind of tastes like McCormick’s BBQ seasoning.

The easy way to find deadlocks

A quick, simple and “easy” way to find deadlocks I’ve found is to do the following:

Turn on the trace flag 1222
Wait for a deadlock to happen
Open query analyzer and run the following script:

Create Table #ErrorLogTable
(
LogDate DATETIME NOT NULL,
ProcessInfo VARCHAR(75),
LogInfo VARCHAR(MAX)
)
SET NOCOUNT ON
INSERT INTO #ErrorLogTable
EXEC xp_readerrorlog
Select
*
– , Left(right(loginfo, Len(loginfo) – 20), charindex(' ',(right(loginfo, Len(loginfo) – 20))))
from [...]

What Do I Do?

I’ve got to give a presentation on my role at Medtronic, so here it is: