How to give view access to a column in a table

I have a view with 100 columns. I want certain users to have access only to 10 columns. I was able to do this without any issues, but when they connect and expand the view they could still see all the column names.
I was wondering whether there is away to restrict access to that too. So that the user will see only the columns that they have access to.
Prsently, they see all the columns and when they do a select * , sql gives the error "Permission denied"
Could they enter select * and see only their column names too?
donsls

It is not clear to me when you said "but when they connect and expand the view they could still see all the column names".
I tried to expand this view in SSMS but could not able to see the other columns.
Could you please again and let us know more about this. I treid to expand this view in SSMS I am not able to see other columns.
USE [TestDB]
GO
CREATE TABLE [dbo].[onetest](
[id] [int] NULL,
[name] [char](100) NULL,
[test] [char](100) NULL,
[count] [int] NULL
GO
Create view [dbo].[vs] as select ID,name from onetest
GO
SELECT * FROM VS
GO
Thanks
Manish
Please click Mark as Answer if my post solved your problem and click
Vote as Helpful if this post was useful.

Similar Messages

  • How to give "print"access to the requisitioner

    Hi,
    I need to know the procedure,how to give "PRINT" access to the requisitioner. We have this access to the buyer(monitor shopping cart/check status/process PO etc....)
    Also how can a requisitioner at least print PO fromECC?
    pls help.
    Bis

    Hi Venkatesh ,
    This note does not mention SRM 7.0 .  I just wanted to confirm from you that the changes the note mentions does in fact work in SRM 7.0?
    We are upgrading to SRM 7.0 and are thinking of switching from classic to extended classic, but ONLY if we can have the PO output in the ERP system.
    Thanks!
    -Paul

  • How to give an access to CubeServ in NetWeaver 7.01 trial

    Hello, everebody.
    Can somebody help me?
    Can I give an access to CubeServ in NetWeaver 7.01 trial for studing?
    Is it possible to do it?

    Hi Rakesh,
         Please check the similar thread [Here |/message/5412450#5412450 [original link is broken];
        There is how to guide docu please check 
    [this|http://help.sap.com/javadocs/NW04S/current/bi/howtos/How_To_BI_Java_SDK_Portal_iView.pdf] for the referance  
    Regards,
    S.Manu.

  • How to provide View access for all the projects to an employee?

    We’ve a requirement to provide view access to certain employees to all the projects. They are supposed to have only view access to the project information (HTML Interface). We don’t want to assign these employees to the projects.
    In this regard we created a menu that gives users only view access to project information. We assigned the employee/user the profile option “PA: Cross Project User View” and set the value to “Yes”. However the user is only able to view Project Overview information. The moment I assign the user to a project (non scheduled member), the user is able to view all project information.
    We’ve tried bouncing the apache post assignment of the profile option to the user, but no luck. Is there something else required to be done? Why is the profile option not working? Please advice.
    Note: We don’t want to give the user Project Authority as it by default gives the user rights to modify information in the project.
    Any other suggestions to achieve the said functionality is most welcome.

    For 10.1.4, there are two ways to reference a document :
    1. Path URLs which takes the form :
    http://<host>:<port>/portal/page/<dad>[lang-<language>][ver-<version>]/<page_group_name>/<page_path>/<item_name>
    More info : http://download.oracle.com/docs/cd/B14099_19/portal.1014/b13809/apdxurls.htm#BEIBFDBH
    2. Durable URLs which take the form :
    http://<host>:<port>/portal/page/<dad>[lang-<language>][ver-<version>]/<item_guid>
    The advantage of durable URLs is that they will not change even when the object name changes. The durable URL is available in the properties sheet of the item.
    More info :
    http://download.oracle.com/docs/cd/B14099_19/portal.1014/b13809/pageinfo.htm#BABDGHIB

  • BSP: How to create check box in a column of a Table View

    Hi All,
    I have a table view in Web IC scenario. my requirement is to display check box in one of the column of the table view.. so that i can select multiple lines from the table and do some calculations!.
    Anybody have any hint/clue
    Thanks in advance,
    sudeep v d.

    Hi,
    This can be achieved by using a Table iterator.
    Please check the standard examples for this.
    Thanks,
    Rashmi.

  • How to show current date in a column of dimension table in ssas

    Hi,
    I have 2 dimension tables (ALLWORK and YOURWORK) and 1 measure table (STATS). In ALLWORK dim table, I have 4 columns, one of them is END_DATE. Based on END_DATE and current date I want to create a named calculation field. To achieve this, I
    want to show the current date in 5th column (of ALLWORK dim table) as calculated member (as named calculation wont show me correct date).
    Problem is, I am not able to create the column in the dimension table. While creating the calculated member, I am not able to select the ALLWORK dimension table, it always selects MEASURE by default. Please help.
    thanks
    Tarique
    thanks and regards Tarique Aslam

    Hi Tarique,
    According to your description, you want to add a column to your dimension to show the current date, right?
    In data source view, we can add named calculation to your table. A named calculation is a SQL expression represented as a calculated column. This expression appears and behaves as a column in the table. A named calculation lets you extend the relational
    schema of existing tables or views in a data source view without modifying the tables or views in the underlying data source.
    Reference
    http://msdn.microsoft.com/en-in/library/ms174859.aspx
    http://devmau5.wordpress.com/2010/03/25/the-getdate-of-mdx/
    If I have anything misunderstand, please point it out.
    Regards,
    Charlie Liao
    TechNet Community Support

  • How can I take data from specific column in a table using VBA

    Hi
    I do not know how to take the values from the last column in a table, I know how to look over each row but I cannot take the last column values for each row I pass by.
    This is the table for example:
    | Date | Account1 | Account2 | Description | Amount |
    |12/03/2008 | 123-32 | 325-78 | None | $50 |
    |12/03/2008 | 123-32 | 325-78 | None | $20 |
    |12/03/2008 | 123-32 | 325-78 | None | $10 |
    |12/03/2008 | 123-32 | 325-78 | None | $40 |
    I am using this code as a reference that User FiveNines gave me to loop through all the rows in the table, so What I need is to take the values of the column Amount for each row I go through.
    Private Sub RSWVBAPage_afterPlay()
    Dim tbl As HTMLTable
    Dim tblRow As HTMLTableRow
    Dim tblCell As HTMLTableCell
    Dim strValue As String
    Dim rButton As HTMLInputElement
    ' ******** This would be your global variable. I put this so that values are seperated by a semicolin you can use what ever format works for you.
    strValue = "03/22/2008;03/22/2008;*************1977;*************1977;$25.25;Jan, Jun, Jul, Dec"
    ' Strip out the ; for inner text comparison
    strValue = Replace(strValue, ";", "")
    ' This will get the table but can be modifoed to be more specific
    Set tbl = RSWApp.om.FindElement(, "TABLE")
    ' This loops through all the rows in the table until a match to the strValue is found
    For Each tblRow In tbl.rows
    If tblRow.innerText = strValue Then
    RSWApp.WriteToLog "Tables", "Passed", "Row is Present", True
    End If
    Next
    End Sub

    Hi Lippix.
    This is code that will loop the rows then loop the cells and check for "$" which will return dollar values. I also attached a script.
    Private Sub RSWVBAPage_afterPlay()
    Dim tbl As HTMLTable
    Dim tblRow As HTMLTableRow
    Dim tblCell As HTMLTableCell
    Dim strValue As String
    ' This will get the table but can be modifoed to be more specific
    Set tbl = RSWApp.om.FindElement(, "TABLE")
    ' This loops through all the rows in the table until a match to the strValue is found
    For Each tblRow In tbl.rows
      For Each tblCell In tblRow.cells
      ' cycle through the cells and only report those with a dollar value by searching for $
        If InStr(1, tblCell.innerText, "$") <> 0 Then
       RSWApp.WriteToLog tblCell.innerText
       End If
      Next
    Next
    End Sub

  • How to set color for a particular column in advance table?

    How can we set the color of a particular column in advance table based on some parameter feteched from vo query in process request?

    i have tried the same way as mentioned in the post but ,its giving error
    java.lang.ArrayIndexOutOfBoundsException: 0
    processRequest code
    OAAdvancedTableBean table =
    (OAAdvancedTableBean)webBean.findIndexedChildRecursive("TimEntAdvtbl");
    if (table != null)
    System.out.println("table");
    OAColumnGroupBean daily =
    (OAColumnGroupBean)table.findIndexedChildRecursive("DailyColGrp");
    if (daily != null)
    System.out.println("daily col");
    OAColumnGroupBean ColGrp6 =
    (OAColumnGroupBean)table.findIndexedChildRecursive("ColGrp6");
    if (ColGrp6 != null)
    System.out.println("ColGrp6");
    OAColumnBean SatCol =
    (OAColumnBean)webBean.findIndexedChildRecursive("SatCol");
    if (SatCol != null)
    System.out.println("col");
    OAMessageTextInputBean sat1 =
    (OAMessageTextInputBean)SatCol.findIndexedChildRecursive("sat");
    if (sat1 != null)
    System.out.println("sat1");
    OADataBoundValueViewObject csssat= new OADataBoundValueViewObject(sat1,"Color");
    sat1.setAttributeValue(oracle.cabo.ui.UIConstants.STYLE_CLASS_ATTR, csssat);
    Error Page
    ## Detail 0 ##
    java.lang.ArrayIndexOutOfBoundsException: 0
         at oracle.sql.NUMBER._fromLnxFmt(NUMBER.java:3199)
         at oracle.sql.NUMBER.toString(NUMBER.java:761)
         at oracle.sql.NUMBER.stringValue(NUMBER.java:2090)
         at oracle.jbo.domain.Number.toString(Number.java:390)
         at oracle.apps.fnd.framework.webui.OADataBoundValue.formatObject(Unknown Source)
         at oracle.apps.fnd.framework.webui.OADataBoundValue.convertValue(Unknown Source)
         at oracle.apps.fnd.framework.webui.OADataBoundValue.convertValue(Unknown Source)
         at oracle.apps.fnd.framework.webui.OADataBoundValueViewObject.convertValue(Unknown Source)
         at oracle.apps.fnd.framework.webui.OADataBoundValue.getValue(Unknown Source)
         at oracle.apps.fnd.framework.webui.OADataBoundValueViewObject.getValue(Unknown Source)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.getAttributeValueImpl(Unknown Source)
         at oracle.apps.fnd.framework.webui.beans.message.OAMessageTextInputBean.getAttributeValueImpl(Unknown Source)
         at oracle.cabo.ui.BaseUINode.getAttributeValue(Unknown Source)
    Please help

  • How to fix the width of sorting column about adf table ?

    I develop project with ADF in jdeveloper.
    When click on the sorting column header in adf table,it will adjust the width of the sorting column header.It will make page shifting.
    How can I do to avoid the adjusting ?
    How can I do to fix the width of soting table header?
    Any hint will be appreciated.
    Thank you!
    Message was edited by:
    user618145

    I have set the column width like this:
    in style.css:
    /** Column Settings **/
    af|column::header-text
    background-color:#F0EDE1;
    color:#000000;
    font-family:Arial,Helvetica,sans-serif;
    font-size:12px;
    font-weight:bold;
    padding-left: 2px;
    padding-right: 2px;
    padding-top: 3px;
    padding-bottom:3px;
    border-color: #B5B5B5;
    WIDTH: 120px;
    af|column::sortable-header-text
    background-color:#F0EDE1;
    color:#000000;
    font-family:Arial,Helvetica,sans-serif;
    font-size:12px;
    font-weight:bold;
    padding-left: 2px;
    padding-right: 2px;
    padding-top: 3px;
    padding-bottom:3px;
    border-color: #B5B5B5;
    WIDTH: 120px;
    and in jsp page,write like this:
    <af:panelBox text="test" width="1000" background="dark" >
    <af:table emptyText="" value="#{ftOverview.listOfTransefersVect}" var="transfers" width="100%" banding="row" bandingInterval="1">
    <af:column sortable="true" sortProperty="transactionId" headerText="#{resources['ft_overview.ref']}" formatType="text" width="39"
    noWrap="true">
    <af:outputText value="#{transfers.transactionId}" escape="false"/>
    </af:column>
    </af:table>
    </af:panelBox>
    but it seems doesn't work well.

  • How to increase text size of a Column header of table in webdypro

    Hi All,
    Can anybody suggest me how to increase the text size of a column header of table in webdyrpo. I didnt find any option anywhere. can anybody help me out to solve this issue?
    Regards
    Ravikumar

    Hi Ravikumar,
    As Sukanta has suggested create a Simpletype of String Type and Length 40.
    Then create a context for the column header and for its type, instead of choosing
    from the drop down, choose the 3 dots.
    In the window that appears, select Local Dictionary, and Select the Simpletype
    that you have created, from the respective package name. And click OK.
    This will make the text of ColumnHeader of type String and Length 40.
    Hope it helps.
    Regards,
    Alka.

  • How to compare array of String with column of a table

    Hi,
    i have a array of string(say array is of length 1000). I want to
    compare those string in array with one table column
            - whether that table column has a string
                            if yes
                                            do nothing.
                            if no
                                            then insert that string into table.
            - whether table has obsolete row i.e, the one present in table and
    not in array
                            then delete that row.
    How do i go about this, because i see, it is not feasible to loop
    through array and search table to find new string OR loop through each
    row from table to find some obsolete row
    How can i accomplish this task more feasibly(without running query for
    each string, for comparission)? Is there any way to find this kind of
    problem. I would have been easy if i had to compare two tables(with
    UNION and INTERSECT), but it is not the case.
    thanks,
    kath.

    I'm not sure, whether I understand your problem correctly. Only two comments:
    - if both arrays are sorted, all can be done running exactly once simultaneously through both arrays.
    - if the column is marked as UNIQUE, all column strings will be different. I.e. you cannot insert the same string a second time.
    Regards  Thomas

  • How do I add more than one column to a table using SQL?

    Hi
    I need to add 3 columns to a table using SQL
    the syntax
    "ALTER TABLE TEST ADD COLUMN newcol1 float";
    works fine - for adding one coumn only.
    For multiple columns I tried various permutations along the lines of
    "ALTER TABLE TEST ADD (COLUMN newcol01 float, COLUMN new2 float,COLUMN new3 float)";
    "ALTER TABLE TIPSTEST ADD COLUMN new1 float"
    "ALTER TABLE TIPSTEST ADD COLUMN new2 float"
    "ALTER TABLE TIPSTEST ADD COLUMN new3 float"
    etc., but this doesn't work.
    From a web search it sounds like SQL can only add one column at a time.
    I have a workaround : create intermediate temporary tables , copying data and adding
    one column at each stage. It seems a fairly awkward way of programming though.
    Am I missing something simple : is there a way to add multiple columns in one go?
    Thanks

    OK : solved an underlying problem with this one myself
    for the code
    String createString;
    createString =  "select COFFEES.* INTO NEWCOFFEES FROM COFFEES"; // example
              Statement stmt;
              try {
                   stmt = a_Globals.database1Connection.createStatement();
                          stmt.executeUpdate(createString);
                   stmt.close();
                   a_Globals.database1Connection.close();
              } catch(SQLException ex) {
                   System.err.println("SQLException: " + ex.getMessage());
              }                    commenting out the line:
    a_Globals.database1Connection.close();
    Allowed the subsequent SQL statement(s) to work OK. Looks like this was the cause of several
    difficulties, preventing me doing several SQL instructions in turn.
    Thanks for the responses.
    Mike2z

  • How do i know the number of columns in a table??

    dont think the question is too odd for me to post here..
    i am a new bee to oracle..
    so i just to know is there some way by which i can know the the total number of columns in a table..
    Thnks in advance for any solutions given

    did you try it whaterver is suggested?
    SQL> desc dept;
    Name                                                                          
    DEPTNO                                                                        
    DNAME                                                                         
    LOC                                                                           
    SQL> SELECT c.TABLE_NAME,c.COLUMN_NAME,c.COLUMN_ID FROM user_tab_columns c
      2  WHERE table_name='DEPT';
    TABLE_NAME                     COLUMN_NAME                     COLUMN_ID
    DEPT                           DEPTNO                                  1
    DEPT                           DNAME                                   2
    DEPT                           LOC                                     3
    SQL> SELECT COUNT(c.COLUMN_NAME) FROM user_tab_columns c
      2  WHERE table_name='DEPT';
    COUNT(C.COLUMN_NAME)
                       3

  • How to control the width of the columns in a table in the oaf page?

    hi,
    We have a requirement to adjust the width of the columns of the table so that they are in line with the width of the page.
    Please do share any feasible solution.
    thanks,
    Danish

    try to personalize and set the width property of item.
    else use below code in Controlller.
    1) public class wyseQotLinesCOEx extends QotLinesCO
    public CSSStyle cellUpperCase;
    public void processRequest(OAPageContext pageContext, OAWebBean webBean)
    2)
    get handle of inputitem as inputbean;
    cellUpperCase = new CSSStyle();
    cellUpperCase.setProperty("width","50");
    if (inputbean != null)
    {        inputbean.setInlineStyle(cellUpperCase);
    }

  • How to give full access to mailbox to users in trusted domain?

    Hi,
    I am working on a migration-project where we migrate all users from one domain to a new domain. I have Exchange in both domains, and migrates mailoboxes from the old to the new domain. In the old domain I have a number of mailboxes that are used for common
    calendars for the departments. My problem is: How can I give the users who has been  migrated to the new domain full access to the existing calendar-mailboxex in the old domain? I have given the accounts in the new domain full access to the mailboxes
    in the old domain by using to following command: get-mailbox mailboxname | add-mailboxpermission -accessrights FullAccess,ExternalAccount -user newdomain\username
    After the command has completed I can see the account listed in the "Manage Full Access Permission"-dialog, but still the new useraccount cannot create appointments etc in the original calendar from Outlook.
    Any tips on this?
    Thor-Egil

    Hi Thor,
    Thank you for your question.
    Did the issue occur when we use OWA?
    Are there any errors when they cannot create appointments?
    We could enable “Support cross forest delegation” on FIM(Forefront Identity Manager) to check if the issue persist.
    There is an article for us to how to enable “Support cross forest delegation” by the following link:
    http://blogs.technet.com/b/neiljohn/archive/2011/10/12/exchange-server-2010-cross-forest-delegation.aspx  
    If there are any questions regarding this issue, please be free to let me know. 
    Best Regard,
    Jim
    Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact [email protected]
    Jim Xu
    TechNet Community Support

Maybe you are looking for

  • Unauthorized download

    In my downloads folder in the dock is a file called- 2WEzbWHN.exe.part - that I don't remember downloading. It will not drag to the Trash nor anywhere else. When I open the downloads folder from the Finder it doesn't appear, as if it's invisible. I c

  • Can't set up Lightroom Publish Services, internal error occurs

    I'm trying to use LR 3's publish service for SmugMug.  I'm a little scared since  I have a large number of photos to sync up. When I click on "setup" on the SmugMug export services, I get a popup  error with this message: "An internal error has occur

  • Copy and Paste from Word to ID – as text please?

    Recently upgraded to CS4 and Office 2008. Now when I copy and paste text from Word to ID it only comes in as an image. If I'm copying a single paragraph from a lengthy Word doc, I really don't want to have to paste it into a new Word doc, save that,

  • WSJ "Newsstand" app for iPad install issues

    For the past three days I've been watching the Wall Street Journal's new "newsstand" version of the app try to install on my iPad 2 (6.0.1).  After spending some time online, I tried powering down and restarting.  For whatever reason, this worked for

  • Order Unit Price changeable in ME12

    Hi everybody, It is possible to change the field "Order Unit Price" in  ME12  transaction? I tried by SPRO without any solution, i read some posts about this topic but I couldnt find any solution ( I tried changing the Variable Purchase Order Unit Ac