Forum Replies Created

Viewing 15 posts - 7,171 through 7,185 (of 8,753 total)

  • RE: Return single row for matching columns based on 3rd column

    jamie_collins (9/3/2014)


    Worked great.

    Added DISTINCT to remove the duplicates but this is what I was after.

    Thanks.

    An alternative is to use the ROW_NUMBER function to filter the output

    😎

    USE tempdb;

    GO

    ;WITH BASE_DATA(Ticket,[User],[Priority]) AS

    (SELECT...

  • RE: export table

    Jeff Moden (9/3/2014)


    I didn't know there was ever a "good" case for XML. πŸ˜‰

    Well now you know as you've just made one:-D

    😎

  • RE: Tally OH! An Improved SQL 8K β€œCSV Splitter” Function

    gbritton1 (9/3/2014)


    I'm using the splitter (just downloaded the zip file) and noticed something odd. Dunno if its just me, but check this out:

    select * from dbo.[DelimitedSplit8K](' ', ' ')...

  • RE: export table

    Jeff Moden (9/3/2014)


    Eirikur Eiriksson (8/25/2014)


    Jeff Moden (8/25/2014)


    Eirikur Eiriksson (8/25/2014)


    Feel I'm starting to repeat my self on the issue:pinch:

    BWAAA-HAAA!!! Me too!

    Switching from one delimiter to another is a form of...

  • RE: using linked server object name in join statements, a best practice?

    polkadot (9/3/2014)


    thinking about this further, I don't see evidence from my reading, that two different servers can't both point to the same third machine using the same linked server name.

    Additionally,...

  • RE: Are the posted questions getting worse?

    GilaMonster (9/3/2014)


    Eirikur Eiriksson (9/3/2014)


    BTW, the bouncing is easy, it's the catching of the server exceptions which is tricky

    You just need a large net. What's so difficult about that?

    That of course...

  • RE: Are the posted questions getting worse?

    SQLRNNR (9/3/2014)


    Eirikur Eiriksson (9/3/2014)


    Alvin Ramard (9/3/2014)


    Koen Verbeeck (9/3/2014)


    xsevensinzx (9/3/2014)


    I keep coming to this thread just to read all your fueled responses. It's baiting me to post a seriously dumb question...

  • RE: Adding a number to a string to create series

    CELKO (9/3/2014)


    It's a YACK, yet another combined key

    I like that initialism! Put it together, then pull it apart over and over and over ..

    Spot on! The subject is a...

  • RE: Are the posted questions getting worse?

    Alvin Ramard (9/3/2014)


    Koen Verbeeck (9/3/2014)


    xsevensinzx (9/3/2014)


    I keep coming to this thread just to read all your fueled responses. It's baiting me to post a seriously dumb question just to read...

  • RE: Are the posted questions getting worse?

    Luis Cazares (9/3/2014)


    Koen Verbeeck (9/3/2014)


    Bah. I couldn't resist it.

    Someone call the Relational Protection Agency, we have an offender...oh, wait. πŸ˜€

    Reminds me of an old story, once upon a time the...

  • RE: Return single row for matching columns based on 3rd column

    Quick solution (if I got it right πŸ˜‰

    😎

    USE tempdb;

    GO

    ;WITH BASE_DATA(Ticket,[User],[Priority]) AS

    (SELECT Ticket,[User],[Priority] FROM

    ( VALUES

    ('A','ME' , 1)

    ...

  • RE: Programmatically generate a number sequence

    Ray K (9/3/2014)


    Eirikur Eiriksson (9/3/2014)


    Ray K (9/3/2014)


    Eirikur Eiriksson (9/3/2014)


    I share Sean's concern here, at least there should be a check for the key-number existence and adjustment if there is a...

  • RE: Programmatically generate a number sequence

    Ray K (9/3/2014)


    Eirikur Eiriksson (9/3/2014)


    I share Sean's concern here, at least there should be a check for the key-number existence and adjustment if there is a key combination collision.

    😎

    Folks, you're...

  • RE: Adding a number to a string to create series

    CELKO (9/3/2014)


    I have an EventID that may have many sub events. ..How can I check what the EventID is, then concatenate a sequence number by the EventID?

    Why are you...

  • RE: Are the posted questions getting worse?

    Koen Verbeeck (9/3/2014)


    TomThomson (9/3/2014)


    Luis Cazares (9/3/2014)


    xsevensinzx (9/3/2014)


    Koen Verbeeck (9/3/2014)


    xsevensinzx (9/3/2014)


    I keep coming to this thread just to read all your fueled responses. It's baiting me to post a seriously dumb...

Viewing 15 posts - 7,171 through 7,185 (of 8,753 total)