Forum Replies Created

Viewing 15 posts - 16 through 30 (of 57 total)

  • RE: Altering column on very big table

    Anyone ???

  • RE: Altering column on very big table

    This sort of changes i always do with T-SQL. The GUI s*cks and does things you don't want to do most of the time.....

    (just my humble opinion ofcourse)

  • RE: Rebuilding indexes online isn't working?

    GilaMonster (12/14/2009)


    Do you have autoshrink on? Are you doing a manual database shrink after the index rebuild?

    I thought autoshrink was off, but it seems to be on :ermm:

    Edit: After turning...

  • RE: What's my bottleneck?

    Paul White (11/10/2009)


    Why does no-one ever include an actual execution plan? Actual row counts and thread distribution data are so important! And why omit the fact that the...

  • RE: What's my bottleneck?

    I've executed the query again and included the actual executionplan. I also tried it with MAXDOP, but it failed with an "out of memory" exception, so therefore i inserted the...

  • RE: What's my bottleneck?

    Here is a query that took 5 minutes, it returns a little over 5 million records. I also included the execution plan and a screenshot of the activitymonitor. The average...

  • RE: Altering a big table

    Hey, hey ... no offence meant !

    no offence taken 😉

    Thanks for your advice here:-)

  • RE: Altering a big table

    GilaMonster (11/8/2009)


    Try create a new column, batch-update the values, then drop the old column. Might lessen the log impact. Run checkpoints between each (since you're in simple) to mark the...

  • RE: Remove same records

    Florian Reischl (3/25/2009)


    Hi Sander

    Try this:

    SET NOCOUNT ON

    DECLARE @History TABLE (

    ID int identity(1,1)

    , IDStatus int

    , IDItem int

    , DateCreated datetime)

    INSERT INTO @History (IDStatus, IDItem, DateCreated)

    ...

  • RE: better solution than using the full outer join index

    Ramesh (2/19/2009)


    Ok..., the below query is tested and it works...

    SELECTi.Name, ISNULL(s.Date, k.Date), s.stat1, s.stat2, s.stat3, k.kpi1, k.kpi2, k.kpi3

    FROM#items i

    LEFT JOIN #Stats s

    FULL JOIN #KPIs k ON k.ItemID = s.ItemID...

  • RE: better solution than using the full outer join index

    Ramesh (2/18/2009)


    SELECTi.Name, s.stat1, s.stat2, s.stat3, k.kpi1, k.kpi2, k.kpi3

    FROMItems i

    INNER JOIN

    (

    SELECTISNULL( s.IDItem, k.IDItem ) AS IDItem,

    s.stat1, s.stat2, s.stat3, k.kpi1, k.kpi2, k.kpi3

    FROM[STATISTICS] s

    FULL OUTER JOIN KPIs k ON s.IDItem =...

  • RE: better solution than using the full outer join index

    If have tested it.... and indeed: it doesn't work

    The testcase :

    create table #Stats (

    ID int identity primary key,

    ItemID int,

    Date smalldatetime,

    Stat1 float,

    Stat2 float,

    Stat3 float);

    create table #KPIs (

    ID int identity primary...

  • RE: better solution than using the full outer join index

    Ramesh (2/18/2009)


    Will the below query is supported by your query builder? If not, can you tell us what queries are supported, 'cause I am out of ideas?:D

    SELECTi.Name, s.stat1, s.stat2,...

  • RE: better solution than using the full outer join index

    Ramesh (2/18/2009)


    SELECTi.Name, s.stat1, s.stat2, s.stat3, k.kpi1, k.kpi2, k.kpi3

    FROMItems i

    INNER JOIN

    (

    SELECTISNULL( s.IDItem, k.IDItem ) AS IDItem,

    s.stat1, s.stat2, s.stat3, k.kpi1, k.kpi2, k.kpi3

    FROM[STATISTICS] s

    FULL OUTER JOIN KPIs k ON s.IDItem =...

  • RE: better solution than using the full outer join index

    The total calculation works now, but now i'm comming to the history screens and again i'm running into a problem (i'm feeling quite dumb that i can't figure this out...

Viewing 15 posts - 16 through 30 (of 57 total)