Forum Replies Created

Viewing 15 posts - 1,501 through 1,515 (of 49,552 total)

  • RE: expensive key lookup

    Your options are:
    - Create a covering index
    - Live with the key lookup
    - Change the query to not select columns it doesn't need, and then add a covering...

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

    Hugo Kornelis - Monday, April 24, 2017 2:39 AM

    In the article on SELECT 1 or SELECT * (http://www.sqlservercentral.com/articles/T-SQL/154149/), when I click...

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

    User "maomfamao" is posting what looks like it could be malicious links all over the forums. I've flagged a couple of posts, but...

    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: Need help on SQL SERVER WARNING.!

    Jeff Moden - Saturday, April 22, 2017 11:31 AM

    WHY? Why does the OP want to change this column from what...

    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 Query assistance

    pietlinden - Friday, April 21, 2017 9:50 PM

    first you'd have to post the definitions of views 1, 2, and 3.

    Also please post...

    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: creating new partition files on table

    Apologies, the day got away from me.

    Ok, so everything less than 2016-03-31 is in the correct partition.
    Some of this I know you've already done, it's here 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: How does a integer/any data record store in SQL Server page

    Sounds about right. Those two "2 Bytes for Fixed length" and "2 Bytes for all columns" are storing information about the offsets within the data portion for the fixed length...

    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: Window Functions for Row Number

    Neil Burton - Friday, April 21, 2017 2:17 AM

    You're right in what you say Igor but if you look very carefully...

    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: Window Functions for Row Number

    Igor Micev - Friday, April 21, 2017 1:59 AM

    Stewart "Arturius" Campbell - Thursday, April 20, 2017 11:10...

    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: owner of db file

    I like setting them to sa. The login can never be removed, and you can't accidentally grant higher permissions to it, since sa is sysadmin.

    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 does a integer/any data record store in SQL Server page

    Rows have headers as well. Dump type 3 on DBCC Page will shred the row as well, so you can see what's there.

    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: Why Page Number in SQL Server database is not starting from zero

    While it may be a new database, the system tables were there before you created the user table, hence the first couple hundred pages are already 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: ORALCE TO SQL SERVER MIGRATION Query performance Tuning

    sreesree.96 - Thursday, April 20, 2017 2:58 PM

    And i big thank you for helping me out.!

    Actual execution plan? Table and index definitions?

    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: ORALCE TO SQL SERVER MIGRATION Query performance Tuning

    Table definitions and index definitions?

    And an actual execution plan would be much more useful. Run the query with the 'include actual execution plan' option turned on (button 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: how to update gender = M or F in a table that has gender values as null

    Kaye Cahs - Thursday, April 20, 2017 1:55 PM

    However, if you're simply trying to mock up some test data, this is a...

    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,501 through 1,515 (of 49,552 total)