proxy tables in SQL Server

Posted on 2011-05-12
Last Modified: 2012-05-11
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?
Question by:chickanna
    LVL 9

    Accepted Solution

    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

    LVL 39

    Expert Comment

    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.
    LVL 39

    Expert Comment

    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]


    Featured Post

    How your wiki can always stay up-to-date

    Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
    - Increase transparency
    - Onboard new hires faster
    - Access from mobile/offline

    Join & Write a Comment

    In this article—a derivative of my blog post (—I will explore a few different perspectives on which week today's date falls within using Microsoft SQL Server. First, to frame this stu…
    The Delta outage: 650 cancelled flights, more than 1200 delayed flights, thousands of frustrated customers, tens of millions of dollars in damages – plus untold reputational damage to one of the world’s most trusted airlines. All due to a catastroph…
    Using examples as well as descriptions, and references to Books Online, show the different Recovery Models available in SQL Server and explain, as well as show how full, differential and transaction log backups are performed
    Viewers will learn how to use the SELECT statement in SQL to return specific rows and columns, with various degrees of sorting and limits in place.

    729 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    19 Experts available now in Live!

    Get 1:1 Help Now