Viewing 15 posts - 5,596 through 5,610 (of 7,616 total)
Ok, let's see what this shows:
IF OBJECT_ID('tempdb.dbo.#showfilestats') IS NOT NULL
DROP TABLE #showfilestats
CREATE TABLE #showfilestats (
Fileid smallint NOT NULL,
FileGroup...
December 3, 2014 at 11:28 am
417 pages is a trivial size, you can ignore it if that's the total.
Does "DB size shows 215 GB" include log file? If so, what size is the log...
December 3, 2014 at 10:59 am
I suggest RECOMPILE as well. That may take some time, but it will be trivial compared to a terrible plan.
Also, if you leave auto stats update on, explicitly set...
December 3, 2014 at 10:50 am
SQL also creates internal tables for certain types of data, including: primary XML indexes,
service broker, change tracking and a few other things. You'll need to include the size...
December 3, 2014 at 10:44 am
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
Viewing 15 posts - 5,596 through 5,610 (of 7,616 total)