April 19, 2021 at 9:52 am
I've got a table with LOTS of data. It's a tree-structure (using hierarcyId datatype) and I want a query to get all of them UNLESS they have a parent that's flagged as "Inactive" in the database, then I want to skip everything that's inactive and below. I hope you get it.
If possible I want to avoid loops/cursors/CTE's etc because there are lots of data and the stuff I've tried so far ended up as very slow with these amounts of data (~150,000 rows).
I've googled myself nuts but haven't found anything useful yet. 🙁
April 19, 2021 at 1:41 pm
What have you tried ?
hierarcyId may have looked to be an interesting option, but ....
Johan
Learn to play, play to learn !
Dont drive faster than your guardian angel can fly ...
but keeping both feet on the ground wont get you anywhere :w00t:
- How to post Performance Problems
- How to post data/code to get the best help[/url]
- How to prevent a sore throat after hours of presenting ppt
press F1 for solution, press shift+F1 for urgent solution 😀
Need a bit of Powershell? How about this
Who am I ? Sometimes this is me but most of the time this is me
Viewing 2 posts - 1 through 1 (of 1 total)
You must be logged in to reply to this topic. Login to reply