Forum Replies Created

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

  • RE: Recursive query

    I was having a discussion on a different thread and this seems to work. I have to try this on real data, but it works here...

    with cte as (

    select [owner]...

  • RE: Recursive query

    Right, it's not well structured. It is not really designed for SQL to spin through - the application code that sits on top of it sorts it out. However, I...

  • RE: Recursive query

    Here is some sample code:

    if object_id('#recursive_example','U') is not null

    drop table #recursive_example

    create table #recursive_example (

    owner varchar(10),

    owner_type varchar(10),

    item_type varchar(10),

    item_name varchar(10)

    )

    insert into #recursive_example values ('REC1','RECORD','FIELD','FLD1')

    insert into #recursive_example values ('REC1','RECORD','FIELD','FLD2')

    insert into #recursive_example values...

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