Viewing 15 posts - 3,271 through 3,285 (of 13,877 total)
Hi folks, I have a 2012 sql and it works very fast, one of the most used queries is a table function. This function over time becomes slow and...
I imagine that you've called your variable something like 'FileName', and not "C:\SCRIPTS\SQLServersExport_20191007.csv"!
Thus, I suspect you need to revisit the various relevant properties in your package components, looking for incorrect...
Please expand on what you have provided, to include
a) Your question
b) Which line throws the error, and an outline of what you are trying to achieve
As long as max level is the same for all of the lowest-level items, that is. Otherwise, it gets trickier.
Add hierarchy level to your CTE and base your selection on that?
Why do you refuse to format your code?
Your SELECT should be outside of your WHILE loop.
Viewing 15 posts - 3,271 through 3,285 (of 13,877 total)