Forum Replies Created

Viewing 15 posts - 3,871 through 3,885 (of 8,753 total)

  • RE: Flag Values Based on Columns

    Jeff Moden (1/26/2016)


    I'd take some heart in what was said as mean as it sounded. We have quick posts that don't survive the future and people saying they solved...

  • RE: Flag Values Based on Columns

    Quick suggestion, requires SQL Server 2012 or later

    😎

    USE tempdb;

    GO

    SET NOCOUNT ON;

    IF OBJECT_ID(N'dbo.SampleTable') IS NOT NULL DROP TABLE dbo.SampleTable;

    CREATE TABLE [dbo].[SampleTable](

    [ID] [int] IDENTITY(1,1) NOT NULL,

    [Measure1] [float] NULL,

    [Measure2] [float] NULL,

    )

    --Sample Data:

    INSERT...

  • RE: HP Superdome 2 Server

    Microsoft ended the support for the Itanium architecture back in 2010, last versions supported were 2008R2 Windows Server and 2008R2 SQL Server. Superdome X uses the newer Xeon processors, totally...

  • RE: HP Superdome 2 Server

    cheshirefox (1/25/2016)


    Hi -

    I'm beginning the process of planning a physical server migration.

    Due to our wildly volatile environment, we require physical database servers w/ data residing on a flash appliance.

    Is there...

  • RE: RECREATE AN ID OF A ROW AFTER BEING DELETED

    Looks like abdellahmoh2016 has left the building

    😎

  • RE: Date Function

    SumonB,

    have you had a look at the solution posted here?

    😎

  • RE: Convert a Date

    Jeff Moden (1/25/2016)


    Yes. Not because of the low quantity but because someone else in search of code may find it and use it on something larger or something that's...

  • RE: Convert a Date

    spaghettidba (1/25/2016)


    Eirikur Eiriksson (1/25/2016)


    spaghettidba (1/25/2016)


    Eirikur Eiriksson (1/25/2016)


    spaghettidba (1/25/2016)


    SQL Server 2012 supports the FORMAT function:

    select format(GETDATE(), 'dd-MMM-YYYY')

    Gianluca, don't use the format function, it has terrible performance.

    😎

    It is a CLR function, so...

  • RE: Convert a Date

    Quick test set, similar results to the one Jeff posted

    😎USE tempdb;

    GO

    SET NOCOUNT ON;

    IF OBJECT_ID(N'dbo.TBL_DATES') IS NOT NULL DROP TABLE dbo.TBL_DATES;

    CREATE TABLE dbo.TBL_DATES

    (

    TD_DATE DATETIME ...

  • RE: Convert a Date

    Luis Cazares (1/25/2016)


    ben.brugman (1/25/2016)


    Luis Cazares (1/25/2016)


    the problem often relies on keeping the default (us_english)

    I do strongly object to the notion that the default language is English.

    I know in almost...

  • RE: RECREATE AN ID OF A ROW AFTER BEING DELETED

    JustMarie (1/25/2016)


    The ONLY business reason I can think of for this situation is a legal requirement that there be no gaps in the numbering. There's a vague memory of...

  • RE: Convert a Date

    spaghettidba (1/25/2016)


    Eirikur Eiriksson (1/25/2016)


    spaghettidba (1/25/2016)


    Eirikur Eiriksson (1/25/2016)


    spaghettidba (1/25/2016)


    SQL Server 2012 supports the FORMAT function:

    select format(GETDATE(), 'dd-MMM-YYYY')

    Gianluca, don't use the format function, it has terrible performance.

    😎

    It is a CLR function, so...

  • RE: Convert a Date

    spaghettidba (1/25/2016)


    Eirikur Eiriksson (1/25/2016)


    spaghettidba (1/25/2016)


    SQL Server 2012 supports the FORMAT function:

    select format(GETDATE(), 'dd-MMM-YYYY')

    Gianluca, don't use the format function, it has terrible performance.

    😎

    It is a CLR function, so there's a startup...

  • RE: WITH Recompile VS Option Recompile , With Recompile performs worse?

    If I'm reading this correctly then the sproc returns sales by either a product, a customer or both. This kind of code is not likely to benefit from recompilation as...

  • RE: Convert a Date

    spaghettidba (1/25/2016)


    SQL Server 2012 supports the FORMAT function:

    select format(GETDATE(), 'dd-MMM-YYYY')

    Gianluca, don't use the format function, it has terrible performance.

    😎

Viewing 15 posts - 3,871 through 3,885 (of 8,753 total)