• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 622
  • Last Modified:

proxy tables in SQL Server

Experts.. I am in the process of migrating an old Sybase database to SQL server 2005. In Sybase I have proxy tables that point to a different database table. How and is there a way to create proxy tables in SQL Server. If there is no such tables, what is the alternative solution?
0
chickanna
Asked:
chickanna
  • 2
1 Solution
 
mayank_joshiCommented:
in ms sql server you can have views that point to different database table.


create view proxytable as
(
select * from servername.dbname.dbo.tablename
)

Open in new window


0
 
lcohanDatabase AnalystCommented:
It is called SQL Security and you could go very deep into details or use views where you could also grant speciffic rights to SQL logins and hide the actual data tables as mayank_joshi suggested.

http://www.microsoft.com/sqlserver/2005/en/us/security.aspx
0
 
lcohanDatabase AnalystCommented:
You can go down to column level permissions like below so only users entitled to perform certain actions against your data can do it:

GRANT SELECT (<column1>, <Column2>,<Column3>) ON Employees TO [MyDOMAIN\user]

DENY SELECT <Column4> ON Employees TO [MyDOMAIN\user]

0

Featured Post

Fill in the form and get your FREE NFR key NOW!

Veeam is happy to provide a FREE NFR server license to certified engineers, trainers, and bloggers.  It allows for the non‑production use of Veeam Agent for Microsoft Windows. This license is valid for five workstations and two servers.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now