Mladen Prajdić Blog

Blog about stuff and things and stuff. Mostly about SQL server and .Net

I KILL-ed you! Now can I go for a coffee break while you die?

The victim of my carnage being a connection to the SQL Server 2005. How many times have you issued a query that you had no idea how long it would run, just to loose your patience after 10 minutes and rolled it back, forgetting that it'll probably take 10+ minutes to rollback anyway? Read more →

Software Development Cycle truism

For all enthusiasts out there this is how software development cycle works no matter what the project is:   Programmer produces code he believes is bug-free. Product is tested. Read more →

Immediate deadlock notifications without changing existing code

In my previous post about immediate deadlock notifications in SQL Server 2005 I've shown a way to use a try catch block to get the deadlock error. The con of this method, although it uses best practice for error handling in SQL Server 2005, is that you have to change existing code and it doesn't work for non stored procedure code. Read more →

SQL Server 2005 bug when using LIKE searches

Here's a demo of a nice little bug in SQL Server 2005 when using LIKE comparisons for searching. What is so "nice" about it is that it only manifests itself if your search ends in number 9 followed by a wildcard when selecting only columns covered by a nonclustered index. Read more →

SQL Server 2005: Immediate Deadlock notifications

Deadlocks... huh?? Deadlocks can be a pain to debug since they're so rare and unpredictable. The problem lies in repeating them in your dev environment. That's why it's crucial to have as much information about them from the production environment as possible. Read more →

Weekend Fun: Bruce Schneier Facts

We all heard about the Chuck Norris Facts, right? Well if you're a fan of security you have to be familiar with Bruce Schneier and his excellent blog. What I didn't know is that he also has a collection of facts! Read more →