1

I encountered a problem yesterday. When I recreate a stored procedure which selects data from a view, the permissions have been revoked for view objects (like used tables in view) for all users except for the current user. For example;

The version of sybase ase is 12.5

Procedure;

drop proc testproc
go
create proc testproc
as 
begin 
....
    select * from testView
....
end
go
grant exec on testproc to public
go

View;

create view testView as
   select * from testTable
go
grant all on testView to public
go

And the error is

SELECT permission denied on object 'testTable', database 'Mytest', owner 'dbo'.

4

1 回答 1

0

我不认为您将视图创建为 DBO。如果 testTable 是 DBO,为什么您的视图属于另一个用户?

于 2012-10-18T15:21:41.397 回答