Forum Replies Created

Viewing 15 posts - 1,021 through 1,035 (of 6,036 total)

  • RE: Comparing Execution Plans

    Koen Verbeeck (12/14/2016)


    sknox (12/14/2016)


    The question is written as "How can you identify any differences?"

    However, 3 of the four answers fit that question as written.

    The question should have been "How...

  • RE: Converting time - from "seconds after midnight"

    Lynn Pettis (12/14/2016)


    Enough.

    Apparently not, if you keep coming back.

    😛

  • RE: Converting time - from "seconds after midnight"

    sgmunson (12/12/2016)


    Sergiy,

    I honestly don't know what universe you're living in.

    Why? Anything what I said does not apply to your universe?

    Yes, there are LOTS of foolish people. Yes,...

  • RE: Identify if index exists on partition function

    That's what you should be doing (using your beloved "non-legacy" system views this time 🙂 ):

    SELECT OBJECT_NAME(ic.object_id), i.index_id, COUNT(*), COUNT(DesiredIndex.OrdPosition)

    FROM sys.indexes i

    INNER JOIN sys.index_columns ic ON ic.object_id = i.object_id AND...

  • RE: Identify if index exists on partition function

    Xedni (12/7/2016)


    Sergiy (12/7/2016)


    Index name is not a really good indicator of index existence.

    You may have many identical indexes, all with different names.

    To check if an index with the same structure...

  • RE: Update had to be done in two steps, Why?

    BTW,

    you've got an error in your duration calculations.

    Here is the testing script:

    SELECT *,

    duration_datetime = DATEADD(ss, T2.minutes/100, 0),

    duration_orig = cast(minutes /100/60/60 as varchar) + ':' + left( cast...

  • RE: Update had to be done in two steps, Why?

    John Mitchell-245523 (12/8/2016)


    Edvard

    Yes, that's how it works. Try declaring @starttime and @endtime variables and setting them to the new values. You can then use them in the update...

  • RE: Bitwise & NULL

    Sioban Krzywicki (12/13/2016)


    I'm trying to avoid an EAV table because it has been poorly implemented elsewhere in the database & I'm trying to fix that as well.

    Somebody implemented EAV poorly...

  • RE: Latin small letter u with diaeresis

    etl2016 (12/12/2016)


    Hi,

    I am seeing that special character on my SSMS query, where as the actual data does not contain that character.

    Basically, data type is varchar for both source and destination...

  • RE: Converting time - from "seconds after midnight"

    sgmunson (12/11/2016)


    Sergiy (12/11/2016)


    sgmunson (12/9/2016)


    Sergiy (12/8/2016)


    sgmunson (12/8/2016)


    Sergiy (12/8/2016)


    sgmunson (12/8/2016)


    Sergiy (12/7/2016)


    sgmunson (12/6/2016)


    As painful as that is, a book in any body cavity is going to be more painful and for a lot...

  • RE: Converting time - from "seconds after midnight"

    sgmunson (12/9/2016)


    Sergiy (12/8/2016)


    sgmunson (12/8/2016)


    Sergiy (12/8/2016)


    sgmunson (12/8/2016)


    Sergiy (12/7/2016)


    sgmunson (12/6/2016)


    As painful as that is, a book in any body cavity is going to be more painful and for a lot longer than...

  • RE: Converting time - from "seconds after midnight"

    sgmunson (12/8/2016)


    Sergiy (12/8/2016)


    sgmunson (12/8/2016)


    Sergiy (12/7/2016)


    sgmunson (12/6/2016)


    As painful as that is, a book in any body cavity is going to be more painful and for a lot longer than it takes...

  • RE: Converting time - from "seconds after midnight"

    sgmunson (12/8/2016)


    Sergiy (12/7/2016)


    sgmunson (12/6/2016)


    As painful as that is, a book in any body cavity is going to be more painful and for a lot longer than it takes to waste...

  • RE: Converting time - from "seconds after midnight"

    sgmunson (12/6/2016)


    As painful as that is, a book in any body cavity is going to be more painful and for a lot longer than it takes to waste your time....

  • RE: t-sql 2012 possible join to same table

    But better go with this:

    declare @Year int = 16

    declare @ThisYear varchar(10), @LastYear varchar(10)

    SELECT @ThisYear = CONVERT(VARCHAR(10), @Year) + '-' + CONVERT(VARCHAR(10), @Year + 1),

    @LastYear = CONVERT(VARCHAR(10), @Year-1) + '-' +...

Viewing 15 posts - 1,021 through 1,035 (of 6,036 total)