Forum Replies Created

Viewing 15 posts - 3,706 through 3,720 (of 7,613 total)

  • RE: Rank a large table

    The best way to do this is to cluster the table on ( id, iDate ); that is, the clustered index on the table should be on those columns.  And,...

    SQL DBA,SQL Server MVP(07, 08, 09) "It's a dog-eat-dog world, and I'm wearing Milk-Bone underwear." "Norm", on "Cheers". Also from "Cheers", from "Carla": "You need to know 3 things about Tortelli men: Tortelli men draw women like flies; Tortelli men treat women like flies; Tortelli men's brains are in their flies".

  • RE: Database design to handle Millions of records

    Ed Wagner - Monday, October 23, 2017 5:44 PM

    ScottPletcher - Monday, October 23, 2017 4:19 PM

    SQL DBA,SQL Server MVP(07, 08, 09) "It's a dog-eat-dog world, and I'm wearing Milk-Bone underwear." "Norm", on "Cheers". Also from "Cheers", from "Carla": "You need to know 3 things about Tortelli men: Tortelli men draw women like flies; Tortelli men treat women like flies; Tortelli men's brains are in their flies".

  • RE: Database design to handle Millions of records

    TheSQLGuru - Monday, October 23, 2017 12:32 PM

    I've consulted on SQL Server for over 2 decades for scores of clients ranging from...

    SQL DBA,SQL Server MVP(07, 08, 09) "It's a dog-eat-dog world, and I'm wearing Milk-Bone underwear." "Norm", on "Cheers". Also from "Cheers", from "Carla": "You need to know 3 things about Tortelli men: Tortelli men draw women like flies; Tortelli men treat women like flies; Tortelli men's brains are in their flies".

  • RE: Database design to handle Millions of records

    sgmunson - Monday, October 23, 2017 8:14 AM

    ScottPletcher - Monday, October 23, 2017 8:02 AM

    SQL DBA,SQL Server MVP(07, 08, 09) "It's a dog-eat-dog world, and I'm wearing Milk-Bone underwear." "Norm", on "Cheers". Also from "Cheers", from "Carla": "You need to know 3 things about Tortelli men: Tortelli men draw women like flies; Tortelli men treat women like flies; Tortelli men's brains are in their flies".

  • RE: Database design to handle Millions of records

    sgmunson - Monday, October 23, 2017 7:56 AM

    ScottPletcher - Monday, October 23, 2017 7:43 AM

    SQL DBA,SQL Server MVP(07, 08, 09) "It's a dog-eat-dog world, and I'm wearing Milk-Bone underwear." "Norm", on "Cheers". Also from "Cheers", from "Carla": "You need to know 3 things about Tortelli men: Tortelli men draw women like flies; Tortelli men treat women like flies; Tortelli men's brains are in their flies".

  • RE: Database design to handle Millions of records

    Jeff Moden - Sunday, October 22, 2017 9:48 PM

    It always comes to that.  "and worry about performance later".  While I whole heartedly...

    SQL DBA,SQL Server MVP(07, 08, 09) "It's a dog-eat-dog world, and I'm wearing Milk-Bone underwear." "Norm", on "Cheers". Also from "Cheers", from "Carla": "You need to know 3 things about Tortelli men: Tortelli men draw women like flies; Tortelli men treat women like flies; Tortelli men's brains are in their flies".

  • RE: Bad estimates producing good plan ?

    Weird.  When a Merge Join is appropriate, it should typically be the fastest type of join.  Make sure the query actually does have good row estimates.  Also, if you rebuilt...

    SQL DBA,SQL Server MVP(07, 08, 09) "It's a dog-eat-dog world, and I'm wearing Milk-Bone underwear." "Norm", on "Cheers". Also from "Cheers", from "Carla": "You need to know 3 things about Tortelli men: Tortelli men draw women like flies; Tortelli men treat women like flies; Tortelli men's brains are in their flies".

  • RE: Can't zero pad a variable

    Luis Cazares - Friday, October 13, 2017 1:53 PM

    Avi1 - Friday, October 13, 2017 12:40 PM

    SQL DBA,SQL Server MVP(07, 08, 09) "It's a dog-eat-dog world, and I'm wearing Milk-Bone underwear." "Norm", on "Cheers". Also from "Cheers", from "Carla": "You need to know 3 things about Tortelli men: Tortelli men draw women like flies; Tortelli men treat women like flies; Tortelli men's brains are in their flies".

  • RE: Can't zero pad a variable

    I'd be inclined to just do this:


    SELECT @RunDay = CONVERT(CHAR(2), SomeDate, 1)
    FROM #TestTable;

    SQL DBA,SQL Server MVP(07, 08, 09) "It's a dog-eat-dog world, and I'm wearing Milk-Bone underwear." "Norm", on "Cheers". Also from "Cheers", from "Carla": "You need to know 3 things about Tortelli men: Tortelli men draw women like flies; Tortelli men treat women like flies; Tortelli men's brains are in their flies".

  • RE: Indexing strategy on a highly transient table

    Jeff Moden - Wednesday, October 11, 2017 10:28 PM

    ScottPletcher - Tuesday, October 10, 2017 11:46 AM

    SQL DBA,SQL Server MVP(07, 08, 09) "It's a dog-eat-dog world, and I'm wearing Milk-Bone underwear." "Norm", on "Cheers". Also from "Cheers", from "Carla": "You need to know 3 things about Tortelli men: Tortelli men draw women like flies; Tortelli men treat women like flies; Tortelli men's brains are in their flies".

  • RE: Columnstore index question

    Interesting on the smaller ones.  Probably just SQL generating a non-optimal query plan.  You can probably resolve that; worst case, you'd have to use a "hint" to force SQL to...

    SQL DBA,SQL Server MVP(07, 08, 09) "It's a dog-eat-dog world, and I'm wearing Milk-Bone underwear." "Norm", on "Cheers". Also from "Cheers", from "Carla": "You need to know 3 things about Tortelli men: Tortelli men draw women like flies; Tortelli men treat women like flies; Tortelli men's brains are in their flies".

  • RE: Indexing strategy on a highly transient table

    That makes sense, sorry about the rant.  It's just that I've seen far too many database "designs" where every table got an identity clustering key slapped on it before the...

    SQL DBA,SQL Server MVP(07, 08, 09) "It's a dog-eat-dog world, and I'm wearing Milk-Bone underwear." "Norm", on "Cheers". Also from "Cheers", from "Carla": "You need to know 3 things about Tortelli men: Tortelli men draw women like flies; Tortelli men treat women like flies; Tortelli men's brains are in their flies".

  • RE: Columnstore index question

    It would very likely help performance.  Certainly if:

    1) you created a nonclustered columnstore index that covered the query entirely.
    Or
    2) the total rows you're retrieving were not a...

    SQL DBA,SQL Server MVP(07, 08, 09) "It's a dog-eat-dog world, and I'm wearing Milk-Bone underwear." "Norm", on "Cheers". Also from "Cheers", from "Carla": "You need to know 3 things about Tortelli men: Tortelli men draw women like flies; Tortelli men treat women like flies; Tortelli men's brains are in their flies".

  • RE: Indexing strategy on a highly transient table

    TheSQLGuru - Tuesday, October 10, 2017 12:58 PM

    ScottPletcher - Tuesday, October 10, 2017 11:46 AM

    SQL DBA,SQL Server MVP(07, 08, 09) "It's a dog-eat-dog world, and I'm wearing Milk-Bone underwear." "Norm", on "Cheers". Also from "Cheers", from "Carla": "You need to know 3 things about Tortelli men: Tortelli men draw women like flies; Tortelli men treat women like flies; Tortelli men's brains are in their flies".

  • RE: Indexing strategy on a highly transient table

    giles.clapham - Thursday, October 5, 2017 10:43 AM

    Obviously I have an index on MonitoredValueInUseByID and that is the CLUSTERED INDEX.
    I have...

    SQL DBA,SQL Server MVP(07, 08, 09) "It's a dog-eat-dog world, and I'm wearing Milk-Bone underwear." "Norm", on "Cheers". Also from "Cheers", from "Carla": "You need to know 3 things about Tortelli men: Tortelli men draw women like flies; Tortelli men treat women like flies; Tortelli men's brains are in their flies".

Viewing 15 posts - 3,706 through 3,720 (of 7,613 total)