Forum Replies Created

Viewing 15 posts - 30,031 through 30,045 (of 49,552 total)

  • RE: Doing a FULL backup causes my Transaction Log to grow to 10GB!

    Michael Valentine Jones (10/12/2010)


    You go through this whole series of explanations every day with new people, even debunking the inevitable “truncate the log and shrink the database” suggestion.

    Yeah, I really...

    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?

    After a meeting this morning there are several things that I would love to rant about at length. However it might get ugly. Hence I will restrain myself to three...

    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 there any easy way to find out how many times a function is called in a procedure

    Run a server-side trace

    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: Differential Backup

    jamesmario (10/12/2010)


    Any backup & restore script for both Full DB backup & Diff backup?

    Have you looked in Books Online? (The SQL manual)

    Can i restore Diff. db backup on 8pm Full...

    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: Scope of @@rowcount

    Lowell (10/12/2010)


    GilaMonster (10/12/2010)


    It's more general than that. It's just about every statement.

    SELECT * FROM master.sys.objects -- 74 rows

    IF (1=1)

    SELECT @@ROWCOUNT AS RowsAffected -- 0, because the IF did not...

    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: Scope of @@rowcount

    Lowell (10/12/2010)


    every insert/update/select/set/delete statement resets the @@rowcount to the rows affected by the executed statement

    It's more general than that. It's just about every statement.

    SELECT * FROM master.sys.objects -- 74...

    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?

    Paul White NZ (10/12/2010)


    GilaMonster (10/11/2010)


    This site was somewhere between terrifying and hilarious - http://www.allinterview.com/showanswers/65496.html

    Terrifying. Maybe I will experience some of the humour later, but for now, I'm just plain...

    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: Doing a FULL backup causes my Transaction Log to grow to 10GB!

    pietlinden (10/11/2010)


    ...but never any really good explanation of WHEN or WHY. I would find a little bit on the when and why really helpful...

    There's a running joke 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: Are the posted questions getting worse?

    CirquedeSQLeil (10/11/2010)


    I found some interesting articles on the internet that perpetuated the myth too. I didn't reference them in the TSQL2sday post, but there is bad info out there....

    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: Differential Backup

    jamesmario (10/11/2010)


    My concern is, how to reply on the diff backup.

    Reply?

    Has anyone experienced any data loss in this approch?

    Diff backups contain all data that changed between the time of the...

    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: Doing a FULL backup causes my Transaction Log to grow to 10GB!

    pietlinden (10/11/2010)


    When, if ever, should you truncate the log file?

    Generally, never.

    If there has been poor (no) management of the log before, or log backups have been failing for days...

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

    chrisn-585491 (10/11/2010)


    Now that I'm engaged, I get treated better. (WTF?!) :angry:

    Some 8 years ago I got put high on the company's retrenchment list (they'd hit financial difficulties) because I was...

    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: Disk Configuration

    Partitioning a disk into multiple logical drives is pointless for SQL. You may as well leave it as one large drive and put everything on it.

    Multiple disks gives you multiple...

    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: Full, Diff, and Log Backups

    AndrewSQLDBA (10/11/2010)


    I want to restore the Full from the primary box to the secondary box once a week

    You only need to do this once. Restore with standby if you want...

    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: Backup/Detach/Restore

    Make sure you have a backup first. Just in case.

    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 - 30,031 through 30,045 (of 49,552 total)