Forum Replies Created

Viewing 15 posts - 3,361 through 3,375 (of 7,615 total)

  • RE: Filegroups on different physical drives

    rash3554 - Thursday, May 31, 2018 11:48 AM

    But , would more drives on a single physical drive  versus different physical drive 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".

  • RE: YTD running balance including missing months

    Jeff Moden - Thursday, May 31, 2018 11:44 AM

    jcelko212 32090 - Thursday, May 31, 2018 11:17 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: GUIDs as clustered index

    Jeff Moden - Thursday, May 31, 2018 11:29 AM

    In that case, I guess I'd need to know what your definition of...

    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: Filegroups on different physical drives

    Not at all.  Usually dbs perform better with more drives (more spindles really).

    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: GUIDs as clustered index

    Jeff Moden - Thursday, May 31, 2018 9:33 AM

    ScottPletcher - Thursday, May 31, 2018 9:18 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: GUIDs as clustered index

    Jeff Moden - Thursday, May 31, 2018 8:32 AM

    Sergiy - Wednesday, May 30, 2018 6:48 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: Is there anything like a virtual Coulumn - pointing to another table

    You don't need to move it to another table to get it out of the main data area.  Just tell SQL to force all max column(s) out of row (this...

    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: Compress directory where data and log files are

    Not for data, that should be OK.

    I'd say do not compress log files using Windows or anything external to SQL Server.

    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: Aggregate Performance Question

    Use method two.  You could also use a view or a cte to define the SUMs to use in other calcs.

    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: GUIDs as clustered index

    Best would be to use a bigint SEQUENCE object and get rid of the guids completely.  The app can still pre-set the values as it did for guids, which was...

    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: by what size will nvarchar(max) column get stored in LOB_DATA allocation unit?

    by what size will nvarchar(max) column get stored in LOB_DATA allocation unit?

    When SQL decides it's necessary to fit the row into the page.  There's no way 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: Group by not working as desired...

    Yep, that's not gonna work, SQL needs the sort column in the data.  Here's one workaround:

    SELECT MONTH, Attendance
    FROM (
      SELECT
      DATENAME (MONTH, [Date]) AS...

    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: Hopefully an intriguing 'Update' question, for a data cleanse

    A) Yeah ... I've worked with date shifting a lot 🙂
    C) Yes, we strive for performance here quite a bit.  The "DATEADD" technique is only math, not text, so...

    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: Hopefully an intriguing 'Update' question, for a data cleanse

    Don't have any usable test data, but this should be close at least.  [Btw, overlaying the day name was trivial, so I didn't include that.]


    UPDATE...

    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: A better way than multiple subqueries?

    Typically the best way to get great response time for such queries is to cluster the lookup table on the lookup keys.
    Unfortunately, when the primary lookup key is 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".

Viewing 15 posts - 3,361 through 3,375 (of 7,615 total)