Viewing 15 posts - 19,876 through 19,890 (of 59,098 total)
I'm always amazed that people don't pay attention until someone gets hurt or dies. This appears to be the same mentality that prevails in every day code. They...
--Jeff Moden
Change is inevitable... Change for the better is not.
August 17, 2015 at 12:49 am
The following code will work as requested against the data you posted. It uses 144 logical reads because of the recursive CTEs and takes 1 to 5 ms duration....
--Jeff Moden
Change is inevitable... Change for the better is not.
August 16, 2015 at 10:23 pm
sqlserverstarter (8/16/2015)
Based on my total set of data I'd say that your suggestion to
recursively find all the children of the top level parent and then...
--Jeff Moden
Change is inevitable... Change for the better is not.
August 16, 2015 at 9:33 pm
What I meant was that the answer to all the possible questions must already be present in the data or we'll be stuck with double (or more) recursion. Recursion...
--Jeff Moden
Change is inevitable... Change for the better is not.
August 16, 2015 at 7:00 pm
Then you need to know the answer to the question before the question is known. Sorry, don't mean to sound cryptic but it's true and I can demonstrate how...
--Jeff Moden
Change is inevitable... Change for the better is not.
August 16, 2015 at 6:37 pm
Do you have any other entries in your table that have a ParentID of "0"?
--Jeff Moden
Change is inevitable... Change for the better is not.
August 16, 2015 at 6:17 pm
Eirikur Eiriksson (8/16/2015)
Jeff Moden (8/16/2015)
Eirikur Eiriksson (8/16/2015)
Jeff Moden (8/16/2015)
--Jeff Moden
Change is inevitable... Change for the better is not.
August 16, 2015 at 1:09 pm
Yep. Exactly what I was talking about. That uses recursive CTEs and is going to be slower and more resource intensive over time, especially if you have a...
--Jeff Moden
Change is inevitable... Change for the better is not.
August 16, 2015 at 1:07 pm
Steve Jones - SSC Editor (8/14/2015)
David.Poole (8/14/2015)
- Local Dev
- Continuous Integration
- Functional test
- Non-functional test (stress testing, penetration and vulnerability testing etc)
- User acceptance testing
- Showcase and demonstration
- Production
- Disaster Recovery
Wow, that's a lot, though I assume DR...
--Jeff Moden
Change is inevitable... Change for the better is not.
August 16, 2015 at 12:10 pm
Eirikur Eiriksson (8/16/2015)
Jeff Moden (8/16/2015)
--Jeff Moden
Change is inevitable... Change for the better is not.
August 16, 2015 at 11:43 am
nick.latocha (8/16/2015)
This could be where we are going wrong. We have clustered the unique ID column. Let me try this out on our development environment.
You really need to post the...
--Jeff Moden
Change is inevitable... Change for the better is not.
August 16, 2015 at 11:30 am
Understood that the data is coming from an application. How are you passing the data to the database?
--Jeff Moden
Change is inevitable... Change for the better is not.
August 16, 2015 at 11:25 am
KGJ-Dev (8/16/2015)
I could figured out the logic around. Below is the try for my another question and it works fine
...
--Jeff Moden
Change is inevitable... Change for the better is not.
August 16, 2015 at 11:23 am
KGJ-Dev (8/16/2015)
All your concerns are very valid and Regarding table name, age datatype, ID are just sample structure to play with data on this thread. As i said in...
--Jeff Moden
Change is inevitable... Change for the better is not.
August 16, 2015 at 11:20 am
Heh... ya just gotta love the nuances of some of these things along with the lack of documentation on them. For example...
1. It's documented that if you use...
--Jeff Moden
Change is inevitable... Change for the better is not.
August 16, 2015 at 9:23 am
Viewing 15 posts - 19,876 through 19,890 (of 59,098 total)