Viewing 15 posts - 691 through 705 (of 1,193 total)
Yes, that query is incorrect.
Use SELECT DISTINCT..., not SELECT ','+DISTINCT...
Cheers!
January 13, 2016 at 1:33 pm
The scope of your DISTINCT is incorrect. You're enforcing a DISTINCT set of values for the outer SELECT, but at that point the concatenated list is the value of a...
January 13, 2016 at 1:27 pm
Not directly, no. FILLFACTOR is not an option for single partition rebuilds https://msdn.microsoft.com/en-us/library/ms188388.aspx.
You could try to achieve this indirectly using the method in Thomas Kejser's answer here: http://dba.stackexchange.com/questions/86588/shrinking-old-partitions
Cheers!
January 13, 2016 at 11:34 am
I might be misunderstanding you, but if you're starting with the integer value (it sounds like you are?), then I find this method a bit more straightforward, using bitwise comparison:
=IIF((ValueToCheck...
January 13, 2016 at 9:15 am
edwardwill (1/13/2016)
See attachment.Edward
Yes, that works. That's the version he gives in the answer that is supposed to work, because the order of the table valued constructors has changed. Try the...
January 13, 2016 at 7:34 am
edwardwill (1/13/2016)
Jacob Wilkins (1/13/2016)
edwardwill (1/13/2016)
Eirikur Eiriksson (1/12/2016)
SQLRNNR (1/12/2016)
January 13, 2016 at 7:25 am
edwardwill (1/13/2016)
Eirikur Eiriksson (1/12/2016)
SQLRNNR (1/12/2016)
January 13, 2016 at 7:16 am
Thanks, that helps a bit.
Let me know if the code below does what you need. For this solution, the TOP (N) in the tally will have to be enough for...
January 12, 2016 at 12:57 pm
The requirement's still not so clear.
Specifically, with a frequency of 2, there should be an appointment every seven days. However, are those appointments occurring every seven days from the...
January 12, 2016 at 11:32 am
That code is not actually retrieving/calculating the cost of some existing product; he's just using that to generate unique costs for each item.
The idea is that you can use constructions...
January 11, 2016 at 3:07 pm
This shouldn't be too hard to do without a cursor.
Before I dive in too deeply, what are the expected results for that sample data and some parameter values you would...
January 11, 2016 at 2:17 pm
I understand your reasoning, but that's not the correct scope for the OR in that English construction.
The construction "X, whether Y or not-Y", is equivalent to "IF (y OR not-Y),...
January 11, 2016 at 1:13 pm
Rich Mechaber (1/11/2016)
Jeff Moden (1/10/2016)
January 11, 2016 at 11:09 am
This seems relevant as well: http://www.sqlskills.com/blogs/kimberly/nonclustered-indexes-lookup-key-btree/
Cheers!
January 8, 2016 at 9:13 am
A couple big things are worth pointing out.
First, a high percentage of CXPACKET waits doesn't necessarily mean there's a problem. The only thing you know for sure from seeing CXPACKET...
January 8, 2016 at 9:04 am
Viewing 15 posts - 691 through 705 (of 1,193 total)