Viewing 15 posts - 661 through 675 (of 1,193 total)
VegasL (1/22/2016)
I am trying to combine multiple sets of tables and then compare with not exists, this query doesn't return an error, but also doesn't return any results, which it...
January 22, 2016 at 3:46 pm
Lynn Pettis (1/22/2016)
WayneS (1/22/2016)
Brandie Tarvin (1/22/2016)
New code (with datatypes fixed) works fine ....
(code snipped)
...until I remove that damn driveletter column.
(code snipped again)
Where it fails on...
January 22, 2016 at 3:16 pm
A couple quick cautionary points:
1) Lowell's idea works nicely for this, just be careful with implementation since the scope of the *100 is incorrect. As written it multiplies the denominator...
January 22, 2016 at 2:32 pm
Brandie Tarvin (1/22/2016)
New code (with datatypes fixed) works fine ....
Where it fails on that DBFileName error again. (and yes, I deliberately left the DEFAULT columns...
January 22, 2016 at 11:18 am
drew.allen (1/21/2016)
J Livingston SQL (1/21/2016)
https://msdn.microsoft.com/en-us/library/ms189461.aspx
am trying to find the source that demonstrates the efficiency of using "unbounded preceding"...I have it somewhere <grin>
will post back if...
January 21, 2016 at 3:42 pm
Just for clarification, it looks like the primary key is just on database_id and object_id; schema_id is not included. I don't think that's the issue, though.
One way I know this...
January 21, 2016 at 11:45 am
That's because ROUND doesn't actually remove digits. It will just round the value to that place, leaving the current scale in place (i.e., ROUND(1.12345,2) is 1.12000, not 1.12).
Because of the...
January 20, 2016 at 5:24 pm
I don't default to a non-zero value, but I don't really default to any particular value, unless the server has >8 cores, in which case I'll default to 8 (partially...
January 20, 2016 at 5:03 pm
If all we care about is the max date for each ID, it should be close between those and the CASE, if the CASE version is also modified to only...
January 20, 2016 at 1:58 pm
Eirikur Eiriksson (1/20/2016)
Jacob Wilkins (1/20/2016)
I agree that using ISNULL would make it read a bit better. My main concern with that was general applicability, particularly, what do you replace NULLs...
January 20, 2016 at 10:17 am
Eirikur Eiriksson (1/20/2016)
Jacob Wilkins (1/20/2016)
Eirikur Eiriksson (1/19/2016)
Jacob Wilkins (1/19/2016)
January 20, 2016 at 10:07 am
Eirikur Eiriksson (1/19/2016)
Jacob Wilkins (1/19/2016)
January 20, 2016 at 8:28 am
rarara (1/20/2016)
January 20, 2016 at 6:42 am
spaghettidba (1/20/2016)
Indeed the default identity preallocation is 1000, 10K looks suspicious. Try enabling TF 272 (it disables identity preallocation) and see if it makes a difference.
I seem to remember someone...
January 20, 2016 at 6:34 am
Jeff Moden (1/19/2016)
Jacob Wilkins (1/19/2016)
Eirikur Eiriksson (1/19/2016)
aaron.reese (1/19/2016)
SSRS is not my natural home 😀 so I was not aware that IIF(x AND y) is a bitwise operation. ...
January 19, 2016 at 6:24 pm
Viewing 15 posts - 661 through 675 (of 1,193 total)