Forum Replies Created

Viewing 15 posts - 3,931 through 3,945 (of 8,753 total)

  • RE: What is recursion?

    As I see it Recursion in T-SQL is like paying taxes, something we would all like to avoid but some(read most)times that's not possible.

    😎

  • RE: How to Group By Dates

    Phil Parkin (1/20/2016)


    Asterix.

    Asterisk.

    πŸ˜€

    ROFL (and disabling auto correction)

    😎

    BTW counting RenΓ© Goscinny/Albert Uderzo's Asterix will also work.

  • RE: Are the posted questions getting worse?

    Steve Jones - SSC Editor (1/20/2016)


    This is, potentially, the longest thread on the Internet. I'm not sure I've seen anything continue this long, for this length. We were, by far,...

  • RE: Find Latest Date from Multiple Columns

    Jacob Wilkins (1/20/2016)


    Having said that, it looks like using ISNULL with an appropriate minimum value instead of the OR IS NULL brings the performance of the CASE back in line...

  • RE: Find Latest Date from Multiple Columns

    Jacob Wilkins (1/20/2016)


    I agree that using ISNULL would make it read a bit better. My main concern with that was general applicability, particularly, what do you replace NULLs with that...

  • RE: Find Latest Date from Multiple Columns

    Jacob Wilkins (1/20/2016)


    Eirikur Eiriksson (1/19/2016)


    Jacob Wilkins (1/19/2016)


    Throwing in the CASE using Eirikur's wonderful setup yielded this on one million rows on my machine (tangentially, I'm embarrassed that Eirikur's laptop is...

  • RE: Find Latest Date from Multiple Columns

    below86 (1/20/2016)


    Eirikur Eiriksson (1/20/2016)


    below86 (1/20/2016)


    Just a simple way I would try and get this:

    CREATE TABLE #datetest

    (

    id varchar(8),

    L1 date,

    L2 date,

    L3 date

    );

    INSERT INTO #datetest (id, L1, L2, L3)...

  • RE: Find Latest Date from Multiple Columns

    below86 (1/20/2016)


    Just a simple way I would try and get this:

    CREATE TABLE #datetest

    (

    id varchar(8),

    L1 date,

    L2 date,

    L3 date

    );

    INSERT INTO #datetest (id, L1, L2, L3)

    VALUES ('1005', '1-1-16',...

  • RE: How to Group By Dates

    Quick thought, hard to get this wrong as one can almost count anything

    😎

    USE tempdb;

    GO

    SET NOCOUNT ON;

    --http://www.sqlservercentral.com/Forums/Topic1753771-3411-1.aspx

    DECLARE @SAMPLE_SIZE INT = 100;

    DECLARE @BASE_DATE DATE...

  • RE: Error Handling - Pass Error as variable

    ringovski (1/20/2016)


    There not duplicate until I run the update and remove the double quotes in the column.

    If the true value is repeated, regardless of what extra characters are in the...

  • RE: Can DBCC FREEPROCCACHE not work properly at certain times?

    rarara (1/20/2016)


    Snapshot creation which is used to populate an MI database. This snapshot is then dropped after the export completes.

    Maxdop is changed as the performance of the MI population...

  • RE: Error Handling - Pass Error as variable

    Quick question, how are you going to handle the duplicate values?

    😎

    The easiest solution is to dedupe the set before the update.

  • RE: Checking the bitwise value of an integer

    aaron.reese (1/19/2016)


    @jacob and @jeff

    SSRS is not my natural home πŸ˜€ so I was not aware that IIF(x AND y) is a bitwise operation. Maybe I wasn't asking google the...

  • RE: what will happen?

    Rodan (1/19/2016)


    So if Trump is elected in the US – do you think we have to worry about him putting up fences around our foreign keys? :w00t:

    Don't think that would...

  • RE: what will happen?

    Jeff Moden (1/19/2016)


    Rodan (1/19/2016)


    So if Trump is elected in the US – do you think we have to worry about him putting up fences around our foreign keys? :w00t:

    Heh... every...

Viewing 15 posts - 3,931 through 3,945 (of 8,753 total)