Viewing 15 posts - 2,131 through 2,145 (of 3,957 total)
Glad to hear my off-the-cuff idea worked!
Thanks for the feedback as I don't believe I've actually tried it myself. 🙂
January 17, 2013 at 10:25 pm
Lynn Pettis (1/17/2013)
A deadlock exists if two processes are are waiting are each waiting for a resource locked by the other process.
Easy for you to say. 🙂
Like I said, I...
January 17, 2013 at 9:33 pm
I don't think there's a need to use ROW_NUMBER(), unless something like this doesn't get it for you:
;WITH ModuleHieararchy AS (
SELECT [SModuleId], [ModuleId], [SMName]
...
January 17, 2013 at 9:29 pm
This is a self-help forum. 😀
Help us to help you help yourself...
January 17, 2013 at 8:19 pm
zerko (1/17/2013)
January 17, 2013 at 8:17 pm
Maybe you need to:
PARTITION BY LEFT(CourseDate, 4)
?
January 17, 2013 at 6:24 pm
It's possible to script a new job start time in the scheduler (SQL Agent) but that's probably a pain.
Something like this might do it for you:
DECLARE @TryCount INT = 0
WHILE...
January 17, 2013 at 5:50 pm
matak (1/17/2013)
http://www.sqlservercentral.com/articles/Excel/91179/
As everyone keeps saying if you don't understand the code then...
January 17, 2013 at 5:39 pm
This should also work:
SELECT newColumn
FROM yourTable as yt
CROSS APPLY (
VALUES (LEFT(yt.yourColumn,1)+'C')
,(LEFT(yt.yourColumn,1)+'D') new (newColumn)
January 17, 2013 at 5:32 pm
dwilliscp (1/17/2013)
January 17, 2013 at 5:22 pm
opc.three (1/17/2013)
January 17, 2013 at 5:18 pm
Suresh B. (1/17/2013)
There was no deadlock. Deadlock would fail the job.
Incorrect. SQL Server kills only the transaction that costs the least to rollback, so the competing transaction could have...
January 17, 2013 at 5:23 am
opc.three (1/12/2013)
January 16, 2013 at 5:53 pm
You could try turning on the deadlocks trace flag:
DBCC TRACEON (1222, -1)
And then checking the log to see if it reports deadlocks during the period the job is running.
January 16, 2013 at 5:47 pm
ChrisM@Work (1/16/2013)
;WITH SampleData AS (SELECT CId = 1, CCId = 'a', CCount = 3, totalCount = 6 UNION ALL
SELECT 1, 'a', 3, 6 UNION ALL
SELECT 1, 'b', 3, 6 UNION...
January 16, 2013 at 5:42 pm
Viewing 15 posts - 2,131 through 2,145 (of 3,957 total)