Home Forums Programming SMO/RMO/DMO What happens if a user tries to execute some SMO object when they have low priorities? RE: What happens if a user tries to execute some SMO object when they have low priorities?

  • Steve, I didn't see your response from March 22 until just now. That does look promising. Your cautionary statements about the user's permissions is making me wonder if it wouldn't be better to have some sort of intermediary service, like a WebAPI service, that has the necessary rights to either read the views you've included or run the SMO. That way we could make it so that the user could pass in a string, which would be their Windows login, then the API would just return a POCO of database roles the user is a member of. I'm pretty sure that not all users would have the necessary rights to run either the SQL query or SMO, so I'm thinking this might be a better solution.

    Kindest Regards, Rod Connect with me on LinkedIn.