Damerau–Levenshtein distance in SQL

Couple of years ago I needed to implement a kind of fuzzy matching algorithm in SQL Server. Today I have just found my code I implemented it in SQL 2005 and it works on newer versions as well. Code is based on the Damerau–Levenshtein distance algorit... [More]

Backup WITH CHECKSUM

I’m attending on the Quickstart’s SQL Server 2008 Microsoft Certified Master (MCM) Accelerated Exam Preparation Program and a question came up yesterday: Can we use the WITH CHECKSUM with transaction log backups? The answer is pretty simple: yes, we ... [More]

SSMS kapcsolatok szinkódolása

Kedves kolléga Horváth Zoltán felfedezte, hogy az SQL Server Management Studio a query ablak alsó része más-más szinekben pompázik, amikor a fejlesztői vagy az éles rendszerhez kapcsolódik. Ennek az az oka, hogy az én regisztrált szervereimet importá... [More]

Hasznos funkció: fnIsGuid

Ismét alkotni kellett, bár most a saját hülyeségem miatt  Van egy táblám, amiben nvarchar(max) típusú oszlopba sokfajta adatot tartok, de nekem csak azok kellenek, amik uniqueidentifie... [More]

Lock escalation on partitioned tables

Locking is a necessary thing for better concurrency. SQL Server manages its locks automatically. In general: when a statement issues about 5000 locks on a single table or index, lock manager issues an escalation. Lock escaltion details can be found i... [More]

SQL Server custom EventLog logger

I’m active on several forums (TechNet, MSDN, etc.) and found some interesting questions, I’d like to blog about. One of the topic is a custom event logging module for SQL Server. I can use a built in function to log any error to the Application Eve... [More]