Forum Replies Created

Viewing 15 posts - 9,601 through 9,615 (of 49,552 total)

  • RE: DBCC ShrinkDatabase + Insert Query same time

    Yes, there will be impact. Shrink is an IO-intensive operation (does a huge amount of IO operations)

    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 server log folder

    You're having stack dumps, severe exceptions which result in SQL writing out diagnostic information. Rather than worry about the space, maybe worry about why you're having a lot of very...

    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: DBCC ShrinkDatabase + Insert Query same time

    Sure. Shrink's an IO intensive operation.

    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: Schedule truncating of logs?

    No. Very bad idea, not the correct way to manage a log at all.

    Please take a read through this: http://www.sqlservercentral.com/articles/Administration/64582/

    Edit: There's also a stairway series on log management that goes...

    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 Server memory consumption reaching to high..

    First things first, take that agent job out. Scheduling some major performance degradation is usually not something you do to a production system.

    Is it SQL which is consuming the memory?...

    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: DBCC ShrinkDatabase + Insert Query same time

    Sure. Shrink is a fully online operation. Not something that should be run often, only under exceptional situations though.

    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: Difference in UNique Non-Clustered and Non-Clustered

    A nonclustered index that is defined as unique (CREATE UNIQUE NONCLUSTERED INDEX ...) enforces uniqueness on its key columns. A nonclustered index defined without the unique keyword doesn't.

    Not that...

    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: Why would wrapping a TSQL query in an if statement increase its runtime significantly?

    I suspect I know why, but don't have time to write an essay tonight (and that's what is required to explain it)

    The EXISTS adds a row goal of 1 into...

    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: How are you adding a semi-colon to existing SQL code when upgrading?

    Jeff Moden (3/18/2014)


    As we do necessary rework or upgrades of code, we add the semi-colons.

    This.

    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: please give answer to this Interview question

    sql4gnt (3/18/2014)


    (I'd be impressed to hear a job candidate explain to me how they setup their virtual lab and tested a successful restore of the table).

    t.b.h. if a candidate mentioned...

    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: I need to delete 20 million rows from a table...

    mike.gallamore (3/18/2014)


    Also truncate vs delete: if you think you might ever want to roll back this operation use delete, it will be sent to the transaction log so you can...

    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: Transactions

    djj (3/18/2014)


    If I do a BEGIN TRAN I need to do either a ROLLBACK TRAN or a COMMIT TRAN.

    Yes

    How do I now if there is an uncommited transaction?

    Check the value...

    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: Inserting values with SP

    I think you maybe need to go back to the drawing board, get the requirements clear and then sit down with someone there who knows SQL and go through how...

    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: SQLDUMPER_ERRORLOG and Index courrpted?

    Um...

    ananda.murugesan (3/18/2014)


    current version

    Microsoft SQL Server 2008 (SP3) - 10.0.5500.0 (Intel X86) Sep 22 2011 00:28:06

    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: SQLDUMPER_ERRORLOG and Index courrpted?

    What kind of 'impact'?

    You are going to recreate the unique constraint immediately?

    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 - 9,601 through 9,615 (of 49,552 total)