Forum Replies Created

Viewing 7 posts - 1 through 7 (of 7 total)

  • RE: CTE to Build XML

    Your solution works, but its slower than just creating a recursive function which is then selected as part of the select statement.

    Thank you for your effort.

    If you find another...

  • RE: CTE to Build XML

    Thanks i will look at it.

    Although it seems alot like my initial apprach using just a the view that i posted and a recursive function as you have written.

    I thought...

  • RE: CTE to Build XML

    I created a full example including tables, views and data required to test the SQL.

    -------------------------------------------------------------------------------------------------

    ---- DATA STRUCTURE PREPERATION -------------------------------------------------------------

    -------------------------------------------------------------------------------------------------

    -- Create a Test Schema

    CREATE SCHEMA TEST

    GO

    -- Create a table with parent/child...

  • RE: CTE to Build XML

    Yes i know that examples ease the job of helping.

    I left out the example, cause i wanted to see if anybody had been experimenting with the same type of...

  • RE: Unable to Create Concatenated String

    Initialize the PeriodArray Variable with blank ('')

    Further, why are you using a cursor? I think you could relatively easy refactor into a funtion, which has far better performance that a...

  • RE: SQL query

    You could either make a UNION including the rows that are left out in your select.

    Or you could start by selecting all records that you want a row displayed for,...

  • RE: SQL query

    Try to post the Query.

    You could probably archieve this by using af LEFT JOIN

Viewing 7 posts - 1 through 7 (of 7 total)