I plan to use MS SQL Server 2005 application roles in my application. I will start the role by executing the *sp_setapprole* and finish by executing the *sp_unsetapprole* SPs. The application is implemented in ASP.NET.
I've read that connection pooling doesn't work with application pooling and there is no way to react on connection disconnect event (execute sp_unsetapprole just before disconnection).
I plan to call sp_setapprole at the start of all my SPs and call sp_unsetapprole at the end of all my SPs.
Have you used SQL application roles? What are your XPs? What about performance hit?