Hiding the Row?

  • Hi All,

    We are using .net 2012 and sql 2012.My environment is Recharge Application .

    We want to hide one operator like Vodafone so for that what we need to do.

    Pls help me out....

    Regards
    Chowdary...

  • If you want to prevent that people read certain rows from a table, you can remove access from that table, create a view with the correct filters and give permissions on the view.

    If that's not what you're talking about, we need more details.

    Luis C.
    General Disclaimer:
    Are you seriously taking the advice and code from someone from the internet without testing it? Do you at least understand it? Or can it easily kill your server?

    How to post data/code on a forum to get the best help: Option 1 / Option 2
  • The view is a good approach.

    You could also look to adding an additional join to a table that lists the data you want (or don't want, I'd probably go with whichever is the smaller data set) included and then filter by that table.

    You could also look at an in-line table function that you can pass an exclusion list to (or again, an inclusion list). Not sure I like that idea, but I'm thinking about this as I type.

    "The credit belongs to the man who is actually in the arena, whose face is marred by dust and sweat and blood"
    - Theodore Roosevelt

    Author of:
    SQL Server Execution Plans
    SQL Server Query Performance Tuning

Viewing 3 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic. Login to reply