Viewing 15 posts - 5,581 through 5,595 (of 7,597 total)
Robert Frasca (12/2/2014)
Grant Fritchey (12/2/2014)
ScottPletcher (12/2/2014)
Robert Frasca (12/2/2014)
ScottPletcher (12/2/2014)
Robert Frasca (12/2/2014)
ScottPletcher (12/1/2014)
I suggest creating a covering index on:
SourceFactTimeCard (...
December 2, 2014 at 12:00 pm
Robert Frasca (12/2/2014)
ScottPletcher (12/2/2014)
Robert Frasca (12/2/2014)
ScottPletcher (12/1/2014)
I suggest creating a covering index on:
SourceFactTimeCard ( TimecardIndex, EmployeeID )
If SQL then...
December 2, 2014 at 10:36 am
eric.notheisen (12/2/2014)
December 2, 2014 at 9:07 am
Robert Frasca (12/2/2014)
ScottPletcher (12/1/2014)
I suggest creating a covering index on:
SourceFactTimeCard ( TimecardIndex, EmployeeID )
If SQL then uses that covering...
December 2, 2014 at 8:43 am
SQL allows you to designate a proc(s) as "start up" procs that automatically runs when an instance starts. I was suggesting you create such a proc, or add code...
December 2, 2014 at 8:40 am
I guess the SourceFactTimeCard table is fairly wide?
I suggest creating a covering index on:
SourceFactTimeCard ( TimecardIndex, EmployeeID )
If SQL then uses that covering index -- it...
December 1, 2014 at 4:43 pm
SELECT CONVERT(varchar(10), DATEADD(DAY, DATEDIFF(DAY, 0, dt), 0), 120) AS dt, SUM(amt) AS Amt
FROM @t
GROUP BY DATEADD(DAY, DATEDIFF(DAY, 0, dt), 0)
December 1, 2014 at 4:26 pm
You can pass @StartingDate as a param to the ITV function.
Also, you can simplify the calc for PastPeriods:
MONTH(@StartingDate) % 3 + 14
December 1, 2014 at 4:21 pm
You'll need to create a start up proc for each instance that checks for the different conditions.
Since you have to change both instance's memory settings, I'd create a proc in...
December 1, 2014 at 4:12 pm
ZZartin (12/1/2014)
ScottPletcher (12/1/2014)
GilaMonster (11/30/2014)
river1 (11/28/2014)
What do you mean by stop using select?
I didn't say stop using select. I said stop using SELECT *. Explicitly define what columns you need and...
December 1, 2014 at 3:22 pm
GilaMonster (11/30/2014)
river1 (11/28/2014)
What do you mean by stop using select?
I didn't say stop using select. I said stop using SELECT *. Explicitly define what columns you need and you won't...
December 1, 2014 at 2:24 pm
Also, as additional stop-gap measures:
1) review indexes to see if there any you can drop
2) if you have any heaps, see if they consume a lot of space beyond what...
December 1, 2014 at 11:59 am
zedtec (11/25/2014)
ERROR 1222 : Lock request time out period exceeded.
I killed a session...
November 25, 2014 at 9:52 am
In theory, the code below would do what you've described.
select t2.*
from Table2 t2
where
exists(select 1 from table1 t1 where t2.detail like '%' + t1.ID +...
November 25, 2014 at 9:47 am
ZZartin (11/21/2014)
g.britton (11/21/2014)
ScottPletcher (11/21/2014)
You don't "have" to do the FETCH twice. In fact, I never do that, because it's too error prone when the code is changed.
good point, though...
November 21, 2014 at 3:45 pm
Viewing 15 posts - 5,581 through 5,595 (of 7,597 total)