Forum Replies Created

Viewing 15 posts - 17,716 through 17,730 (of 49,552 total)

  • RE: Msg 102, Level 15, State 1, Line 2 Incorrect syntax near '‘'.

    najeeb_kt2000 (7/10/2012)


    DBCC CheckDB (‘FlexFamilyMembership’), (REPAIR_ALLOW_DATA_LOSS)

    Wait... what???

    Yo do realise that is going to cause data loss? No backups? No alternatives to throwing data away?

    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: What is the third 'file' in the database folder.

    No idea, could be anything. What is this mysterious file called?

    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: Disable Or Drop Indexes

    Wait until no one is using 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: How to recreate lost tables.

    Restore from backup.

    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 backup Internals

    You will get a database that is transactionally consistent as of the point that the backup completed.

    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 backup Internals

    Not entirely.

    What messages?

    The backup copies the data pages as it encounters them. It also copies the portion of the tran log it needs to make the restore consistent.

    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 backup Internals

    The backup started after the commands started, so as long as they finish before the backup finishes, they will be in the restored database

    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: Query to return sample from each column of the DB

    If all you're trying to do is find the top 3 by the pk, that method is not what you want to use, it's overkill. It's for when 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: Query to return sample from each column of the DB

    Post your code.

    Typically you'd use TOP (3), but I'm not sure what you're doing,so...

    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: Simple Recovery databases and large log files

    Nope. Once-off shrink to get things to a reasonable size, sure. Regular shrink, no.

    Please read through this - Managing Transaction Logs[/url]

    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: Updating a timestamp mid-procedure.

    CELKO (7/9/2012)


    SQL is a set-oriented language; everything is done on the whole set all at once and only one time per statement. You missed some fundamental concepts here and have...

    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: Blocking TempDB: (15ms)PAGELATCH_UP:tempdb:8(PFS)

    Fly Girl (7/9/2012)


    From what I've been learning in my reluctant dba-dom on this contract, tempdb files equaling the count of processors/cores is in line with best practices.

    Not really. On...

    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: Best way to implement partitioning

    Couple steps back... Why are you partitioning? What's the purpose and expected gain?

    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: Stairway to Transaction Log Management in SQL Server

    Levels 6 and 7 are sitting in my mail box, waiting to be edited.

    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: Not exists or Not In which one is better

    Unless you're dealing with nulls, no difference. If you are dealing with nulls, the behaviour is different so you need to check which one gives the correct results

    http://sqlinthewild.co.za/index.php/2010/02/18/not-exists-vs-not-in/

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