XML Data via Service Broker
I’ve been working on some development work. This involves service broker messages and XML data. We wanted the XML data in basically the same format as the table, but with an additional root tag on...
View ArticleSQL 2008 System Generated Names for Defaults
I had to create a script for dropping constraints on a table – no problem if the constaint is a named default, but if the default has a system generated name, it gets a bit hairy. Here’s an example...
View ArticleThe 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...
View ArticleSweet 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.
View ArticleBig 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...
View Article100 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,...
View ArticleTop 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...
View ArticleThe 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...
View ArticleCode Reviews – What good are they for?
All database changes go through me. Do or Review, do or review. These have been my catch phrases since taking on the lead SQL developer role at my company, on my team. There have many changes that...
View Article