Forum Replies Created

Viewing 15 posts - 5,596 through 5,610 (of 7,616 total)

  • RE: database growth

    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...

  • RE: database growth

    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...

  • RE: Puzzle with Sproc intermittently runs slow but runs faster other days.

    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...

  • RE: database growth

    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...

  • RE: Baffling query plan on slow query

    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 guess the SourceFactTimeCard table is fairly wide?

    I suggest creating a covering index on:

    SourceFactTimeCard (...

  • RE: Baffling query plan on slow query

    Robert Frasca (12/2/2014)


    ScottPletcher (12/2/2014)


    Robert Frasca (12/2/2014)


    ScottPletcher (12/1/2014)


    I guess the SourceFactTimeCard table is fairly wide?

    I suggest creating a covering index on:

    SourceFactTimeCard ( TimecardIndex, EmployeeID )

    If SQL then...

  • RE: SQL DBA knowing user passwords

    eric.notheisen (12/2/2014)


    In our company sharing user passwords is a firing offense. As developers needing to troubleshoot user defined defects, we restore the production database to our development VM's and...

  • RE: Baffling query plan on slow query

    Robert Frasca (12/2/2014)


    ScottPletcher (12/1/2014)


    I guess the SourceFactTimeCard table is fairly wide?

    I suggest creating a covering index on:

    SourceFactTimeCard ( TimecardIndex, EmployeeID )

    If SQL then uses that covering...

  • RE: Auto Memory control

    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...

  • RE: Baffling query plan on slow query

    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...

  • RE: Last 30 days aggregate query

    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)

  • RE: Proper use of CTE in scalar valued function

    You can pass @StartingDate as a param to the ITV function.

    Also, you can simplify the calc for PastPeriods:

    MONTH(@StartingDate) % 3 + 14

  • RE: Auto Memory control

    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...

  • RE: Alter the schema from one view causes the need to alter the other

    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...

  • RE: Alter the schema from one view causes the need to alter the other

    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...

Viewing 15 posts - 5,596 through 5,610 (of 7,616 total)