-
Notifications
You must be signed in to change notification settings - Fork 5
Open
Description
Hi! thanks for this great code! I was testing the stored procedure dbo.[StatsOptimize] and it is failing with this error:
Invalid column name 'stats_sample_rate'
I'm using these parameters:
exec dbo.[StatsOptimize] @Tables=null, @StatisticsModificationLevel=null, @StatisticsSample=null ,@OnlyModifiedStatistics=null,@DeleteOverlappingStats=null, @TimeLimit=null , @Execute='N'
I think the error comes when the code tries to UNION the results from dbo.vStats and dbo.vTableStats because the column stats_sample_rate does not exists in dbo.vStats.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels