Viewing 15 posts - 1 through 15 (of 22 total)
Not sure if I've understood your scenario, so here goes...
Have you got an ascending ID (e.g. an identity field or date column) and you are adding records in ascending order?...
November 14, 2011 at 8:42 am
Thanks for the suggestions - it may be I'm ruling out dynamic SQL unnecessarily and I'll look into it. Not sure what is meant by name-value pairs?
As for examples, think...
November 1, 2011 at 3:56 am
When one colleague left we found, along with the usual selection of pens and stuff, some crackers and a range of individually wrapped cheese portions.
Unfortunately it took us a while...
September 29, 2011 at 3:07 am
One possible use of an index on (RID, Col2, Col3) would be as a covering index for some query - if your table's columns are RID, Col2, Col3, BigVarcharCol4, BigVarcharCol5,...
September 29, 2011 at 3:05 am
My work-around is,
Zoom to 100%
right-click on the diagram
select "Copy Diagram to Clipboard"
Paste into MS Word or similar
Print it from there.
If the diagram needs to span multiple pages I've also tried...
September 28, 2011 at 9:39 am
One other possible reason for the difference in plans - the two queries are not equivalent
select max(run_id) from T_BIR_RUN
always returns a single row.
select run_id from T_BIR_RUN where run_id = (select...
April 28, 2011 at 3:41 pm
A few thoughts:
You are using table variables. Is it possible to use temporary tables instead? I think (but can't remember where I read it) the optimiser will assume the table...
March 31, 2011 at 9:26 am
One thing that might be worth trying, but it kinda depends on how big a number @DataSet is (I'm guessing it is 10,000 based on the Filter operator).
You appear to...
March 29, 2011 at 9:24 am
Adding code to a popular MP3 song could infect millions of people
I've heard of viruses jumping between species, but a virus spreading from machines to people? Or maybe it will...
March 25, 2011 at 4:53 am
I was so convinced the extra comma in the CREATE TABLE would cause an error, I never even noticed the date of the 2nd of Chequary (Chequary is the month...
March 18, 2011 at 4:54 am
I've always wanted to be able to say this:
It depends.
One alternative is to use ROW_NUMBER() to pick out the row with the max FirstTime - sample code below. Sometimes it...
February 3, 2011 at 5:39 am
OK, I'm happy with the explanation of why COALESCE fails, but why does ISNULL work? vk-kirov observed that ISNULL(NULL,NULL) appears to be a NULL of type INT, but it doesn't...
November 12, 2010 at 4:48 am
I've slightly modified your code for sample data to remove NULLs and add a PK, just for personal preference really. Also I've only dealt with producing the bundles, not any...
October 22, 2010 at 5:11 am
If you are using Enterprise edition, the optimiser will automatically consider using the indexes on an indexed view, but on other editions you need a WITH (NOEXPAND) hint. Also there's...
September 29, 2010 at 3:04 am
The problem is, what counts as "best"? Letting the optimiser work through all possible plans may well find one with a lower cost, but would it be quicker? It would...
September 13, 2010 at 3:01 am
Viewing 15 posts - 1 through 15 (of 22 total)