Forum Replies Created

Viewing 15 posts - 18,391 through 18,405 (of 49,552 total)

  • RE: Do we need separate drive for Page file for SQL Server 2008 R2?

    The reason being that a properly tuned SQL Server should never be using the page file at all, so unless there are other things on the server that might page...

    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 function for Lowest value?

    Ident_current doesn't give you the max value in the table, it just gives you the current identity seed. That can be way different from the maximum value in the identity...

    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: CHECKDB found 0 allocation errors and 772 consistency errors in database - How serious is this?

    If you run checkDB with repair you will lose data from the following tables

    'AllJobTitles'

    'AllDocuments'

    'EmailAddressVIADB'

    This data loss cannot be avoided unless you can find and restore a clean...

    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: CHECKDB found 0 allocation errors and 772 consistency errors in database - How serious is this?

    Backups aren't integrity checks. http://sqlskills.com/BLOGS/PAUL/post/A-SQL-Server-DBA-myth-a-day-%282730%29-use-BACKUP-WITH-CHECKSUM-to-replace-DBCC-CHECKDB.aspx

    Still need the output I asked for...

    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: Clustered Indexes

    Jeffrey Williams 3188 (5/28/2012)


    Do you know when ALTER TABLE ... REBUILD was introduced? I thought it was 2008 but may have been 2008 R2. I believe that can...

    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: Clustered Indexes

    All tables should have a clustered index unless you know better (and I don't mean having read something) Been that way since SQL 7.

    For frequent inserts, make sure the clustered...

    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: CHECKDB found 0 allocation errors and 772 consistency errors in database - How serious is this?

    Please run the following and post the full and complete output.

    DBCC CHECKDB (<Database Name>) WITH NO_INFOMSGS, ALL_ERRORMSGS

    If you don't have a clean backup, fixing this will require losing data, 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: Reuse view?

    Please, please don't trust those index suggestions. They're made on the basis of a single query and if you follow them blindly without testing or considering the rest 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: Reuse view?

    pdanes (5/28/2012)


    For instance, to tweak your example a little, suppose I coded it this way:SELECT a,b FROM (SELECT a,b,c,d FROM MyTable) AS MyView WHERE C > 10

    Will SQL Server 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: Reuse view?

    Sorry, need to set something straight...

    Indexed views can have performance benefits. Normal views cannot.

    They can make queries easier to read, easier to write, but they cannot improve performance because...

    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: Reuse view?

    The term you're looking for is 'materialise'

    SQL doesn't materialise views when running queries. Views don't have execution plans and are never executed alone. As part of the early parsing phase,...

    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: Clustered Indexes

    Correct. All an index (clustered or otherwise) guarantees it the logical order of the rows and pages.

    If a clustered index did guarantee the physical order then there would never 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: Reuse view?

    pdanes (5/28/2012)


    If I make a special view for each join, listing only the fields needed in that particular case, I will have no excess ballast, but SQL Server will 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: Recover the log file in SQL Server 2005

    No backups? Seriously? Well can't have been a very important database then.

    http://sqlinthewild.co.za/index.php/2009/06/09/deleting-the-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: Who is changing the record... ??

    Trigger or SQLTrace are about the only options on SQL 2005.

    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 - 18,391 through 18,405 (of 49,552 total)