Forum Replies Created

Viewing 15 posts - 2,551 through 2,565 (of 5,502 total)

  • RE: Are the posted questions getting worse?

    I was about leaving a party-note since Steve's out until the 29th (got a out-of-office reply for a reported thread).

    But given the latest news I don't think it's appropriate...

    I wish...



    Lutz
    A pessimist is an optimist with experience.

    How to get fast answers to your question[/url]
    How to post performance related questions[/url]
    Links for Tally Table [/url] , Cross Tabs [/url] and Dynamic Cross Tabs [/url], Delimited Split Function[/url]

  • RE: fine tune query

    Looks like a catch-all query issue.

    See Gails blog[/url] for details.



    Lutz
    A pessimist is an optimist with experience.

    How to get fast answers to your question[/url]
    How to post performance related questions[/url]
    Links for Tally Table [/url] , Cross Tabs [/url] and Dynamic Cross Tabs [/url], Delimited Split Function[/url]

  • RE: Time Intervals

    I'd use a TallyTable based method:

    DECLARE @day DATETIME, @interval INT

    SET @interval = 15

    SET @day = '2010-11-22'

    ;

    WITH splitTimes AS

    (

    SELECT DATEADD(MINUTE, @interval * (N-1), @day) splitTime

    FROM Tally

    WHERE N<=(24*60/@interval)

    )

    SELECT

    agent.Agent,

    cast(sp.splitTime...



    Lutz
    A pessimist is an optimist with experience.

    How to get fast answers to your question[/url]
    How to post performance related questions[/url]
    Links for Tally Table [/url] , Cross Tabs [/url] and Dynamic Cross Tabs [/url], Delimited Split Function[/url]

  • RE: Job Schedule

    wannalearn (11/22/2010)


    the status is failed..

    hmm.. let me quote from my previous post:

    ...if failed, what message?



    Lutz
    A pessimist is an optimist with experience.

    How to get fast answers to your question[/url]
    How to post performance related questions[/url]
    Links for Tally Table [/url] , Cross Tabs [/url] and Dynamic Cross Tabs [/url], Delimited Split Function[/url]

  • RE: Calculate dates an individual lives in apartement each month

    Is this your actual table design? :pinch:

    You should really consider to normalize your table structure.

    You'd need separate tables for Persons, Buildings and BuildingsOccupied.

    Based on that, the query becomes rather simple.

    Regarding...



    Lutz
    A pessimist is an optimist with experience.

    How to get fast answers to your question[/url]
    How to post performance related questions[/url]
    Links for Tally Table [/url] , Cross Tabs [/url] and Dynamic Cross Tabs [/url], Delimited Split Function[/url]

  • RE: Concatenate Data with a twist

    How about adding a comma after the [TYPE] column?



    Lutz
    A pessimist is an optimist with experience.

    How to get fast answers to your question[/url]
    How to post performance related questions[/url]
    Links for Tally Table [/url] , Cross Tabs [/url] and Dynamic Cross Tabs [/url], Delimited Split Function[/url]

  • RE: Concatenate Data with a twist

    Sounds like FOR XML PATH is the way to go:

    SELECT

    DATE,

    STUFF((SELECT '|' + Symbol FROM #test t2 WHERE t2.date = t1.date AND UpDown = 1 ORDER BY symbol FOR XML PATH('')),1,1,'')

    FROM...



    Lutz
    A pessimist is an optimist with experience.

    How to get fast answers to your question[/url]
    How to post performance related questions[/url]
    Links for Tally Table [/url] , Cross Tabs [/url] and Dynamic Cross Tabs [/url], Delimited Split Function[/url]

  • RE: try - catch --- doesn't work well --- Please help !!!

    Do have a TRY ... CATCH block inside your sproc [myprocedure], that would print any error message?



    Lutz
    A pessimist is an optimist with experience.

    How to get fast answers to your question[/url]
    How to post performance related questions[/url]
    Links for Tally Table [/url] , Cross Tabs [/url] and Dynamic Cross Tabs [/url], Delimited Split Function[/url]

  • RE: try - catch --- doesn't work well --- Please help !!!

    Please post the code and your expected result/output.

    And please explain what you mean by "each and every error".



    Lutz
    A pessimist is an optimist with experience.

    How to get fast answers to your question[/url]
    How to post performance related questions[/url]
    Links for Tally Table [/url] , Cross Tabs [/url] and Dynamic Cross Tabs [/url], Delimited Split Function[/url]

  • RE: Are the posted questions getting worse?

    bitbucket-25253 (11/20/2010)


    ...

    All this gibbering and jabbering about age -- Your are all youngsters.

    I've got a GREAT GRAND DAUGHTER born on April 2nd, 2010. As Jeff Moden once said...



    Lutz
    A pessimist is an optimist with experience.

    How to get fast answers to your question[/url]
    How to post performance related questions[/url]
    Links for Tally Table [/url] , Cross Tabs [/url] and Dynamic Cross Tabs [/url], Delimited Split Function[/url]

  • RE: simple sp

    Sounds like homework to me...



    Lutz
    A pessimist is an optimist with experience.

    How to get fast answers to your question[/url]
    How to post performance related questions[/url]
    Links for Tally Table [/url] , Cross Tabs [/url] and Dynamic Cross Tabs [/url], Delimited Split Function[/url]

  • RE: Want to append to different values to a output

    Please remember: we don't know your table structure nor your business case. All we know is what you posted.

    And based on that, I don't think we can really help you.

    You...



    Lutz
    A pessimist is an optimist with experience.

    How to get fast answers to your question[/url]
    How to post performance related questions[/url]
    Links for Tally Table [/url] , Cross Tabs [/url] and Dynamic Cross Tabs [/url], Delimited Split Function[/url]

  • RE: Running SQL Server 2008 with Local Admin or Domain user?

    duplicate post.

    Please reply here



    Lutz
    A pessimist is an optimist with experience.

    How to get fast answers to your question[/url]
    How to post performance related questions[/url]
    Links for Tally Table [/url] , Cross Tabs [/url] and Dynamic Cross Tabs [/url], Delimited Split Function[/url]

  • RE: Running SQL Server 2008 with Local Admin or Domain user

    duplicate post.

    Please reply here



    Lutz
    A pessimist is an optimist with experience.

    How to get fast answers to your question[/url]
    How to post performance related questions[/url]
    Links for Tally Table [/url] , Cross Tabs [/url] and Dynamic Cross Tabs [/url], Delimited Split Function[/url]

  • RE: Are the posted questions getting worse?

    WayneS (11/19/2010)


    Craig Farrell (11/19/2010)


    Wayne, Lutz and I are volunteering you for Larry. Well, I am, Lutz isn't convinced your current avatar is less appropriate. 😀

    :crazy::crying::Whistling:

    Why me? :sick:

    The only avatar...



    Lutz
    A pessimist is an optimist with experience.

    How to get fast answers to your question[/url]
    How to post performance related questions[/url]
    Links for Tally Table [/url] , Cross Tabs [/url] and Dynamic Cross Tabs [/url], Delimited Split Function[/url]

Viewing 15 posts - 2,551 through 2,565 (of 5,502 total)