Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

PUBLIC access to remote tables

Status
Not open for further replies.

j2willi4

MIS
Sep 19, 2006
24
0
0
US
if i have a view thats base table is local, but has columns from a remote table. PUBLIC has been granted VIEW to to all local and remote tables. Will the PUBLIC's permission to the remote table be represented if I check the permissions to the remote table?

try to read that 5 times fast. :)

Thanks!
 
if you do

Code:
grant all on mylocalview to PUBLIC;

and your view would look like this:

Code:
create view mylocalview (field1, field2) as
select a.f1, b.f2
  from localdatabase:localtable a,
       remotedatabase:remotetable b;

then some user would get results from that view, if he queries against localdatabase

Code:
select * from mylocalview;

Even if you would do

Code:
revoke all on remotetable for PUBLIC;

on the remotedatabase, he would still get results from that view.

if that user would try

Code:
select * from remotedatabase:remotetable;

instead, he would get error 272: no select permission
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top