Na ez is egy őrült ötlet de miért ne... Vajon az alábbi lekérdezésnél melyik GUID nagyobb?
DECLARE @A uniqueidentifier = '0CB2DC09-D93C-4CFF-8D49-000000000001';
DECLARE @B uniqueidentifier = '66454F18-F2...
[More]
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]
Na ez már érdekes téma! Van egy szerverem, amiben van 4 processzor (mag), de mindig csak egyet használt a DBCC CHECKDB. Kicsit utánajártam a dolognak:
Csak akkor használja a több procit, amikor
...
[More]
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]
Az alábbi lekérdezés segít megnézni, hogy mely adatbázisok, mennyi helyet foglalnak.
USE [tempdb]
CREATE TABLE #DatabaseSize
(
[database_name] sysname,
[type_desc] nvarchar(50),
[state_desc...
[More]
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]
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]
Az utóbbi időben igen sok esetben kellett hierarchikus adatokkal foglalkoznom, illetve interjúk során is fel szoktam tenni ezzel kapcsolatban kérdéseket. Az alábbiakban szeretném bemutatni, hogy a k&uu...
[More]
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]
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]