You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If I run the following to check my local pubs database for fragmentation (config.json lowers the threshold to 0) I get three rows per index as it is a partitioned table.
If you add sp.partition_number into the query that runs this check you'll be able to see which partitions are fragmented and then this could be appended to the message returned
The text was updated successfully, but these errors were encountered:
Hey @chlafreniere - is this something your Team own these days? If so, could you take a look into it? If not, please assign back to me... and/or we can chat when you have a minute.
Thanks for picking this up - it's causing me a bit of a blocker so would be ace to get some movement.
I worked with one of my colleagues to come up with a potential solution - it's documented here as I wasn't sure where the right place was: microsoft/sql-server-samples#1260
If I run the following to check my local pubs database for fragmentation (
config.json
lowers the threshold to 0) I get three rows per index as it is a partitioned table.If you add
![image](https://private-user-images.githubusercontent.com/981370/288822972-80589f50-42e4-4390-a11c-85d33d33ab5c.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MzkyNjE0NjcsIm5iZiI6MTczOTI2MTE2NywicGF0aCI6Ii85ODEzNzAvMjg4ODIyOTcyLTgwNTg5ZjUwLTQyZTQtNDM5MC1hMTFjLTg1ZDMzZDMzYWI1Yy5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjUwMjExJTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI1MDIxMVQwODA2MDdaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT1jZmUxY2I4YTVkYjlkNGExMDVkNTJhN2Y5Y2EzYjQ2NGNiZTdiYWNkMjBlYzkwNmI3OGE1MzhlN2YxYWYxMThjJlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCJ9.SjnKMq_xvHLLPhHq4-6jx5YfVQLRYe60-1OoYbpt1x4)
sp.partition_number
into the query that runs this check you'll be able to see which partitions are fragmented and then this could be appended to the message returnedThe text was updated successfully, but these errors were encountered: