Viewing 15 posts - 2,551 through 2,565 (of 5,841 total)
It's quicker to write FROM x a, x b than it is to track down the inline tally table code.
That's what Snippets are for silly! 😀 Actually for...
June 3, 2013 at 7:18 am
If you want the system diagnosed and fixed (if possible) ASAP, the ONLY way to do that with any reasonable chance for success is to hire a qualified performance tuning...
May 31, 2013 at 9:17 pm
ChrisM@Work (5/23/2013)
Bex (5/23/2013)
Nice solution btw, Chris.Bex
Gosh, thanks! :blush:
It truly is an elegant solution Chris! Kudos.
However, I will nit-pick on using sys.columns for the driver. 😎 That gets...
May 24, 2013 at 8:53 am
+100 to Lynn!!
Read my chapter in the SQL Server MVP Deep Dives 2 book entitled "Death by UDF" 😎
May 23, 2013 at 1:30 pm
tl;dr
1) I think pre-aggregated data will always smoke real-time queries 🙂
2) since you are on SQL 2012, have a look at LAST_VALUE. It might be a better option than...
May 23, 2013 at 10:12 am
MarvinTheAndriod (5/23/2013)
Can anyone recommend a good step by step guide/article to setting up high availabilty
Step 1: Get a QUALIFIED PROFESSIONAL to help you and your company. To do...
May 23, 2013 at 8:19 am
hi2u (5/21/2013)
I think i'll go with the coincidence explanation. Thank you...
May 22, 2013 at 11:54 am
It can be done, but it is ugly cursor-driven stuff. CLR will likely be a good bit more efficient, but you will have a lot of code to write...
May 22, 2013 at 11:15 am
Anam Verma (5/21/2013)
May 22, 2013 at 10:59 am
Not only do you have the dreaded IS NULL OR construct, you also have a bunch of correlated SELECT..(SELECT..) calls too.
I have had success in examples such as this simply...
May 21, 2013 at 2:37 pm
vamsi2.k (5/20/2013)
I am facing a similar issue. I am configuring Merge Replication for a Database of Size 3GB.
When I run the SnapShot Agent My memory is falling down. I'm...
May 20, 2013 at 2:05 pm
I recommend to my clients to never EVER use Maintenance Plans for ANYTHING. All standard/routine database maintenance activities should be done using Ola.Hallengren.com's FREE, FULLY DOCUMENTED, INCREDIBLY POWERFUL/FLEXIBLE scripts!!!...
May 20, 2013 at 7:45 am
There are quite a few different things you can "tune" a query to "optimize/minimize": duration, IO, CPU, Memory, locking, etc. In your case it would seem that you...
May 15, 2013 at 6:30 am
stuart.hemming (5/9/2013)
I'm hoping someone can help me with a SQL query I'm trying to write; I'm relatively new to SQL so please bear with me if this is a numpty...
May 9, 2013 at 9:54 am
Here is an interesting solution that could be more efficient (didn't test that):
select
DT,
CAST(dt AS decimal(29,15))*86400 AS decdtsec2,
SecondsSince_19000101 =
-- seconds for whole days
(datediff(dd,0,a.DT)*000000000086400)+
-- seconds since start of day
datediff(ss,dateadd(dd,datediff(dd,0,a.DT),0),a.DT)
from
(...
May 8, 2013 at 2:27 pm
Viewing 15 posts - 2,551 through 2,565 (of 5,841 total)