Forum Replies Created

Viewing 15 posts - 19,951 through 19,965 (of 49,552 total)

  • RE: AlwaysOn Database Mirroring

    How do you recover a failed database mirroring secondary? AlwaysOn will be (mostly) the same.

    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 an old .ldf file

    Ask around, make sure no one wants the database, maybe attach them and take a backup of the database (and put it somewhere safe) before you delete the files.

    Don't...

    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: AlwaysOn Database Mirroring

    benjamin.reyes (3/2/2012)


    Would this allow statistics to be generated on the secondary?

    Yes, temporary stats in TempDB. Search for AlwaysOn Statistics

    Can the secondary have indexes that the primary does...

    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 an old .ldf file

    I would personally just rename it for a little while (make sure it's not used for something siily). Is there a matching mdf anywhere?

    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 user marked red

    Screenshot?

    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 an old .ldf file

    If it belongs to a database that was detached, the ownership could be solely to the SQL Server process. See if you can take ownership, if you can, see if...

    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: Script to get full deadlock info

    On 2008 what I would recommend is turning both traceflags off and looking into the system health event session instead.

    http://sqlskills.com/BLOGS/PAUL/post/Getting-historical-deadlock-info-using-extended-events.aspx

    If you wish to stay with traceflags, turn 1204 off. 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: Script to get full deadlock info

    Not all of that is included in the output of traceflag 1222, the initial blocking statement is not, so you have to check back through procedures (names are listed) to...

    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: EXEC sp_helpindex on non-dbo schema

    EXEC sp_helpindex 'schemaname.objectname'

    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: Recommendations for T-SQL Book?

    T-SQL Fundamentals by Itzik Ben-Gan

    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: Index seek possible or not

    It could make use of the index, but it would be a scan not a seek.

    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: Merge not working in Try block

    Could you post your code perhaps (or a repo that shows the same behaviour), along with table designs and maybe sample data?

    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: Merge not working in Try block

    Please define 'not work'? Throws an error? Gives incorrect results? Converts the server into a washing machine?

    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: Dividing a list of filenames into roughly equal batch sizes in KB

    Just for the record, this is a form of the 'Bin Packing problem', it's a classic AI and optimisation problem and it's NP-hard in the general case.

    http://en.wikipedia.org/wiki/Bin_packing

    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 allocation error and consistency error ?

    You absolutely have to do consistency checks of any database, no matter how big. If you don't, you'll never know when something happens to corrupt some pages.

    http://sqlskills.com/BLOGS/PAUL/post/CHECKDB-From-Every-Angle-Consistency-Checking-Options-for-a-VLDB.aspx

    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 - 19,951 through 19,965 (of 49,552 total)