Forum Replies Created

Viewing 15 posts - 23,011 through 23,025 (of 49,552 total)

  • RE: Index suppression & performance degradation

    On SQL 2005, pretty much yes.

    Otherwise, multiple stored procedures for the cases where the various parameters are passed or not, but that means 4 procedures.

    On the security side, the solution...

    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: which trigger event

    Within the trigger...

    DECLARE @Operation VARCHAR(10)

    IF EXISTS (SELECT 1 FROM inserted) and NOT EXISTS (SELECT 1 FROM deleted)

    SET @Operation = 'Insert'

    IF EXISTS (SELECT 1 FROM inserted) and EXISTS (SELECT...

    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: Index suppression & performance degradation

    http://sqlinthewild.co.za/index.php/2009/03/19/catch-all-queries/

    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: IF EXIST - DO NOTHING

    Lynn Pettis (10/6/2011)


    Did some testing and it looks like you do want to ANDs in the NOT EXISTS statement.

    Okay, boolean logic doesn't always work as you think in T-SQL.

    Boolean logic...

    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: Are the posted questions getting worse?

    Lynn Pettis (10/6/2011)


    GilaMonster (10/6/2011)


    Lynn Pettis (10/6/2011)


    Didn't GETDATE() use to (or still get) the same error?

    Yes, in SQL 2000.

    Then the code Jack ran into my be a vestige left over when...

    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: Are the posted questions getting worse?

    Lynn Pettis (10/6/2011)


    Didn't GETDATE() use to (or still get) the same error?

    Yes, in SQL 2000.

    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: Are the posted questions getting worse?

    Lynn Pettis (10/6/2011)


    Jack Corbett (10/6/2011)


    So working on a system where there is a UDF that calls a view and the view definition is:

    create view SYSTEM_DATE_VIEW

    as select...

    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: Are the posted questions getting worse?

    Jack Corbett (10/6/2011)


    So working on a system where there is a UDF that calls a view and the view definition is:

    create view SYSTEM_DATE_VIEW

    as select getdate() SYSTEM_DATE

    ...

    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: Are the posted questions getting worse?

    Stefan Krzywicki (10/6/2011)


    GilaMonster (10/6/2011)


    Ninja's_RGR'us (10/6/2011)


    Grant Fritchey (10/6/2011)


    Steve Jones - SSC Editor (10/6/2011)


    If you haven't seen it, his 2005 Stanford Commencement. Excellent talk: http://www.youtube.com/watch?v=D1R-jKKp3NA&feature=player_embedded#!

    A sad day, and a reminder that I'm...

    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: ALTER COLUMN & Indexes

    The index is dependant on the column no matter how much data is in the table. It's just a schema rule.

    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: Release unused space after drop table in SQL 2008 Enterprise Edition

    AER (10/6/2011)


    This is a Live database. Is it not going to affect performance?

    Of course it will, badly. Both in terms of the IO that it's doing and in terms of...

    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: Are the posted questions getting worse?

    Ninja's_RGR'us (10/6/2011)


    Grant Fritchey (10/6/2011)


    Steve Jones - SSC Editor (10/6/2011)


    If you haven't seen it, his 2005 Stanford Commencement. Excellent talk: http://www.youtube.com/watch?v=D1R-jKKp3NA&feature=player_embedded#!

    A sad day, and a reminder that I'm getting older as...

    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: Release unused space after drop table in SQL 2008 Enterprise Edition

    Shrinks can take hours, especially if there are LOB columns or a slow IO subsystem. Be patient.

    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: Release unused space after drop table in SQL 2008 Enterprise Edition

    That's IO-related. It means SQL's requesting a page from the data file the shrink is waiting for that page.

    How long did you wait before deciding the shrink was 'hung'?

    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: Release unused space after drop table in SQL 2008 Enterprise Edition

    No, query sys.dm_exec_requests and look at the wait_* columns.

    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,011 through 23,025 (of 49,552 total)