11-06-19 10:55 AM
12-06-19 07:15 AM
Hi Silvio
This error occurs because there is an additional permissions requirement to perform the 6.5 upgrade.
Specifically, the error message indicates that the user performing the database upgrade needs the 'VIEW SERVER STATE' database permission in order to allow you to run the sys.dm_db_partition_stats system view, which is used to determine size of the session log table before the ugprade commences. This permission is required in order to allow you to run the sys.dm_db_partition_stats system view.
The following Microsoft article provides further details on this issue:
sys.dm_db_partition_stats (Transact-SQL)
How to resolve your issue
To fix this issue, you will need to ask your Database Administrator to grant this permission to the user.
The following command can be run to grant the permission (where "dbid" is the user to grant the permission to):
use master;
grant view server state to "dbid";
Note: It may be simpler to temporarily give your user the sysadmin user role if this would be appropriate in your environment.
This action is only required once and the permission can be revoked again once the upgrade is completed.
12-06-19 11:27 AM