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 [...]
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 [...]
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 [...]
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.
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 [...]
I’ve got to give a presentation on my role at Medtronic, so here it is: