Viewing 15 posts - 2,521 through 2,535 (of 8,416 total)
You can't use a variable name in a PIVOT list.
Post some sample data together with a description of what you are trying to achieve.
October 5, 2010 at 12:49 am
One could always specify both:
SELECT DISTINCT
C.Title,
C.FirstName
FROM Person.Contact C
GROUP ...
October 5, 2010 at 12:45 am
Complex question, but see the following two-part blog entry by Paul Randal - it contains a lot of very good information about loading data quickly, especially the effect of batching...
October 4, 2010 at 11:33 pm
Using a variation on Lowell's idea, and assuming your dates are US format:
SELECTinput = T.monthyear,
the_month = MONTH(CA.the_date),
the_year = YEAR(CA.the_date)
FROM#test T
CROSS
APPLY(
SELECTCONVERT(DATE, REPLACE(T.monthyear, '/', '/01/20'), 101)
)
CA (the_date);
October 4, 2010 at 10:06 pm
WayneS (10/4/2010)
or, perhaps, sp_MSForEachHeavyObject?
Excellent technical advice on The Thread today. Thanks all.
October 4, 2010 at 8:40 pm
gheinze,
Can I ask *why* you want to block query 2? It seems an unusual requirement. Why would it be bad for query 2 to run without blocking in...
October 4, 2010 at 7:16 pm
Alvin Ramard (10/4/2010)
See Paul, not all operations are meant to be multi-threaded. 😀
According to my wife, I am not capable of simple multi-tasking anyway 🙂
October 4, 2010 at 6:58 pm
Oliiii (10/4/2010)[hrIt looks like it knows that even though the record is held by an exclusive lock, it hasn't been modified yet so is not yet dirty and can then...
October 4, 2010 at 6:51 pm
jcrawf02 (10/4/2010)
Paul White NZ (10/2/2010)
Maybe, but you wouldn't have envied me and Justin carrying a sofa and six-burner BBQ up the stairs this morning. Comedy.
You should have carried them...
October 4, 2010 at 6:41 pm
gheinze (10/4/2010)
I tested this on a test Db with isolation level "read committed snapshot"
Right well that's different - now you are using the isolation level correctly.
The point of the row-versioning...
October 4, 2010 at 6:00 pm
BrainDonor (10/4/2010)
Thanks. One kidney should cover that. They have four between them - I'll let them decide.
Seems fair 🙂
October 4, 2010 at 3:32 am
BrainDonor (10/4/2010)
October 4, 2010 at 3:22 am
GilaMonster (10/3/2010)
I remember trying to get a 35kg barbell set up 2 flights of stairs. Took a while...
I can imagine. Luckily I am no sort of fitness devotee, so...
October 3, 2010 at 6:28 am
Tom.Thomson (10/3/2010)
Anyone know of any MS plans to improve in this area?
Yes, they have confirmed SHA2 will be present in Denali:
For the time being we have SQLCLR integration, which means...
October 3, 2010 at 6:22 am
Grant Fritchey (10/1/2010)
October 3, 2010 at 5:38 am
Viewing 15 posts - 2,521 through 2,535 (of 8,416 total)