Forum Replies Created

Viewing 15 posts - 12,811 through 12,825 (of 49,552 total)

  • RE: Learn pivot but got an error

    The two links in his signature:

    Cross Tabs and Pivots, Part 1 – Converting Rows to Columns

    Cross Tabs and Pivots, Part 2 - Dynamic Cross Tabs

    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: Ideas on a backup that "fails" but Verify says it is good

    Ellen-477471 (6/11/2013)


    I am interested to see if there are known bugs in the statements used to verify and identify backup files.

    No bugs. But what verify does is not what most...

    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: Ideas on a backup that "fails" but Verify says it is good

    Ellen-477471 (6/11/2013)


    Lately on some of our backups the job will return a message that the backup failed but when I check to rerun the job there will exist a 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: SQL Server differential backup file size smaller than previous one?

    sani (6/11/2013)


    Now I want to know does the deletion consequent to have smaller differential backup size?

    It can do, depending on what's deleted and how much. Backups only back up allocated...

    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 differential backup file size smaller than previous one?

    HanShi (6/11/2013)


    GilaMonster (6/11/2013)


    Someone took an ad-hoc full backup?

    You can check this by restoring the header of the backups and look at (the sequence of) the LSN numbers.

    Or, much easier, query...

    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 find all indexes where page level locking is disabled

    Use something like Ola's index maintenance. Much better than the maint plan, rebuilds just what needs rebuilding and I think can handle the disabled page locks.

    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 differential backup file size smaller than previous one?

    Someone took an ad-hoc full backup?

    Lots of data was deleted?

    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 Scan vs Index Seek

    domalti (6/11/2013)


    This blog http://www.crazyfrog.me/2013/06/index-seek-vs-scan-microsoft-sql-2008.html has detailed explanation of Index seek and scan.

    Not sure I'd call a bunch of pictures with no descriptions or explanations 'detailed', but that's just me.

    p.s. 6...

    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: which type of value should be given to timestamp datatype

    The TIMESTAMP data type is a binary value and you don't specify a value when inserting, SQL will generate one. The data type is more correctly called the ROWVERSION

    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: Will shrinking the DB improve time taken by index rebuild process ?

    No. Increase it if anything as the data file will have to regrow.

    Regular shrinks of the database file should not be done.

    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: sp_executesql -- can produce very wrong execution plan

    UncleBoris (6/10/2013)


    In my case I am still unsure why an entirely new plan was created, rather than just use the original less than optimal plan for the increased result set.

    As...

    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 a backup cause TempDB to grow

    Ddono25 (6/10/2013)


    I realized I have no idea what that option is actually doing. Any information on that option is appreciated.

    Virtually nothing other than adding a false sense of security. 🙂

    It's...

    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: sp_executesql -- can produce very wrong execution plan

    UncleBoris (6/10/2013)


    Sorry, I will have a read of your links in case you have the answers already listed.

    They are.

    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: Date and Time when Table last queried

    J Good (6/10/2013)


    however, this DMV is reset when SQL is restarted, so be aware of that.

    When the database is closed. Hence when the SQL server service stops or any other...

    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 a backup cause TempDB to grow

    Does your backup process do a database consistency check prior to taking the 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

Viewing 15 posts - 12,811 through 12,825 (of 49,552 total)