Forum Replies Created

Viewing 15 posts - 3,121 through 3,135 (of 7,613 total)

  • RE: Understanding the numeric and decimal data types

    Jonathan AC Roberts - Tuesday, October 9, 2018 10:32 AM

    ScottPletcher - Tuesday, October 9, 2018 10:19 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: Understanding the numeric and decimal data types

    Jonathan AC Roberts - Tuesday, October 9, 2018 10:14 AM

    ScottPletcher - Tuesday, October 9, 2018 9:50 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: Understanding the numeric and decimal data types

    Jonathan AC Roberts - Tuesday, October 9, 2018 9:38 AM

    ScottPletcher - Tuesday, October 9, 2018 9:27 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: Understanding the numeric and decimal data types

    michael.leach2015 - Monday, October 8, 2018 9:43 PM

    Jonathan AC Roberts - Monday, October 8, 2018 7:58 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: Algorithm to combine 2 integer into one value and then disintegrate back into two

    Jeff Moden - Monday, October 8, 2018 8:36 PM

    _rohit_ - Monday, October 8, 2018 5:11 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: SQL Query to split values

    If you want to limit the delimiters to strictly:dot, comma, underscore and space, in the code below, change:
    PATINDEX('%[^A-Z0-9]%'
    to
    PATINDEX('%[.,_ ]%'


    SELECT
        CASE...

    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: Algorithm to combine 2 integer into one value and then disintegrate back into two

    Jonathan AC Roberts - Saturday, October 6, 2018 4:12 AM

    _rohit_ - Wednesday, October 3, 2018 8:27 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: Understanding the numeric and decimal data types

    Yes, they are the same in SQL Server.

    SQL chose not to treat extra decimal positions as en error, instead it implicitly rounds to the stored scale.  I assume...

    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: sp_RefreshSQLModule run on a view completely changed the view definition

    Fwiw, I usually stick to sp_refreshview for views, and only use the broader module proc when I need 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: Algorithm to combine 2 integer into one value and then disintegrate back into two

    frederico_fonseca - Friday, October 5, 2018 11:12 AM

    ScottPletcher - Friday, October 5, 2018 11:01 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: Algorithm to combine 2 integer into one value and then disintegrate back into two

    frederico_fonseca - Friday, October 5, 2018 10:11 AM

    ScottPletcher - Friday, October 5, 2018 9:50 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: Algorithm to combine 2 integer into one value and then disintegrate back into two

    frederico_fonseca - Thursday, October 4, 2018 5:35 PM

    as a alternative method 

    constraints
    - PERIODYTD date is always greater or equal to PERIOD
    - difference between 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: Algorithm to combine 2 integer into one value and then disintegrate back into two

    Yes, you can combine them into one integer and get them back.  The int value will most likely be negative, I don't know if that matters for you.

    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: Foreign Keys and deadlock

    If you (almost) always look up on tableB by the MName, then cluster the table on that.  That would prevent a full scan of the table from happening every time...

    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: finding duplicates users

    osxman - Wednesday, October 3, 2018 4:53 PM

    ScottPletcher - Wednesday, October 3, 2018 3:15 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,121 through 3,135 (of 7,613 total)