November 8, 2022 at 9:30 pm
Hello commuty,
Need your help, your support and proposition!
I'm analysis a huge stoc proc in sql server including a list of cte , but it's very complicated to understand the differents dependencies,
Are there any tools or code that help to display a list of tables used in each cte !
Or to show a query designe with a list of tables and filters ?
Or a code to decrypt this code ?
In advance thanks a lot,
November 8, 2022 at 11:41 pm
SSMS can tell you dependencies for the procedure as a whole.
At the CTE level, as far as I know, that will require a diligent data engineer.
Be alert to the use of views vs. tables. Are any selecting from table-valued functions?
November 9, 2022 at 3:43 am
Peel one potato at a time. Like Ratbak suggests above, it will require a "Diligent Data Engineer". One of the best things to make as you go along, is a simple, functional flowchart. It might take a whole wall in your cube but you're going to need it to understand both the flow and the "gazintas". Don't put it off... start drawing it and keep it up as you go. You might even have to make sub-flowcharts for each queery. It'll be worth it.
--Jeff Moden
Change is inevitable... Change for the better is not.
November 9, 2022 at 7:45 am
Execute the sproc in PlanExplorer ( free tool ) to record its full execution plan en explore the marvels of that tool.
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 4 posts - 1 through 3 (of 3 total)
You must be logged in to reply to this topic. Login to reply