Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2005 Forums
 SQL Server Administration (2005)
 How to create invisible table in 2005?

Author  Topic 

zubamark
Starting Member

23 Posts

Posted - 2008-05-06 : 13:24:03
Hi,

Can I create invisible table in SQL Server 2005?
Access(all versions) has this option if you add Usys_TableName.
The table will be invisible, but you can get data from it


Mark

sodeep
Master Smack Fu Yak Hacker

7174 Posts

Posted - 2008-05-06 : 13:25:18
Why??
Go to Top of Page

tkizer
Almighty SQL Goddess

38200 Posts

Posted - 2008-05-06 : 13:27:38
This is not possible with SQL Server. The most you could do is create a table that no one has access to it via permissions, but then they won't be able to retrieve data from it either.

Tara Kizer
Microsoft MVP for Windows Server System - SQL Server
http://weblogs.sqlteam.com/tarad/

Database maintenance routines:
http://weblogs.sqlteam.com/tarad/archive/2004/07/02/1705.aspx
Go to Top of Page

X002548
Not Just a Number

15586 Posts

Posted - 2008-05-06 : 13:45:09
Change the font color to be white



Brett

8-)

Hint: Want your questions answered fast? Follow the direction in this link
http://weblogs.sqlteam.com/brettk/archive/2005/05/25/5276.aspx

Add yourself!
http://www.frappr.com/sqlteam



Go to Top of Page

tkizer
Almighty SQL Goddess

38200 Posts

Posted - 2008-05-06 : 13:49:15
quote:
Originally posted by X002548

Change the font color to be white





That made my day!

Tara Kizer
Microsoft MVP for Windows Server System - SQL Server
http://weblogs.sqlteam.com/tarad/

Database maintenance routines:
http://weblogs.sqlteam.com/tarad/archive/2004/07/02/1705.aspx
Go to Top of Page

mcrowley
Aged Yak Warrior

771 Posts

Posted - 2008-05-06 : 14:14:58
under SQL Server 2005, if you have no permissions on an object, that object will not be displayed to you in the GUI tools. To make the objects appear in listings, you can grant VIEW DEFINITION on the schema.

In fact, the system tables behave differently to someone without the VIEW DEFINITION right. The tables you di not have VIEW DEFINITION rights to are not even displayed.
Go to Top of Page

rmiao
Master Smack Fu Yak Hacker

7266 Posts

Posted - 2008-05-06 : 22:15:37
You have to deny VIEW DEFINITION permission on the table from user, otherwise user can still see the table.
Go to Top of Page
   

- Advertisement -