Forum Replies Created

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

  • RE: Delete Vs Truncate difference on rollback

    sqlnaive (8/27/2013)


    Great... So the correct statement should be:

    "DELETE is a logged operation while TRUNCATE is not" as the truncate just deallocates the data pages from the table and that is...

    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: Delete Vs Truncate difference on rollback

    sqlnaive (8/27/2013)


    Totally agreed Gail. I have been to so many discussions over so many sites about this particular difference between DELETE & TRUNCATE that I'm confused.

    "DELETE can be ROLLED BACK...

    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: IP Restriction Feature

    Try Books Online (the SQL help file). It has pages and pages on both.

    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: IP Restriction Feature

    Once more with feeling.

    Triggers.

    Audits.

    The functionality exists, and I've mentioned this repeatedly over a few weeks now, so I don't know why you're still puzzled.

    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: Delete Vs Truncate difference on rollback

    If the transaction has committed, you can't roll it back, no matter whether it's a delete or a truncate. Committed transaction is committed.

    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: will not using the statement terminator ';' break code in future?

    davidandrews13 (8/27/2013)


    good advice. i'll certainly get in the habit and also update Procedures as-and-when i get to them so that, come day zero, it wont be such a big problem.

    Bear...

    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: will not using the statement terminator ';' break code in future?

    Koen Verbeeck (8/27/2013)


    GilaMonster (8/27/2013)


    When they finally make it mandatory, T-SQL that's not terminated by a ; will indeed break (hence mandatory)

    What version they'll do that is however is another matter....

    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: Is simple select statement taking TEMP DB space during execution ?

    A simple select * with no joins or aggregates won't use TempDB space, there's nothing in that statement that requires temporary workspace.

    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: will not using the statement terminator ';' break code in future?

    When they finally make it mandatory, T-SQL that's not terminated by a ; will indeed break (hence mandatory)

    What version they'll do that is however is another matter.

    I would...

    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?

    L' Eomot Inversé (8/26/2013)


    Steve Jones - SSC Editor (8/26/2013)


    SQLRNNR (8/26/2013)


    GilaMonster (8/26/2013)


    33 slides for 3 hours. Should be enough.

    With that many slides you could easily stretch it into an 8hr preso...

    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: IP Restriction Feature

    Yes

    GilaMonster (8/26/2013)


    It's called triggers and audits, along with properly configured security (minimal permissions)

    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: Deadlocks trace flag

    I didn't say it's harmless, I said you are highly unlikely to be able to measure an impact.

    Now, what if you have something like Sharepoint that is known to deadlock...

    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: Deadlocks trace flag

    If you can measure any effect from that traceflag at all I'll be surprised.

    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: Track username and time of action on delete for rows

    Sean Lange (8/26/2013)


    If however you use windows authentication you might be able to use SUSER_SNAME().

    I would recommend ORIGINAL_LOGIN() instead, in case there's any impersonation occurring.

    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: Deadlocks trace flag

    I used to run a server with that traceflag on 24/7. If you have so many deadlocks that the traceflag is causing noticable load, the traceflag is not the primary...

    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 - 11,926 through 11,940 (of 49,552 total)