Forum Replies Created

Viewing 15 posts - 4,081 through 4,095 (of 8,753 total)

  • RE: Longest Common Substring in an ITVF

    ChrisM@Work (1/5/2016)


    Hi Alan, nice job 🙂

    Here's a completely different take on the problem, loosely based on some fuzzy matching stuff I've worked on over the years. It looks promising and...

  • RE: Longest Common Substring in an ITVF

    Hi Alan and thank you for sharing this problem and this very fine post, good job indeed. I've been swamped with work but will have a go at it as...

  • RE: SYNTAX help on getting the STORED PROC Definition

    Piling on, here is the short disco version

    😎

    SELECT OBJECT_DEFINITION(OBJECT_ID(N'[schema_name].[object_name]'));

  • RE: Datetime vs. Datetime2

    Thank you Robert for this excellent piece, good job and a very good reference indeed.

    😎

    The greatest disadvantages I find with the DATETIME2 data type are firstly the default precicion of...

  • RE: Crosstab query NOT using pivot

    Jeff Moden (1/4/2016)


    Eirikur Eiriksson (1/4/2016)


    Jeff Moden (1/4/2016)


    Eirikur Eiriksson (1/4/2016)


    Further on Jeff's correction, the ClientID in the sample data is different from the one hard coded in the procedure, change these...

  • RE: Crosstab query NOT using pivot

    Jeff Moden (1/4/2016)


    Eirikur Eiriksson (1/4/2016)


    Further on Jeff's correction, the ClientID in the sample data is different from the one hard coded in the procedure, change these two things and you...

  • RE: Crosstab query NOT using pivot

    Further on Jeff's correction, the ClientID in the sample data is different from the one hard coded in the procedure, change these two things and you will get back two...

  • RE: table

    PJ_SQL (1/4/2016)


    What does this mean?

    CREATE TABLE [dbo].[A](

    [TimestampCreate] [dbo].[TimestampCreate] NOT NULL

    )

    dbo.timestampcreate mean?

    Are you using MySQL/MariaDB? This is an enumeration/identity column on those rdbms

    😎

  • RE: It's the end of the year

    For fun and completion, comparison of the previously posted "short" methods

    😎

    Test harness

    USE tempdb;

    GO

    SET NOCOUNT ON;

    DECLARE @SAMPLE_SIZE INT = 2000000;

    --/*

    IF OBJECT_ID(N'dbo.TBL_METHOD_TEST' ) IS NOT...

  • RE: It's the end of the year

    Alvin Ramard (1/4/2016)


    Eirikur Eiriksson (1/4/2016)


    Alvin Ramard (1/4/2016)


    Eirikur Eiriksson (1/4/2016)


    Jeff Moden (1/4/2016)


    Lynn Pettis (1/4/2016)


    Good question. Just one minor thing, I'd use the following the end of the calendar year:

    SELECT DATEADD(DAY,...

  • RE: Replicating data from 2014 to 2005 - temporarily

    That makes things somewhat easier, how complex are the schemas and what is the cardinality?

    😎

  • RE: It's the end of the year

    Alvin Ramard (1/4/2016)


    Eirikur Eiriksson (1/4/2016)


    Jeff Moden (1/4/2016)


    Lynn Pettis (1/4/2016)


    Good question. Just one minor thing, I'd use the following the end of the calendar year:

    SELECT DATEADD(DAY, -1, DATEADD(YEAR, DATEDIFF(YEAR, 0,...

  • RE: It's the end of the year

    Jeff Moden (1/4/2016)


    Lynn Pettis (1/4/2016)


    Good question. Just one minor thing, I'd use the following the end of the calendar year:

    SELECT DATEADD(DAY, -1, DATEADD(YEAR, DATEDIFF(YEAR, 0, GETDATE()) + 1, 0));

    With...

  • RE: It's the end of the year

    Lynn Pettis (1/4/2016)


    Good question. Just one minor thing, I'd use the following the end of the calendar year:

    SELECT DATEADD(DAY, -1, DATEADD(YEAR, DATEDIFF(YEAR, 0, GETDATE()) + 1, 0));

    Slow / lazy...

  • RE: Replicating data from 2014 to 2005 - temporarily

    Quick question, what is the recovery window's size, that is how much time can you spend on reverting?

    😎

Viewing 15 posts - 4,081 through 4,095 (of 8,753 total)