Re: Hide (do not list) restricted tables
From: BP Margolin (bpmargo@attglobal.net)
Date: 05/20/02
- Next message: BP Margolin: "Re: login error"
- Previous message: Craig: "Hide (do not list) restricted tables"
- In reply to: Craig: "Hide (do not list) restricted tables"
- Next in thread: Mary Chipman: "Re: Hide (do not list) restricted tables"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
From: "BP Margolin" <bpmargo@attglobal.net> Date: Sun, 19 May 2002 18:33:39 -0400
Craig,
> Is there a way to NOT display the restricted table in the list of tables?
Short answer is NO. All users have access to the system tables (metadata),
and the name of a table is metadata.
However, you might consider using the INFORMATION_SCHEMA views, which
automatically take into account user permissions, to generate the list of
tables ... but , if the user bypasses your coding, then the short answer
still holds.
-------------------------------------------
BP Margolin
Please reply only to the newsgroups.
When posting, inclusion of SQL (CREATE TABLE ..., INSERT ..., etc.) which
can be cut and pasted into Query Analyzer is appreciated.
"Craig" <craig_schwartz@hotmail.com> wrote in message
news:OopSpG4$BHA.2580@tkmsftngp05...
> I don't want a user or role to have access to a table. I know I can
> restrict SELECT access, etc., however the table still shows up in their
list
> of tables. Then when the user tries to view the table contents they get
the
> standard permissions error message.
>
> Is there a way to NOT display the restricted table in the list of tables?
>
> Thanks.
>
>
>
- Next message: BP Margolin: "Re: login error"
- Previous message: Craig: "Hide (do not list) restricted tables"
- In reply to: Craig: "Hide (do not list) restricted tables"
- Next in thread: Mary Chipman: "Re: Hide (do not list) restricted tables"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Relevant Pages
|