Forum Replies Created

Viewing 15 posts - 46 through 60 (of 303 total)

  • RE: Generating Unique Name

    Do you think there is a performance benefit to using the Tally table?

  • RE: T-SQL

    cengland0 (11/17/2009)


    What about daylight savings time? Getdate() accounts for that because the server time changes. Does the UTC time take into account? I doubt it. So...

  • RE: T-SQL

    Lynn Pettis (11/17/2009)


    I GOT it!

    The query should have been written like this instead of as four separate queries:

    SELECT

    DATEADD(day, -1, GETDATE()),DATENAME (dw ,DATEADD(day, -1, GETDATE()) ),

    ...

  • RE: T-SQL

    Lynn Pettis (11/17/2009)


    Okay, I give up. No one is really paying attention to the concept that the question was trying to bring out. Everyone is concentrating on the...

  • RE: Double Recursion?

    This was absolutely perfect!

    Thanks for the help. You really saved my project!

  • RE: Double Recursion?

    Very cool! This looks really awesome -- I'm still playing with integrating it into my code.

    Thanks so much for your help 🙂

  • RE: Double Recursion?

    Basically the key thing here is the sequencing.

    Every child node, whether it is a department or employee, is given a sequence within its parent .

    An employee can come before...

  • RE: Double Recursion?

    And yes, the real data has nothing to do with employees or departments.

    It is just an analogy since I can not post the real data.

  • RE: Double Recursion?

    This is NOT a homework assignment.

    It is a multi-million dollar project on an extremely tight deadline.:w00t:

    I have written many recursive CTEs in the past.

    The reason I am having difficulty with...

  • RE: Copying & Tracking Data

    Thanks so much to both of you for your help.

    In the end I neded to create a GUID field on my Sections table for other reasons, so I can use...

  • RE: Copying & Tracking Data

    Paul White (8/8/2009)


    Jeff Moden (8/6/2009)


    Darned sorry about that, Goldie. I answered too quickly.

    You would think that Microsoft would allow you to return data from the "from_table_name" on an insert...

  • RE: Copying & Tracking Data

    That will give me the IDs of the newly inserted records.

    But how do I know which one of the original records they are a copy of?

  • RE: Gain Space Using XML data type

    Why bother with the database at all then? Just store the XML directly on the disk? 😀

    Seriously though, in today's day and age physical space is not usually an issue.

    And,...

  • RE: Split string using XML

    Eralper (7/10/2009)


    Hi,

    You know this discussion is originally started on an article which is describing this method. Because of that I had given an example on splitting by XML.

    Eralper

    http://www.kodyaz.com

    My objection is...

  • RE: Split string using XML

    Eralper (7/10/2009)


    Hello Goldie,

    Do you mean using the XML logic or placing it into a udf causes the performance decrease?

    Using the XML inline is a little bit difficult for whom do...

Viewing 15 posts - 46 through 60 (of 303 total)