Forum Replies Created

Viewing 15 posts - 1 through 15 (of 49,571 total)

  • Reply To: The Scientific Method: a call to action

    RonKyle wrote:

    Gail, you hypothesized “You should use integers for the key rather than strings. The joins will be faster.”

    If you read the blog post, the hypothesis was "integers are easier...

    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
  • Reply To: The Scientific Method: a call to action

    RonKyle wrote:

    she then concludes that these results should all but put the nail in the coffin on integers vs naturals keys.  This is NOT a valid conclusion to draw....

    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
  • Reply To: Are the posted questions getting worse?

    Grant Fritchey wrote:

    Gail Shaw wrote:

    Steve Jones - SSC Editor wrote:

    Well, with the new leaderboard (https://qa.sqlservercentral.com/contributors), we have our first millionaire.

    Yay. Um, so what are those points redeemable for again? 🙂

    Everlasting Glory!

     

    I hope not...

    • This reply was modified 5 years, 6 months ago by  Gail Shaw.

    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
  • Reply To: MDF is not primary database file error

    Probably a damaged database file. It's one of the things that can go wrong when you detach a corrupt 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
  • Reply To: Are the posted questions getting worse?

    Steve Jones - SSC Editor wrote:

    Well, with the new leaderboard (https://qa.sqlservercentral.com/contributors), we have our first millionaire.

     

    Yay.

    Um, so what are those points redeemable for again? 🙂

    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
  • Reply To: Question on primary keys and index with included columns

    No, with the exception that the primary key is unique and your other index is not.

    Other than that, they'll work identically.

    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
  • Reply To: Simple Index Question

    ScottPletcher wrote:

    Not necessarily true. Indexes can also allow SQL to avoid a sort (and sorts are expensive operations).

    Which is completely irrelevant, as neither of the queries given in the OP...

    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
  • Reply To: Simple Index Question

    Run 1, because the index is useless. Indexes are for reducing the rows read, they have no value at all when you don't have a where clause filtering the rows.

    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
  • Reply To: Data from dm_db_index_physical_stats & dm_db_index_usage_stats & dm_db_index_ope

    Physical stats returns data about the physical layout of the index in the file, but the other two are memory-only and hence not included in a backup and cleared when...

    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
  • Reply To: Max Memory per CORE on 64-bit W/Server 2016 Standard and SQL 2017 Enterprise

    Can't help you with the memory, but disabling the cores in the BIOS is not apparently sufficient to reduce licensing. Create a VM and license that, or remove cores (physically).

    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
  • Reply To: Look at ROWCOUNT and ERROR just after update?

    Or use TRY-CATCH for error handling.

    No need to check @@Error, no need for SET @ErrMsg = OBJECT_NAME(@@procid) (use ERROR_PROCEDURE()), no need for GOTOs

    BEGIN TRY

    INSERT Whatever ...

    ....

    END TRY

    BEGIN CATCH

    SELECT ERROR_NUMBER(), ERROR_MESSAGE(),...

    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
  • Reply To: db owner best practice

    I like using sa as the database owner. Since sa already has all permissions, you can't accidentally give extra permissions by doing so. It's not escalating any privileges, it's 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: Performance Issue with Simple Query /Big Tables

    Indexes aren't going to help here, because the server is not having any problems.

    System.OutOfMemoryException is a .net error. The client tool that you're running this query from is...

    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: Database refresh from Production DB to Test DB in Sql server 2014

    Logins, no. Permissions, yes, so that you can apply that script after doing the refresh.

    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: Database refresh from Production DB to Test DB in Sql server 2014

    poratips - Thursday, January 17, 2019 8:23 PM

    If i generate Login script from Production before refresh and run into TEST after...

    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 - 1 through 15 (of 49,571 total)