Forum Replies Created

Viewing 15 posts - 30,046 through 30,060 (of 49,552 total)

  • RE: Backup/Detach/Restore

    Donalith (10/11/2010)


    What about the difference between backup/restore and detach/(move files to new server)/re-attach?

    Up to you. Advantage of backup/restore is that it leaves a copy of the DB available and usable...

    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

    Donalith (10/11/2010)


    In SQL Server 2008, could I not just use the Copy Database Wizard after setting the database to single user mode to recreate it on the new server?

    You could....

    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

    No restores will break the log chain on the source database, and that's the only log chain that matters.

    What are you trying to achieve here? A read-only reporting database? A...

    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: Setting Primary key to zero

    DELETE FROM <tablename>

    or

    TRUNCATE <TableName>

    Both will remove all data from the table.

    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: Setting Primary key to zero

    Are you talking about an identity column perhaps?

    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)


    So I can restore those other databases in a continuous loop, right after they are taken, and everything will be fine?

    Huh?

    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: log file growing tremendously

    shanila_minnu (10/11/2010)


    Instead .MDF & .LDF files are backing up to tape on a daily basis.Here the principal database is in clustered environment

    That is not how you take SQL backups. File...

    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

    Turn 1204 off. It's the old deadlock detection traceflag. The info provided by 1222 (also deadlock detection and new from SQL 2005) is far more detailed and far superior

    Flag may...

    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: kill transaction v. restart server

    If you kill the process it will rollback with the rest of the database available and usable. If you restart SQL then, unless you have enterprise edition, the rollback will...

    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/11/2010)


    I think the Red Lion(?) hotel is fairly inexpensive and close by (walking distance). I think Gail has stayed there.

    I have, but it's hardly a cheap hotel....

    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: log file growing tremendously

    shanila_minnu (10/11/2010)


    I want to submit the root cause of this growing TLOG.Any sugessions

    As has been said more than once on this thread, the root cause of the growing transaction log...

    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!

    jpSQLDude (10/11/2010)


    1. I am pretty sure that when you perform a FULL backup, that never truncates the Transaction Log.

    It doesn't, however....

    In simple recovery a checkpoint truncates the log.

    A backup runs...

    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!

    By doing that you've also broken the log chain and left the system open to data loss.

    After switching to simple recovery and back to full you will not longer be...

    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: Witch query is more efficient??

    harag (10/11/2010)


    Now if it was an AND clause then maybe it might make a difference, especially if you have indexed the ID column but not the title column.

    If you...

    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 to truncate log file in SQL Server 2005

    shri.rapala (10/11/2010)


    Use databasename

    backup log database with truncate_only

    dbcc shrinkfile(logfilename) -----> sp_helpdb dbname

    No, no, no!

    Absolutely terrible advice to be giving, especially without any mention of what those command do.

    Please read...

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