Forum Replies Created

Viewing 15 posts - 6,346 through 6,360 (of 8,761 total)

  • RE: Tally-OH! Help

    Strongly recommend following Luis's suggestion, simple and well tested approach.

    😎

    For completeness, below is an sample solution which replicates the logic in a query instead of the splitter function.

    USE tempdb;

    SET...

  • RE: Date format conversion

    Phil Parkin (1/3/2015)


    Eirikur Eiriksson (1/3/2015)


    Luis Cazares (1/3/2015)


    DECLARE @date date = '20140927'

    Be careful with the implicit conversion as the results will be depending on the system settings, no guarantee that it...

  • RE: Insert Data set into two tables and grabbing identity from one, for the other

    Phil Parkin (1/3/2015)


    Thanks, but I know this 🙂

    The quote was from the original post & I just wanted to throw this in as an aside, not as a suggested solution...

  • RE: Date format conversion

    Luis Cazares (1/3/2015)


    DECLARE @date date = '20140927'

    Be careful with the implicit conversion as the results will be depending on the system settings, no guarantee that it will be interpreted as...

  • RE: Date format conversion

    cheryljanicedsouza (1/2/2015)


    I need to convert the given data 20140927 into 27 Sept 2014. Plz help. Thanks

    Given that the originating data type is not date, the operation is twofold, first...

  • RE: Insert Data set into two tables and grabbing identity from one, for the other

    Phil Parkin (1/3/2015)


    By the way, this is not a great idea:

    just set @@Identity to a variable and do a second insert statement.

    Rather than @@Identity, you would be better off...

  • RE: Insert Data set into two tables and grabbing identity from one, for the other

    Jeff Moden (1/2/2015)


    I could be wrong but that looks like it presupposes what the identities will be.

    It doesn't as the output clause retrieves the identity values generated in the first...

  • RE: Date type compatibility

    marcia.j.wilson (1/2/2015)


    One example of what I was looking for was whether DT_R8 would map to DT_NUMERIC. (It did.) I was getting one of those errors where you know something's...

  • RE: Are the posted questions getting worse?

    Jeff Moden (1/2/2015)


    Eirikur Eiriksson (1/2/2015)


    Stefan Krzywicki (1/2/2015)


    Happy New Year everyone!

    Who, like me, is at work today?

    I must be the saddest (read nerdiest/most pathetic) in this bunch, got the day off...

  • RE: Are the posted questions getting worse?

    Stefan Krzywicki (1/2/2015)


    Happy New Year everyone!

    Who, like me, is at work today?

    I must be the saddest (read nerdiest/most pathetic) in this bunch, got the day off but still spent 10...

  • RE: Insert Data set into two tables and grabbing identity from one, for the other

    Jeffery Williams (1/2/2015)


    Ok I think I will need to use a temp table for this and there is no code to share as of yet. Here is the intent.

    I need...

  • RE: Validating T-SQL

    schleep (1/2/2015)


    That's working in the back-end Eirikur, thank you!!

    I have to dump the empty result set into a #tmp table so the front-end doesn't puke, but that's a minor detail.

    Quick...

  • RE: Date type compatibility

    marcia.j.wilson (1/2/2015)


    Eirikur Eiriksson (1/1/2015)


    Quick suggestion: Integration Services Data Types

    😎

    Thanks. I had come across that link, but it wasn't quite what I was looking for. I'm looking for something...

  • RE: Comparing Bits and Ints

    Only the second query which uses 'true' as a predicate has an implicit conversion

    😎

    <Object...

  • RE: Comparing Bits and Ints

    Quick thought, don't think that in this case it makes any difference, looked into this quite a while back and I couldn't find any implicit conversion in the execution plan.

    😎

Viewing 15 posts - 6,346 through 6,360 (of 8,761 total)