June 12, 2018 at 11:24 am
When trying to execute a SELECT query against a set of Azure SQL Database tables in a read-only replica database, I'm getting the following error:
Msg 9105, Level 16, State 26, Line 1
The provided statistics stream is corrupt
The same query runs fine against the primary. I don't even know where to start troubleshooting, but even if I could locate the corrupt statistics I don't think I can update them in the read-only replica.
Here is the full query:
SELECT I.ListID, I.ItemID
FROM dbo.KA_WSS_ListItems as I INNER JOIN
dbo.KA_WSS_Lists as L ON I.ListID = L.ListID
WHERE L.ListName = 'Style Library'
It executes successfully if I remove the WHERE clause, which makes me think the corrupt statistics are located in the KA_WSS_Lists table, but again I don't know what to do with that information. Any ideas?
Viewing post 1 (of 1 total)
You must be logged in to reply to this topic. Login to reply
This website stores cookies on your computer.
These cookies are used to improve your website experience and provide more personalized services to you, both on this website and through other media.
To find out more about the cookies we use, see our Privacy Policy