We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
sp_pivot_for will run into an issue with the dynamic sql when it tries to pivot and there are no rows in the pivot table.
To reproduce this you can run one of the example CALLs in the SP but truncate the table ahead of time.
A solution could just be to run a quick count(*) on the source table and return an error if the value = 0
The text was updated successfully, but these errors were encountered:
No branches or pull requests
sp_pivot_for will run into an issue with the dynamic sql when it tries to pivot and there are no rows in the pivot table.
To reproduce this you can run one of the example CALLs in the SP but truncate the table ahead of time.
A solution could just be to run a quick count(*) on the source table and return an error if the value = 0
The text was updated successfully, but these errors were encountered: