Viewing 15 posts - 5,311 through 5,325 (of 5,685 total)
Definately an issue. None of the data was cache'd in memory yet, the server was busy using the disks, and your CPU was probably spiked to 100%.
I wouldn't worry...
October 13, 2010 at 10:23 am
I saw it once in a blue moon on an equivalent system. Vendor built, horrendous structure, etc.
What we eventually puzzled out (without proof, might I add, this...
October 12, 2010 at 4:54 pm
e3h4 (10/12/2010)
October 12, 2010 at 4:50 pm
Mod this a little and it should get you where you're going. The trick is using the date manipulation functions and the datediff thresholds.
CREATE TABLE #tmp
( LockEndDate DATETIME)
INSERT INTO...
October 12, 2010 at 4:38 pm
This is going to sound mean, but we can't help you with this one without having a copy of the database.
The error says exactly what it means, one of the...
October 12, 2010 at 4:12 pm
I've found that 90% of the time a spid 'blocks itself'... it's waiting on Disk IO, which is what PAGEIOLOCK means.
Tell them the disks are slow, and take a look...
October 12, 2010 at 3:25 pm
Well, for starters, it's going to want a year.
I don't have 2k8 handy to run a direct test for datetime2, but stripping off the 'day of week' at the beginning...
October 11, 2010 at 5:40 pm
I'll second the request for this. The once in a blue moon I actually want this I'll turn it back off.
October 11, 2010 at 5:38 pm
Eric, I believe you're on the right track regarding memory.
FOR XML by itself is not going to the problem, any more then any heavily used, large result set query would...
October 11, 2010 at 11:34 am
KJ:
I see what you're trying to do here. You've got a starting sum (or a continuously added to sum) and then negatives in another structure you want both a...
October 8, 2010 at 5:31 pm
craig-404139 (10/8/2010)
And one window with the gap range(s). Not sure why the the query to identify the gaps is stripping off the prefix and leading zeros. Ideal output would be:
Well,...
October 8, 2010 at 4:53 pm
For the prepended PPCI parts, change the select into for #Contiguous to this:
SELECT
--Pattern,
--Series,
--MIN( StartNum) AS BeginSeries,
--Max( EndNum) AS EndSeries
Pattern + CAST( MIN( StartNum) AS VARCHAR(100)) AS BeginSeries,
Pattern + CAST(...
October 8, 2010 at 4:26 pm
craig-404139 (10/8/2010)
I am getting weird results from the #contiguous table. It looks like:PPCI412903540
PPCI7102903235
PPCI1932903562
PPCI2122853875
PPCI1022903952
PPCI131402902866
PPCI8592903560
PPCI1452903559
PPCI5492903970
PPCI11452900794
PPCI632903558
PPCI12542903556
PPCI33962903208
PPCI902903539
That is seriously wierd. You are running the code end to end, right? Only change the...
October 8, 2010 at 4:22 pm
This should do it:
DROP TABLE #gaps
DROP TABLE #Contiguous
DROP TABLE #MidPoint
CREATE TABLE #MidPoint
(RowID INT,
PrevRowID INT,
Pattern VARCHAR(100),
Startnum BIGINT,
EndNum BIGINT,
Series INT
)
INSERT INTO #Midpoint
( RowID, Pattern, StartNum, EndNum)
select
ROW_NUMBER() OVER (ORDER BY
left(controlnumber, PatIndex('%[0-9]%', controlnumber)-1),
convert(int,...
October 8, 2010 at 4:02 pm
craig-404139 (10/8/2010)
October 8, 2010 at 3:42 pm
Viewing 15 posts - 5,311 through 5,325 (of 5,685 total)