I created a user that execute a stored procedure. This stored procedure than goes into each database to see if a specific table name exists and list only databases with that table name.
This is the error I get when I log in as that user to execute the stored procedure.
The server principal "svc_sysadmin" is not able to access the database "model" under the current security context.
What kind of permission do I need to grant so that account? The stored procedure also has an Alter login in there as well to change password.