Forum Replies Created

Viewing 13 posts - 46 through 58 (of 58 total)

  • RE: Convert Integer to Time

    Got it!!!

    declare @MaxRowdateTime datetime

    select @MaxRowdateTime = max(DATEADD(day, DATEDIFF(day,'19000101',row_date), CAST(CONVERT( TIME, STUFF( RIGHT( '0000' + CONVERT( VARCHAR(5), starttime), 4), 3, 0, ':')) AS DATETIME2(7)))) from [avaya].[dbo].[hSplit]

    select

    DATEADD(day, DATEDIFF(day,'19000101',row_date), CAST(CONVERT( TIME,...

  • RE: Convert Integer to Time

    Attached is the actual query I'm trying to use.

  • RE: Convert Integer to Time

    Evil Kraig F (12/3/2014)


    craig.bobchin (12/3/2014)


    Thanks that worked. How can I concatenate this with a date field. neither '&' nor '+' seem to work.

    Append it before you turn it into a...

  • RE: Convert Integer to Time

    Evil Kraig F (12/3/2014)


    SELECT CONVERT( TIME, STUFF( RIGHT( '0000' + CONVERT( VARCHAR(5), '30'), 4), 3, 0, ':'))

    Thanks. I'll take a look at it.

  • RE: Convert Integer to Time

    Thanks that worked. How can I concatenate this with a date field. neither '&' nor '+' seem to work.

  • RE: Please help me debug this SQL

    Thanks all for the suggestions. I figured it out. One of the joined tables had been changed and field that was previously an integer was now a varchar. It was...

  • RE: Please help me debug this SQL

    Eirikur Eiriksson (7/22/2014)


    Quick thought, look for the value "Actual" in any column of the tables and track it from there.

    😎

    Thanks, that's where I'm focusing my search. So far no luck.

  • RE: Help needed with a script

    Koen Verbeeck (6/11/2014)


    What if you delete the script component, add a new one and copy paste only the following piece of code into the main() function?

    bool failure = false;

    bool fireAgain...

  • RE: Help needed with a script

    Koen Verbeeck (6/11/2014)


    craig.bobchin (6/11/2014)


    Koen Verbeeck (6/11/2014)


    Also set DelayValidation on the package to true.

    I have it set to true for the connection manager which made no difference, but see no where...

  • RE: Help needed with a script

    Koen Verbeeck (6/11/2014)


    Also set DelayValidation on the package to true.

    I have it set to true for the connection manager which made no difference, but see no where in either package...

  • RE: Help needed with a script

    Koen Verbeeck (6/11/2014)


    craig.bobchin (6/11/2014)


    Koen Verbeeck (6/11/2014)


    Why doesn't this script work for you? Does it give an error?

    No error, it seems to just be passed by when I have bad credentials...

  • RE: Help needed with a script

    Koen Verbeeck (6/11/2014)


    Why doesn't this script work for you? Does it give an error?

    No error, it seems to just be passed by when I have bad credentials in the connection...

  • RE: WWBOD

    I would Do the following things in this order:

    Pay off my bills

    Buy a house where there are nice dark skies

    Set up trust funds/savings/investments for my family (kids and grandkids)

    Build out...

Viewing 13 posts - 46 through 58 (of 58 total)