Viewing 15 posts - 1,666 through 1,680 (of 7,484 total)
Nice question.
To me it seems rather obvious that if you disable the clustered index then no other index on the table will work because all the other indexes identify rows...
June 6, 2015 at 4:11 pm
Jeff Moden (6/5/2015)
Great article, though....
June 6, 2015 at 11:36 am
Certainly that dev guy had it hoplessly wrong, but you too have it wrong - not hopelessly wrong, but somewhat wrong.
During much of my career I've had...
June 6, 2015 at 11:32 am
You are being too complicated, this is actually quite simple.
This works for the data you have posted:
--create test data
set dateformat dmy ;
create table #tim (start datetime2, end1 datetime2);
insert #tim values...
June 6, 2015 at 10:40 am
Alan.B (6/3/2015)
TomThomson (6/3/2015)
Luis Cazares (6/3/2015)
Eirikur Eiriksson (6/3/2015)
SQLRNNR (6/3/2015)
Lynn Pettis (6/2/2015)
Why would the person who wrote the procedure ask on a public forum why his procedure is returning a value of...
June 5, 2015 at 9:31 pm
Robert Eder (6/4/2015)
Sean Lange (6/4/2015)
Robert Eder (6/4/2015)
June 5, 2015 at 9:12 pm
Braindead comment removed. Must remember to switch brain on before applying fingers to keyboard.
June 5, 2015 at 8:53 pm
SQL-DBA-01 (6/5/2015)
June 5, 2015 at 8:37 pm
I dislike script B intensely (too verbose and splitting one operation into two without wrapping a transaction around them). Pity it's what I've become used to getting (in fact...
June 4, 2015 at 4:14 am
Luis Cazares (6/3/2015)
Eirikur Eiriksson (6/3/2015)
SQLRNNR (6/3/2015)
Lynn Pettis (6/2/2015)
Why would the person who wrote the procedure ask on a public forum why his procedure is returning a value of -6 when...
June 3, 2015 at 5:24 pm
It might be nice if an expert on indexes could look at this one. I've made a stab at it, but I'm not confident that I've got it...
June 3, 2015 at 9:34 am
Thanks for teh extra informtion. Having seen that I think I would go for using UploadID as UNCLUSTERED primary key and have a CLUSTERED index with key (PeriodNo, UploadType)....
June 3, 2015 at 9:28 am
I could make a wild guess but my best answer, since you haven't provided enough information to do more than just guess, is "it depends".
Some of the questions that need...
June 3, 2015 at 8:12 am
Nice straightforward question. Don't know why it should be two points, though. 🙂
Of course the second reference in the explanation is a lovely illustration of the sheer awfulness of...
June 3, 2015 at 6:21 am
Nice, straightforward question.
Perhaps rather easy, as it would be appallingly bad language (type system) design if either of the other options were correct instead of this one.
June 3, 2015 at 5:54 am
Viewing 15 posts - 1,666 through 1,680 (of 7,484 total)