Forum Replies Created

Viewing 15 posts - 23,926 through 23,940 (of 49,552 total)

  • RE: sqlservr.exe 100% utilization --- Urgent

    Rajo (8/25/2011)


    please suggest can we run

    DBCC SQLPERF("sys.dm_os_wait_stats",CLEAR); in production hour

    or

    what is the best solution to clear the wait stats

    All that's going to do is wipe out the accumulated...

    Gail Shaw
    Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
    SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability

    We walk in the dark places no others will enter
    We stand on the bridge and no one may pass
  • RE: Question on Index Scan

    chandan_jha18 (8/25/2011)


    However as you said that it offers no selectivity, can we move it to the end of the where clause because I think doing this we are just trying...

    Gail Shaw
    Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
    SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability

    We walk in the dark places no others will enter
    We stand on the bridge and no one may pass
  • RE: Insert,update and delete trigger on multiple rows

    alter TRIGGER tr_UI_tblA ON boat FOR Update,Insert

    AS

    begin

    if update(color)

    INSERT INTO Audit_tblA

    SELECT inserted.bid,deleted.color,inserted.name, 'U', getdate(),SYSTEM_User

    FROM Inserted join deleted on inserted.bid=deleted.bid

    ELSE

    INSERT INTO Audit_tblA

    SELECT *, 'I', getdate(),SYSTEM_User

    FROM Inserted

    end

    GO

    The UPDATE function returns true if...

    Gail Shaw
    Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
    SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability

    We walk in the dark places no others will enter
    We stand on the bridge and no one may pass
  • RE: Insert,update and delete trigger on multiple rows

    Welsh Corgi (8/24/2011)


    Example from Stack Overflow:

    CREATE TRIGGER DML_ON_TABLEA ON TABLEA AFTER INSERT,DELETE,UPDATE AS BEGIN SET NOCOUNT ON; ...

    Gail Shaw
    Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
    SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability

    We walk in the dark places no others will enter
    We stand on the bridge and no one may pass
  • RE: SQL 2008 - View - Order by Problem

    TOP (99.9999) PERCENT is a row-limiting TOP (if the row count is large enough and SQL cannot assume that it's not). TOP (x) ORDER BY is ignored for non-row limiting...

    Gail Shaw
    Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
    SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability

    We walk in the dark places no others will enter
    We stand on the bridge and no one may pass
  • RE: Question on Index Scan

    Can you post the query please

    Gail Shaw
    Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
    SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability

    We walk in the dark places no others will enter
    We stand on the bridge and no one may pass
  • RE: Reduce SQL Server Loda

    Clustering is High Availability, not scale-out.

    Scale-out in SQL is difficult, there's no automatic way of doing it. You may find it easier to tune the database and scale up.

    Gail Shaw
    Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
    SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability

    We walk in the dark places no others will enter
    We stand on the bridge and no one may pass
  • RE: sql query takes long time to execute

    Please post table definitions, index definitions and execution plan, as per http://www.sqlservercentral.com/articles/SQLServerCentral/66909/

    Gail Shaw
    Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
    SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability

    We walk in the dark places no others will enter
    We stand on the bridge and no one may pass
  • RE: sqlservr.exe 100% utilization --- Urgent

    Ninja's_RGR'us (8/25/2011)


    If it's THAT urgent, then I recommend hiring someone. Those articles are amazing but it takes time to assimilate them.

    I'm available (though international work is difficult). Usually takes...

    Gail Shaw
    Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
    SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability

    We walk in the dark places no others will enter
    We stand on the bridge and no one may pass
  • RE: sqlservr.exe 100% utilization --- Urgent

    http://www.simple-talk.com/sql/performance/finding-the-causes-of-poor-performance-in-sql-server,-part-1/

    http://www.simple-talk.com/sql/performance/finding-the-causes-of-poor-performance-in-sql-server,-part-2/

    Gail Shaw
    Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
    SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability

    We walk in the dark places no others will enter
    We stand on the bridge and no one may pass
  • RE: Question on Index Scan

    Please post table definitions, index definitions and execution plan, as per http://www.sqlservercentral.com/articles/SQLServerCentral/66909/

    Gail Shaw
    Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
    SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability

    We walk in the dark places no others will enter
    We stand on the bridge and no one may pass
  • RE: SQL STACK DUMP

    On what?

    Stack dumps are application errors (Not T-SQL errors) and they are typically memory bugs.

    If you're planning on writing low-level windows applications (using C++) you'll find lots of information on...

    Gail Shaw
    Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
    SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability

    We walk in the dark places no others will enter
    We stand on the bridge and no one may pass
  • RE: Question on Index Scan

    You sure about that scan?

    An index scan won't have a seek predicates property, only index seeks can have seek predicates.

    Seek predicates are what the seek looks for in the b-tree,...

    Gail Shaw
    Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
    SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability

    We walk in the dark places no others will enter
    We stand on the bridge and no one may pass
  • RE: SQL STACK DUMP

    It's an access violation

    2011-08-24 18:14:26.890 spid120 * Exception Address = 00000000010E6BD0 Module(sqlservr+00000000000E6BD0)

    2011-08-24 18:14:26.890 spid120 * Exception Code = c0000005 EXCEPTION_ACCESS_VIOLATION

    2011-08-24 18:14:26.890 spid120 * Access Violation occurred writing address 0000000000000009

    An access...

    Gail Shaw
    Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
    SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability

    We walk in the dark places no others will enter
    We stand on the bridge and no one may pass
  • RE: SQL STACK DUMP

    No idea. Apply SP4, if the problem persists call customer support. They have tools to read and diagnose stack dumps, we don't.

    Gail Shaw
    Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
    SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability

    We walk in the dark places no others will enter
    We stand on the bridge and no one may pass

Viewing 15 posts - 23,926 through 23,940 (of 49,552 total)