Forum Replies Created

Viewing 15 posts - 3,871 through 3,885 (of 7,619 total)

  • RE: Performance of clustered index and clustered primary key

    N_Muller - Thursday, March 30, 2017 12:39 PM

    Again on data compression - eventually the data will have to be archived in 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: Performance of clustered index and clustered primary key

    N_Muller - Thursday, March 30, 2017 12:25 PM

    Thanks for the response.  Good point about data compression, I didn't think about that. Compression will...

    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: Need SQL Training Recommendations

    I'll do some checks for admin classes for you also.  But go ahead and get the book first.  You'll get more out of a good class that way, as you'll...

    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: Performance of clustered index and clustered primary key

    You don't need a PK per se, but you should definitely create a clustered index headed by DateInsertTime.  I think in this case you'll also need an IDENTITY column 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: fill factor with clustered PK on identity PLUS another column

    I've taken a preliminary look.  Impressive table size, 3+TB!  I'll definitely have some suggestions for possible mods to indexes.  I don't know if you be able to / want 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: Need SQL Training Recommendations

    1) Get a good book on SQL Server Administration.  I've found that those including Brian Knight or Kalen Delaney are reliable.  If you read it and study it, the book...

    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: fill factor with clustered PK on identity PLUS another column

    Indianrock - Wednesday, March 29, 2017 5:33 PM

    ok, can some of this be commented out?

    MAX(ds.ItemNumber) AS Equality#
      FROM #index_missing
      CROSS...

    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: fill factor with clustered PK on identity PLUS another column

    A few critical tables would be a good start, particularly large child tables that are currently clustered on an identity column.

    Edit: Be sure to include any "missing index"...

    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: fill factor with clustered PK on identity PLUS another column

    Indianrock - Wednesday, March 29, 2017 1:59 PM

    This change didn't remove the error       I see there are two indexes...

    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: fill factor with clustered PK on identity PLUS another column

    DesNorton - Wednesday, March 29, 2017 1:36 PM

    ScottPletcher - Wednesday, March 29, 2017 11:40 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: Last period calculation using existing variable


    DECLARE @Begin_Period int;
    DECLARE @Last_Period int;

    SET @Begin_Period = 201712;
    SET @Last_Period = CASE WHEN @Begin_Period % 100 < 12 THEN @Begin_Period + 1 ELSE @Begin_Period...

    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: fill factor with clustered PK on identity PLUS another column

    Indianrock - Wednesday, March 29, 2017 11:12 AM

    I'm looking for the problem.  Changing the 3 declared variables from smallint to int didn't...

    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: fill factor with clustered PK on identity PLUS another column

    Ed Wagner - Wednesday, March 29, 2017 6:11 AM

    If your CI has the ClientID as the first key column and values for...

    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: fill factor with clustered PK on identity PLUS another column

    The code below will produce two result sets.  The first is missing index stats/info.  The second is existing index stats/info.  We combine the two -- and often other needed...

    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: trigger that fires on updates NOT from application

    SQLRNNR - Wednesday, March 29, 2017 1:25 AM

    ScottPletcher - Tuesday, March 28, 2017 12:31 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".

Viewing 15 posts - 3,871 through 3,885 (of 7,619 total)