I have a table dbo.EMPLOYEE and I have a stored procedure dbo.CHECKLOGIN which checks the empl_id and password.
The stored procedure is simple:
select * from EMPLOYEE where empl_id = @username and password = @password
I currently login as "ABC" which has the permission to execute the stored procedure CHECKLOGIN, but why I got error saying I don't have the permission to select from EMPLOYEE because it belongs to dbo?
Isn't it true that I can do whatever thru stored procedure as long as I have the execute permission?
Thanks!
The stored procedure is simple:
select * from EMPLOYEE where empl_id = @username and password = @password
I currently login as "ABC" which has the permission to execute the stored procedure CHECKLOGIN, but why I got error saying I don't have the permission to select from EMPLOYEE because it belongs to dbo?
Isn't it true that I can do whatever thru stored procedure as long as I have the execute permission?
Thanks!