Forum Replies Created

Viewing 15 posts - 3,991 through 4,005 (of 5,841 total)

  • RE: Table with high number of pages

    For a table with a clustered index, if it is fragmented then doing a defrag operation (such as rebuilding the clustered index) could make the total number of pages lower....

    Best,
    Kevin G. Boles
    SQL Server Consultant
    SQL MVP 2007-2012
    TheSQLGuru on googles mail service

  • RE: DML ?

    Tara-1044200 (5/25/2010)


    so how do i make sure INSERT is not conflicted with UPDATE ? what i need to force in T-SQL to do so?

    You cannot do this. Best you...

    Best,
    Kevin G. Boles
    SQL Server Consultant
    SQL MVP 2007-2012
    TheSQLGuru on googles mail service

  • RE: Memorry Uses High in sql 2005 64 bit

    antoniset (5/25/2010)


    Dear Master,

    I have question in my sql server 2005 64 bit, why in memmory to use very high, about 6GB sql server specification is:

    1. Windows 2003 standard 64 bit

    2....

    Best,
    Kevin G. Boles
    SQL Server Consultant
    SQL MVP 2007-2012
    TheSQLGuru on googles mail service

  • RE: memory bottlenecks

    Set max sql server memory to a very low value and then run very large hash joins will hit one form of memory issue. But there are MANY different...

    Best,
    Kevin G. Boles
    SQL Server Consultant
    SQL MVP 2007-2012
    TheSQLGuru on googles mail service

  • RE: DML ?

    Tara-1044200 (5/25/2010)


    If iam want to do an INSERT and UPDATE on a table, i understrand 1 process has to wait for the other as either of them would lock the...

    Best,
    Kevin G. Boles
    SQL Server Consultant
    SQL MVP 2007-2012
    TheSQLGuru on googles mail service

  • RE: Does rebuilding indexes and statistics cause recompile of execution plans?

    One addition to Gail's comments: you specifically said index rebuild and then statistics updates. That is both unnecessary and wrong if you are doing it in that order....

    Best,
    Kevin G. Boles
    SQL Server Consultant
    SQL MVP 2007-2012
    TheSQLGuru on googles mail service

  • RE: Table with high number of pages

    It is obvious to me that more pages equals lower performance in every equivalent scenario I can think of. If you are scanning you are a) having more IO...

    Best,
    Kevin G. Boles
    SQL Server Consultant
    SQL MVP 2007-2012
    TheSQLGuru on googles mail service

  • RE: Index hint

    1) this could be a cached plan that was great for the first execution but horrible for the next.

    2) without the index hint, show the estimated query plan...

    Best,
    Kevin G. Boles
    SQL Server Consultant
    SQL MVP 2007-2012
    TheSQLGuru on googles mail service

  • RE: New Memory Issues on new 64-bit Server

    bobmclaren (5/24/2010)


    I recently migrated our SQL server from a 32-bit Windows Std 2003 with only 4GB of memory to a brand new 64-bit server running Windows Server 2008 Std on...

    Best,
    Kevin G. Boles
    SQL Server Consultant
    SQL MVP 2007-2012
    TheSQLGuru on googles mail service

  • RE: How to kill the "Sessions inactive for a long time"

    I believe tt is normal for connections to stay around but not doing anything. But yes, the application can (and should) close it's connection when appropriate. I think...

    Best,
    Kevin G. Boles
    SQL Server Consultant
    SQL MVP 2007-2012
    TheSQLGuru on googles mail service

  • RE: How to obtain week by week plus YTD totals

    I like Lutz's answer the best since it uses the CASE statement I prefer - although not in the way I intended it. 🙂

    Best,
    Kevin G. Boles
    SQL Server Consultant
    SQL MVP 2007-2012
    TheSQLGuru on googles mail service

  • RE: How to obtain week by week plus YTD totals

    http://www.sommarskog.se/pivot_sp.sp could help. Erland has some really good stuff on his website.

    Best,
    Kevin G. Boles
    SQL Server Consultant
    SQL MVP 2007-2012
    TheSQLGuru on googles mail service

  • RE: How to obtain week by week plus YTD totals

    Unfortunately I don't have the time to work this today, but shouldn't this be doable with simple CASE statements in a single pass? Hopefully someone else can work that...

    Best,
    Kevin G. Boles
    SQL Server Consultant
    SQL MVP 2007-2012
    TheSQLGuru on googles mail service

  • RE: Why hangs up on one UPDATE query?

    1) you are using non-ansi joins. Note that these are no longer supported in newer editions of SQL Server

    2) AND WC_ORDERITEM_F_M_CN.ORDER_DT_WID >= A.BLST_YEAR_DT_WID

    that is known...

    Best,
    Kevin G. Boles
    SQL Server Consultant
    SQL MVP 2007-2012
    TheSQLGuru on googles mail service

  • RE: Free Advice or Free Consulting

    >> I can't count the number of times someone has fired back a "Boy you sure are dumb if you haven't done "X,Y,Z" already" without even reading far enough to...

    Best,
    Kevin G. Boles
    SQL Server Consultant
    SQL MVP 2007-2012
    TheSQLGuru on googles mail service

Viewing 15 posts - 3,991 through 4,005 (of 5,841 total)