User is trying to regenerate the system model but the dialog is stuck at step 4: trying to create the job to recreate index views. Also issue produces an error message when trying to execute stored procedure such as RecreateIndexedViews with messages such as.
Error messages like this, or other similar error messages, meaning that you cannot access other database objects because you don’t have the right permissions.
FIX: When setting up the database you have to uncomment out 1 line in each CreateJob and RunJob that add the following:
This allows the procedure to run as the service account which should have sysadmin rights on the SQL server. If you do not have the database set to trustworthy (find the code in any upgrade script at the top) then, even if you allow the user account to be impersonated through active directory, the SQL box will still deny access to database objects not in the source database of the procedure call.
In addition, (see image) it’s the SS of active directory settings for the service account. In order for the execute as statement to work you need to configure the user account to be trusted for delegation. To reiterate, (1) uncomment out line 1 in each CreateJOB and RunJob, then (2) check to make sure the database is set to trustworthy.