I was startled to discover that a recordset returned by a Select statement in a SP is update-able even when the user doesn't have explicit rights to the underlying table, but only has Exec permission on the SP. I thought that SQL Server would only give Select permissions unless the SP itself did an Update, Insert or Delete. Do I need to explicitly deny those permissions in the underlying table? That seems a bit annoying as I thought that using a SP helped make the db more secure. It doesn't really do that...in fact it makes it more insecure, IMO. What am I missing?
-Karl
[red] Cursors, triggers, user-defined functions and dynamic SQL are an axis of evil![/red]
[green]Life's uncertain...eat dessert first...www.deerfieldbakery.com[/green]
-Karl
[red] Cursors, triggers, user-defined functions and dynamic SQL are an axis of evil![/red]
[green]Life's uncertain...eat dessert first...www.deerfieldbakery.com[/green]