T-SQL Sorting ChallengeCommented on: 5 years ago
(September 3, 2008)
First create a UDF (which uses the Numbers table to split up the val string)
CREATE FUNCTION dbo.t1_x
RETURNS varchar(8000) AS
DECLARE @s varchar(8000)
SELECT @s =...
The Logical Puzzle - 22 Aug 2007Commented on: 6 years ago
(October 15, 2007)
If switch A is on, turn it off and increment count,
otherwise toggle switch B
If switch A is off and you haven't turned it on before, turn it...
Recently, I've been working with a consulting client to help them tame CPU usage. Typically, they're clocking over 20,000 queries and operations per second on their e-commerce SQL Server, but ran into an issue where CPU started spiking up above 90 percent for sustained periods of time....More
What should most database administrators be doing on a regular basis? Here's a comprehensive list from Michael K. Campbell of many of the things DBAs typically do on a daily, weekly, monthly, and yearly basis....More