Viewing 15 posts - 1 through 15 (of 27 total)
Thank you so much, Jeff! I was looking for something like xp_DirTree. Will try it out. Thanks.
July 22, 2023 at 9:24 am
Thanks but I really want SQL script so it can loop through many directories. I should have said I have more than one directory.
July 21, 2023 at 3:08 pm
Thank you DesNorton. That works as well.
March 9, 2022 at 1:26 pm
It's amazing. Thank you so much.
Now I know why I couldn't get the Title node, I missed [1] , which it pulls from another node level based on @doc.nodes('ROOT/*/*/item') level.
March 1, 2022 at 2:21 pm
Hi Mark,
It looks like I have another challenge. There is another node inside Item. Can you help me to get the title in the Item node? I've updated the sample...
February 28, 2022 at 10:28 pm
Thank you so much Jmetape. Much appreciated!
February 28, 2022 at 4:35 pm
Thank you so much Mark Cowne. This is perfect. Much appreciated!
February 28, 2022 at 4:34 pm
Thank you so much for your help. But I don't have control over the data and can't edit it and there are a lot of them to go through. It...
February 25, 2022 at 10:29 am
Yup, it made sense just now about the join clause you mentioned.
well for this example, we can hard-coded. but if we must not hard-code it, I would take off 5...
August 14, 2020 at 9:57 pm
Please disregard my previous reply. I actually got it to work now with CTE.
create table #filetable (
FileID varchar(255),
GroupID varchar(255),
Level varchar(1),
Path varchar(255),
Filename varchar(255),
ExpectingResultofPath varchar(max)
);
insert into #filetable (FileID, GroupID,...
August 14, 2020 at 9:41 pm
here is another sample. I can't get it to work.
create table #filetable (
FileID varchar(255),
GroupID varchar(255),
Level varchar(1),
Path varchar(255),
Filename varchar(255),
ExpectingResultofPath varchar(max)
);
insert into #filetable (FileID, GroupID, Level, Path, Filename, ExpectingResultofPath)
values...
August 14, 2020 at 9:33 pm
Brian,
Thank you for your thoughtful respond. You're right about LAG won't work for this and I think I need a while loop for this because the level can be greater...
August 14, 2020 at 7:01 pm
Thank you very much Mr. Brian Gale.
Wow. This is a very nice CTE works with Depth to find relationships from previous record with current record.
LAG() sounds good. Would give it...
July 31, 2020 at 10:40 pm
October 18, 2017 at 1:08 pm
September 18, 2017 at 1:06 pm
Viewing 15 posts - 1 through 15 (of 27 total)