Forum Replies Created

Viewing 15 posts - 17,176 through 17,190 (of 49,552 total)

  • RE: UPDATE when the values are the same

    Sergiy (8/13/2012)


    GilaMonster (8/13/2012)


    As far as I can tell, updating a row and not actually changing the values does not mark the page as dirty, meaning it won't be written 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: sql server failed

    Check the SQL error log. The reason for the failure to startup will be in there (unless it's a login failure, those are in the windows application event 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: Does SQL recover databases sequentially, or in parallel?

    Generally it's not the controlled restarts that are the problem. 😉

    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 EXISTS DROP INDEX ... IF NOT EXISTS CREATE INDEX

    Index names are only unique per table. It's quite possible to have the same name for an index on multiple tables.

    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: Does SQL recover databases sequentially, or in parallel?

    Be careful with that assumption...

    I've had a DB that only had long-running transactions overnight. During the day it was short transactions and mostly reads. After a crash at 3pm one...

    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 reset the list of backup for a restore process?

    Restore files and filegroup doesn't sound like something you want to do. That's for piecemeal restore and partial restores, not simple database restores.

    Screenshot please? Attach it to your post.

    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 EXISTS DROP INDEX ... IF NOT EXISTS CREATE INDEX

    As for the original question...

    IF EXISTS (SELECT 1 FROM sys.indexes WHERE name = 'Index name here' AND object_id = OBJECT_ID('Table Name Here')

    DROP INDEX ....

    CREATE INDEX ...

    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 EXISTS DROP INDEX ... IF NOT EXISTS CREATE INDEX

    GSquared (8/13/2012)


    Why not simply:

    Create Index IndexName on schema.tablename (columnlist)

    with (drop_existing = on);

    Because that does not work if the index does not exist.

    Create Index doesnotexist on DBO.Test (ID)

    with (drop_existing = on);

    Msg...

    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: Avoiding Stored Procedures

    GSquared (8/13/2012)


    If all CRUD is through procs, I can completely rebuild a database, allowing for significant business-changes, without having to change the database APIs (procs) in terms of inputs or...

    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 reset the list of backup for a restore process?

    tilew-948340 (8/13/2012)


    GilaMonster (8/13/2012)


    tilew-948340 (8/13/2012)


    BTW, I reset the "database" list by doing a backup with the option "Back up to new media set and erase all existing backup sets",

    So 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: Does SQL recover databases sequentially, or in parallel?

    Why is knowing this important for disaster recovery?

    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: Does SQL recover databases sequentially, or in parallel?

    They recover in parallel. Multiple spids are spawned to recover each of the user databases. User databases will only get recovered after the system ones are recovered.

    You can see 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: How to reset the list of backup for a restore process?

    tilew-948340 (8/13/2012)


    BTW, I reset the "database" list by doing a backup with the option "Back up to new media set and erase all existing backup sets",

    So the list 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 reset the list of backup for a restore process?

    SQL 2008's the same, those instructions aren't 2012 specific

    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: Restoring error: the tail of the log for the database has not been backup up

    Before you go and set every DB to simple recovery, make sure that simple recovery is acceptable for your disaster recovery and backup strategies...

    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 - 17,176 through 17,190 (of 49,552 total)