Forum Replies Created

Viewing 10 posts - 46 through 55 (of 55 total)

  • RE: Changing Locations of DataFile

    runal_jagtap (9/24/2012)


    Hello Everyone 🙂

    Finally i have been assigned this task to do next month..

    but they are still not sure that if i Change the Log File location of the database...

  • RE: NOT IN query very expensive, 100% CPU

    Lynn Pettis (9/14/2012)


    FYI, the way you editted the quote makes it seem I said something I didn't.

    Sorry, that was a mess. I fixed it up.

  • RE: NOT IN query very expensive, 100% CPU

    Lynn Pettis (9/13/2012)


    And yet in practice, I have found that breaking things down and using temp tables instead of try to do everything in one query can in fact be...

  • RE: NOT IN query very expensive, 100% CPU

    Eugene Elutin (9/13/2012)


    Who gave you such impression or where did you take it from?

    Quite often splitting tasks using temp tables will not only significantly boost performance of complicated processes,...

  • RE: New Windows 2008 R2 server with SQL 2008 R2 - Hard Drive Setup

    Perry Whittle (9/12/2012)


    You're mixing dissimilar I\O patterns on the same physical array, they should be separated for maximum performance. 2 logical drives on the same array will have I\O pattern...

  • RE: NOT IN query very expensive, 100% CPU

    Eugene Elutin (9/13/2012)


    Can you try this:

    SELECT column1,'99' [a],left(column2,2) , max(column3) [c], 'Yes' [d], 'Test' [e]

    ,ltrim(rtrim(column1))+ltrim(rtrim(left(column2,2))) as test

    INTO #pre1 ...

  • RE: NOT IN query very expensive, 100% CPU

    Lynn Pettis (9/13/2012)


    What would really help us help you is if you would provide the DDL (CREATE TABLE statement) for the tables involved including the indexes currently defined on the...

  • RE: NOT IN query very expensive, 100% CPU

    Well I did some more digging and it looks like the ltrim/rtrim is doing something because I get different results if I take them out. From what I gathered...

  • RE: NOT IN query very expensive, 100% CPU

    Jeff Moden (9/12/2012)


    Have you tried the NOT IN without the DISTINCT?

    Also, what's with all the LTRIM/RTRIM stuff? Data should be properly stored without leading spaces and trailing spaces hardly...

  • RE: NOT IN query very expensive, 100% CPU

    Thanks everyone. I learned a lot here. I went with the NOT EXISTS and it finishes in 2 seconds now. Very nice!

Viewing 10 posts - 46 through 55 (of 55 total)