Forum Replies Created

Viewing 15 posts - 181 through 195 (of 309 total)

  • RE: Data file growth

    I think something is creating a temporary file on that drive and then it removes the file when it is done.

    Perhaps the backup routine is writing the backups to this...

  • RE: Updating 20M rows takes 5 hours

    You could try this:

    * Disable all indexes on productionaudit before performing the update, then reenable them after the update.

    * Dont update all 20M rows in one single transaction - use...

  • RE: Partial Clustered Index Seek then Merge Join...

    The reason the SQL server is using a merge join for joining with ProductToZone is that the cost for reading 653191 rows with sequential IO from the index and then...

  • RE: simple Insert - tune

    lmu92 (5/13/2010)


    I guess the following indexes might help:

    Empgig1: EmpID,InDt include(EmpCode)

    #EmployeeDur: EmpID,StDate,EnDate

    I agree with Lutz. The indexes suggested above will probably fix the problem.

  • RE: Unexpected Clustered Index Scan

    GilaMonster (5/14/2010)


    However a loop join to join 16 million rows to 20 million rows is insane. Loop joins work well if one of the tables has a small number of...

  • RE: Unexpected Clustered Index Scan

    rossnruthie (5/13/2010)


    We have 10 large 15 million+ row tables that all have 1 index(clustered) on a column called individual_id_number. These tables are never updated and never have rows inserted...

  • RE: Query runs slower in SP

    Please post the actual execution plans of both the fast and slow run.

  • RE: Harddisc perfomance tipps

    OK, here are my opinions:

    I like to keep things as simple as possible, so I would probably do it like this:

    2 discs raid 1 for system+programs+paging

    2 discs raid 1 for...

  • RE: SUM(COLUMN) with Clustered Index Seek -- Too slow

    You could also load the data into an OLAP Cube and reprogram the application to query that instead.

  • RE: improving UPDATE time

    A few points:

    * The main reason this particular update is so slow is that you have a non-clustered index (IX_UserName) on the UserName column. The update would probably be much...

  • RE: Send multiple HTML tables with sp_send_dbmail

    It looks like you are on the right track.

    My guess is that one of the variables @tableHTML @newdb @backupHTML is NULL. Add some debugging print statements...

  • RE: The statistics affect the sort ?!

    Paul, thanks for the explanation.

    I thought this was what you where referring to, but I wasnt sure.

    /SG

  • RE: How to improve a query with a like statement

    I think it would be a good idea to post the actual definition of Table1 including all its indexes.

    Please do not edit the generated script in any way, just post...

  • RE: How to improve a query with a like statement

    ricardo_chicas (4/29/2010)


    How many rows are in the table ?

    A\ 70 million rows

    How many rows does the query above really return ?

    A\query returns about 70 thousand

    What do your indexes look like...

  • RE: The statistics affect the sort ?!

    Grant Fritchey (4/29/2010)


    Logically the data is sorted in precise order, meaning that the index knows exactly which comes next in sequence. But the storage mechanism may have the data stored...

Viewing 15 posts - 181 through 195 (of 309 total)