october, 2021


Warning: in_array() expects parameter 2 to be array, bool given in /home/customer/www/groupby.org/public_html/wp-content/plugins/eventON/includes/calendar/class-calendar-event-structure.php on line 60

27oct2:30 pm4:00 pmPackaging Permissions in Stored ProceduresErland Sommarskog

Event Details

The basic mechanism when we want to give users access to data or actions in SQL Server in a controlled way through stored procedure is ownership chaining. This is something we use every day as SQL workers, although we may not be aware of it. Every once in a while, we run into situations where it seems that it is not sufficient to put a statement in a stored procedure, but that users need to be granted explicit permissions – something we may not always be comfortable with, because that would permit the users to do things we do not want them to be able to. 

There are two additional mechanisms in SQL Server we can employ in these situations: certificate signing and the EXECUTE AS clause. In this session I will start by exploring how ownership chaining works and its limitations. I will then proceed to explore the other two options and I will particularly focus on certificate signing, as this is the preferred method. At first it may seem overly complex, but I will show how it easily can be automated. EXECUTE AS may seem simpler, but I will point out potential problems with it, not the least if you try to use it on server level and consider to set the database as TRUSTWORTHY. This session is directed towards both developers and DBAs, as this session deals with problems you may face in either roles.

JOIN THIS SESSION HERE: https://groupby.org/attend

more

Virtual Event Details

Event has already taken place!

Time

(Wednesday) 2:30 pm - 4:00 pm UTC