Problem in accessing the table

Hi,
My database in 10g (10.2.0.4), I have created one user TEST and given insert,update,delete on ABC table to TEST from XYZ user.
Also,
Grant select any table to test;
but when i connect with test and accessing tables of xyz it is showing error 'table or view does not exist' and i select the table with xyz.abc then i can select the table of xyz.
I do not want to create any synonyms for this table. Can you please help while accessing the table from TEST user without username.tablename
Anand

Anand Vyas wrote:
Actually i have given the example of one table but i have given grant on many table to TEST user.
Also end user uses these tables in application and he can not agree to set alter session in his application.
Is there any way to access the tables of XYZ which i have given the grant to TEST without username.tablename means xyz.abc
Thanks in advance.
AnandGiven your other requirements/restrictions, your only option is to create a synonym. Why do you not want to do that? If you have many of them, you can "write a sql to write a sql"
spool doit.sql
select 'create or replace public synonym ' ||
           table_name ||
           '  for xyz.' ||
           table_name ||
from dba_tables
where owner = 'XYZ';
spool off

Similar Messages

  • Problem for Accessing the Table BDCP..CDPOS..CDHDR..

    Hi Guys,
    i have the problem of accessing the BDCP table.it is working fine in development and testing server.it is taking more time in background in Production server..can anyone help me to optimize this code and please suggest me if i can change anyof the below logic..
    Thanks a lot in advance.
    LOOP AT t_cdobjid.
        objectid-low  = t_cdobjid-cdobjid.
        objectid-sign = 'I'.
        objectid-option = 'EQ' .
        APPEND objectid.
        CLEAR  objectid.
        count = count + 1.
        IF count = 50.
          CLEAR count.
          SELECT * FROM bdcp APPENDING TABLE t_bdcp
          WHERE cretime IN r_cretime AND
                tabname = 'DMEAN' AND
                fldname = 'KEY' AND
          cdobjid IN objectid.
          CLEAR : objectid.
          REFRESH: objectid.
        ENDIF.
      ENDLOOP.
      IF NOT objectid[] IS INITIAL.
        SELECT * FROM bdcp APPENDING TABLE t_bdcp
          WHERE cretime IN r_cretime AND
                tabname = 'DMEAN' AND
                fldname = 'KEY' AND
        cdobjid IN objectid.
        CLEAR : objectid.
        REFRESH: objectid.
      ENDIF.
      IF NOT t_bdcp[] IS INITIAL.
        t_bdcp_val[] = t_bdcp[].
        DESCRIBE TABLE t_bdcp_val LINES l_lines.
        l_max = 50.
        l_mod = l_lines MOD l_max.
        IF l_mod > 0.
          l_loopcount = ( l_lines DIV l_max ) + 1.
        ELSE .
          l_loopcount = l_lines DIV l_max.
        ENDIF.
        DO l_loopcount TIMES.
          CLEAR t_bdcp_emt.
          REFRESH t_bdcp_emt.
          IF sy-index = l_loopcount.
            t_bdcp_emt[] = t_bdcp_val[].
          ELSE.
            APPEND LINES OF t_bdcp_val FROM 1 TO l_max TO t_bdcp_emt.
            DELETE t_bdcp_val FROM 1 TO l_max.
          ENDIF.
          SELECT * FROM cdpos APPENDING TABLE t_cdpos_upc
              FOR ALL ENTRIES IN t_bdcp_emt
                       WHERE
                       objectclas = 'MATERIAL' AND
                       objectid   = t_bdcp_emt-cdobjid AND
                       changenr   = t_bdcp_emt-cdchgno  AND
                       tabname IN ('DMEAN', 'MARA' ) AND
                       fname   IN ('KEY', 'EAN11' ) .
        ENDDO.
        CLEAR   : l_lines ,
                  l_mod ,
                  l_loopcount.
           IF sy-subrc EQ 0.
        IF NOT t_cdpos_upc[] IS INITIAL.
          t_cdpos_del[] = t_cdpos_upc[] .
          DELETE t_cdpos_del WHERE tabname EQ 'MARA' .
          SORT t_cdpos_del BY changenr .
          LOOP AT t_cdpos_upc .
            READ TABLE t_cdpos_del WITH KEY
                       changenr = t_cdpos_upc-changenr
                       BINARY SEARCH .
            IF sy-subrc EQ 0  AND
              t_cdpos_upc-chngind = 'U' .
              DELETE t_cdpos_upc WHERE changenr = t_cdpos_upc-changenr
                                  AND  chngind  = 'D' .
            ENDIF.
            t_upc_matnr-matnr = t_cdpos_upc-objectid .
            APPEND t_upc_matnr .
          ENDLOOP.
          SORT t_upc_matnr BY matnr .
          DELETE ADJACENT DUPLICATES FROM t_upc_matnr COMPARING matnr .
          IF NOT t_cdpos_upc[] IS INITIAL.
            t_cdpos_upc_val[] = t_cdpos_upc[].
            DESCRIBE TABLE t_cdpos_upc_val LINES l_lines.
            l_max = 50.
            l_mod = l_lines MOD l_max.
            IF l_mod > 0.
              l_loopcount = ( l_lines DIV l_max ) + 1.
            ELSE .
              l_loopcount = l_lines DIV l_max.
            ENDIF.
            DO l_loopcount TIMES.
              CLEAR t_cdpos_upc_emt.
              REFRESH t_cdpos_upc_emt.
              IF sy-index = l_loopcount.
                t_cdpos_upc_emt[] = t_cdpos_upc_val[].
              ELSE.
                APPEND LINES OF t_cdpos_upc_val FROM 1 TO l_max TO
                                                    t_cdpos_upc_emt.
                DELETE t_cdpos_upc_val FROM 1 TO l_max.
              ENDIF.
              SELECT * FROM cdhdr APPENDING TABLE it_cdhdr_upc
                               FOR ALL ENTRIES IN t_cdpos_upc_emt
                                WHERE objectclas EQ 'MATERIAL'
                               AND   objectid  = t_cdpos_upc_emt-objectid
                               AND   changenr  = t_cdpos_upc_emt-changenr.
            ENDDO.
          ENDIF.
    Prabhu

    Use the PACKAGE SIZE oprion of the SELECT statement:
    LOOP AT t_cdobjid.
      objectid-low = t_cdobjid-cdobjid.
      objectid-sign = 'I'.
      objectid-option = 'EQ' .
      APPEND objectid.
      CLEAR objectid.
    ENDLOOP.
    SELECT * FROM bdcp APPENDING TABLE t_bdcp
      PACKAGE SIZE 5000
      WHERE cretime IN r_cretim AND
            tabname = 'DMEAN'   AND
            fldname = 'KEY'     AND
            cdobjid IN objectid.
    ENDSELECT.
    IF NOT objectid[] IS INITIAL.

  • Problem in accessing mseg table using MSEG~M Index.

    Hi Experts,
    I am facing problem in accessing mseg table using MSEG~M Index. I used same sequence of fields and i tried with mandt field also. but it is not taking the Index and it is going for TImeout ABAP dump.
    This are my codes used in different ways
    1.  SELECT  mjahr
             bwart
             matnr
             lifnr
             dmbtr
             kostl
             aufnr
             bukrs
             FROM mseg CLIENT SPECIFIED INTO TABLE t_mseg2
                      WHERE mandt EQ sy-mandt      AND
                            matnr NE SPACE         AND
                            werks EQ p_werks       AND
                            lgort NE '0000'        AND
                            bwart IN (122,201,262) AND
                            sobkz NE '0'
                            %_HINTS ORACLE 'INDEX("MSEG" "MSEG~M")'.
    2.   SELECT  mjahr
             bwart
             matnr
             lifnr
             dmbtr
             kostl
             aufnr
             bukrs
             FROM mseg  INTO TABLE t_mseg2
                      WHERE matnr NE SPACE         AND
                            werks EQ p_werks       AND
                            lgort NE '0000'        AND
                            bwart IN (122,201,262) AND
                            sobkz NE '0'
                            %_HINTS ORACLE 'INDEX("MSEG" "MSEG~M")'.
    3.   SELECT  mjahr
             bwart
             matnr
             lifnr
             dmbtr
             kostl
             aufnr
             bukrs
             FROM mseg INTO TABLE t_mseg2
                      WHERE matnr NE SPACE         AND
                            werks EQ p_werks       AND
                            lgort NE '0000'        AND
                            bwart IN (122,201,262) AND
                            sobkz NE '0'.                   
    The above all code is not at all taking the index in Quality server .but in Development it is taking .In Quality server it is reading all datas without using the index and going Timeout ABAP dmup
    Please, Suggest me some solutions.
    Thanks in Advance.
    Regards,
    Nandha

    Hi,
    Without NE also not working out. i am facing same problem still.
    SELECT  bwart
             matnr
             lifnr
             dmbtr
             kostl
             aufnr
             FROM mseg CLIENT SPECIFIED INTO TABLE t_mseg
                      WHERE mandt EQ sy-mandt      AND
                            werks EQ p_werks       AND
                            bwart IN (122,201,262) AND
                            mjahr EQ p_year        AND
                            bukrs EQ p_cc
                            %_HINTS ORACLE 'INDEX("MSEG" "MSEG~M")'.
    Please,check and help me out from this issue.
    Regards,
    Nandha

  • Problem in accessing the ejbs

    HI ,
    I am New to EJB. Here i am getting a problem n accessing the resoucess which are deployed in weblogic. Here i want to access the resoucess from a jsp. So i declared a web.xml. In that what i need to write. can anybody help me what i can specify in web.xml
    Thank you.

    Stop asking the same question again and again. It will decrease your chances of actually getting some help, because your rudeness will make people angry and less inclined to help.
    Your whole approach sounds wrong, but that's your problem. I'm betting that you don't need EJBs. You shouldn't write JSPs without JSTL. Totally, utterly wrong.
    But if you insist, I would recommend that you actually get a book or some documentation that shows you how to call an EJB from a web app. Since you're using WebLogic, maybe reading their documentation will help:
    http://edocs.bea.com/wls/docs70/webapp/components.html
    %

  • How can i access the table GL_CODE_COMBINATIONS  !!

    I'm sorry ~ My English is poor ~~ understand me ^^
    I execute procedure APPS.GL_TEST but error occured
    ORA-00904:"GL_TEST";invalid identifier.
    but it execute well at orange (program that like toad)
    May be i can't access GL_CODE_COMBINATIONS table ~~
    I have to execute APPS.GL_CODE_COMBINATIONS_PKG.INSERT_ROW(
    X_ROWID => X_ROWID,
    X_CODE_COMBINATION_ID => X_CCID,
    it have GL_CODE_COMBINATIONS table
    so have to make account ccid
    How can i access the table GL_CODE_COMBINATIONS !!
    Thank you ^^
    --CREATE OR REPLACE PROCEDURE APPS.GL_TEST(EFFBUF OUT VARCHAR2, RETCODE OUT NUMBER)
    IS
    V_VAL NUMBER;
    BEGIN
    UPDATE GL_CODE_COMBINATIONS
    SET SEGMENT7 = 'TEST'
    WHERE CODE_COMBINATION_ID = 1169;
    END GL_TEST;
    Message was edited by:
    jake

    ORA-00904:"GL_TEAT";invalid identifier.spelling mistake?
    Is user APPS owner of the table GL_CODE_COMBINATIONS?
    If not, you need to grant the necessary privilege directly and not through a role

  • How can I restrict more then one user to access the table?

    Hi !
    I have a problem and two solutions and I am a bit confused as to
    which one is the best one and/or can there be any better way of
    handling the problem ?
    Problem : I have to update a key field of a table when I update
    it in the form 5.0 screen. I am basically doing a maintenance of
    a table and if a certain field is updated then the change has to
    be reflected in two more tables. But the issue is that the field
    is a part of the key in those two tables. So all I can think of
    is that I need to insert new set or rows for that new value of
    the field and delete the old set of records for old values of
    the field.
    There are two ways of doing it;
    1.One option can be to explicitely define two cursors separately
    and fetch the values in them one by one and then insert the new
    records and then delete the old records in both the tables. This
    I feel will be a cumbersome process both in terms of processing
    time and the coding.
    2.Second option I was thinking can be to create two flat tables
    (without keys) and insert the values in them and update the
    changed field there and then insert the rows in the respective
    tables. Delete the old records in the main tables and delets the
    records in these flat tables. This is a bit more faster and
    easier to predict and code. This seems to be a better option for
    me.
    Any comments on these ?
    In both the cases I was thinking of making some provision so
    that more then one person can't update the table simultaneously.
    Since if there are more then one persons doing the processing
    then some inconsistency might creep into the whole process.
    This is easier to do in the second process as if I check the
    data in the flat tables and if there is some data then I can
    presume that some one is doing the processing and I can ask the
    other person to hold for a while. But in this case how can I
    stop more then two people to simultaneously check for the empty
    table and start inserting the record ?
    I was just thinking of having a sepatare table having only one
    field and this will be a key field and as the process begins the
    process will insert a fix value say 'Y' in the key field and at
    the end of the process the record will be deleted and this way
    we can restrict the user to access the process more then one at
    a time..? Since you can't have same value of the key in a table
    more then once.
    Any better way of handling it will be deeply appreciated.
    How about locking the table at the begining and releasing the
    lock at the end ? Will there be any issue in that? since I am
    inserting and deleting the rows in the same transaction.
    Comments welcome,
    Shobhit
    null

    How about performing the update IN the database using a stored
    procedure?
    By using non-database fields on your form to get the
    information, you can then call the procedure in the database to
    perform the updates. If an error occurs in the procedure you
    rollback, if necessary, and send a message or status back to the
    form. If it succeeds you might wish to commit and then re-
    execute the form's query -- using either the original key values
    or the new key values...
    null

  • Short dump while accessing the table

    There is a report ppioa0000, when executing the report it is going for short dump,  error analysis showing that
    <b>when accessing the attributes of dictionary table IOSOPER meaningless values are found.</b>
    and ABAP run time error showing that  DDIC_FIELD_ACCESS_ERROR
    suggest me,
    thanks and regards
    krishna

    The database is damaged, links between SAP dictionary and actual database seems to be broken. Try to use SE14 to adjust database.
    Regards

  • Why compilation error--when trying to access the table from itcsi schema

    Hi,
    when querying the table from itcsi.app iam able to see the data but used in proc saying invalid table name. Whats the problem
    when declared p_app_i_old app.app_i%type----It is throwing pls-00201 error
    1 Create or replace procedure Test_insert(p_app_i_old integer,
    2 p_app_i_new integer,
    3 p_APP_ISAC_CPT_I varchar2)
    4 is
    5 cursor c1 is
    6 select distinct table_name,owner
    7 from all_tab_columns
    8 where owner = 'ITCSI' and column_name='APP_I';
    9 t_tablename varchar2(25);
    10 t_string varchar2(300);
    11 t_num number;
    12 Begin
    13 For c2 in c1 loop
    14 t_num := 0;
    15 t_string := 'SELECT count(*) FROM ' || c2.owner ||'.'||c2.table_name||' WHERE APP_I = '||p_
    16 execute immediate t_string into t_num;
    17 if t_num > 0 then
    18 -- dbms_output.put_line('The table name is '||c1_rec.table_name);
    19 if c2.Table_name = 'APP' Then
    20 INSERT INTO itcsi.App
    21 SELECT p_app_i_new,
    22 app_acrnym_c,
    23 app_x,
    24 app_desc_t,
    25 app_ipads_t,
    26 app_prdcn_stat_t,
    27 app_prdcn_stat_d,
    28 app_isd_tier_c,
    29 app_bus_cont_c,
    30 app_extnl_cstm_c,
    31 app-ecrpt_lvl_c,
    32 app_isac_cpt_i,
    33 dsw_gpn_i,
    34 ed_cntnt_srce_t,
    35 usr_upd_uunm_i,
    36 ed_upd_m
    37 FROM itcsi.APP
    38 WHERE app_i = p_app_i_old;
    39 elsif c2.Table_name = 'APP_CETRN' Then
    40 Insert into itcsi.APP_CETRN
    41 select p_app_i_new,
    42 app_cetrn_i,
    43 app-curr_cmplnc_t,
    44 app_rqr_cmplnc_t,
    45 dsw_gpn_i,
    46 ed_cntnt_srce_t,
    47 usr_upd_uunm_i,
    48 ed_upd_m
    49 FROM itcsi.APP_CETRN
    50 WHERE app_i = p_app_i_old;
    51 elsif c2.Table_name = 'APP_GPC' Then
    52 Insert into itcsi.APP_GPC
    53 select p_app_i_new,
    54 gpc_dpnt_x,
    55 gpc_elemy_x,
    56 pro_i,
    57 dsw_gpn_i,
    58 ed_cntnt_srce_t,
    59 usr_usr_upd_uunm
    60 FROM itcsi.APP_GPC
    61 WHERE app_i = p_app_i_old;
    62 End if;
    63 End if;
    64 End loop;
    65 --Commit;
    66* End;
    SQL> /
    Warning: Procedure created with compilation errors.
    SQL> show errors
    Errors for PROCEDURE TEST_INSERT:
    LINE/COL ERROR
    20/2 PL/SQL: SQL Statement ignored
    37/23 PL/SQL: ORA-00942: table or view does not exist
    40/2 PL/SQL: SQL Statement ignored
    Thanks

    how do i check the grant?
    if am in my own schema,how do i connect to itcsi
    schema?if you are using a schema other than the ITCSI schema, you need to login as ITCSI. or if you have dba user account you can grant a privilege of
      GRANT ALL on ITCSI.APPS to <other SCHEMA>;

  • Problem in accessing the Interactive forms in an ISR Senario(like MSS)

    Hi all,
    I am facing a problem whenever I try to access the interactive form.I am doing this from the standard Business Package, MSS.
    I have done all the configurations needed for these ISR Senarios.
    I suspect the the error is because of some missing IMG customizing.
    Pls provide some directions to solve this problem.
    Exception 1)
    initial exception that caused the request to fail, was:
    com.sap.tc.webdynpro.services.exceptions.PDFDocumentCreationException: ../../sap.com/pcui_gpisr/IsrForm/wd_key13_1171540676406/Error+PDF.pdf?sap-wd-download=1&sap-wd-dl_behaviour=1&sap-wd-cltwndid=DefaultExternal1171589446921&sap-ext-sid=dIiSA97eM6QRuNvwpwdigw%3D%3DzPkd%2BOwplNQFa31FtlR6vA%3D%3D%2Fpcd%3Aportal_content%2Fcom.sap.pct%2Fspecialist%2Fcom.sap.pct.erp.busunan.bp_folder%2Fcom.sap.pct.erp.busunan.roles%2Fcom.sap.pct.erp.busunan.business_unit_analyst_20%2Fcom.sap.pct.erp.busunan.business_unit_analyst_20%2Foverviewfolder%2Fcom.sap.pct.erp.busunan.overview_2%2Fcom.sap.pct.erp.busunan.masterdata_1%2Fcom.sap.pct.erp.common.isrform_page%2Fsap.com%2Fpcui_gp%7Eisr%2FIsrForm%2Fbase&sap-wd-norefresh=X&sap-ep-version=7.00.200611091758
    Exception 2: This Exception occurs when I try to run the application(sap.com/pcui_gp~isr/IsrForm) from the Webdynpro Content Administration Screen.
    com.sap.pcuigp.xssfpm.java.FPMRuntimeException: No scenario specified
    at com.sap.pcuigp.xssfpm.java.MessageManager.raiseException(MessageManager.java:111)
    at com.sap.pcui_gp.isr.isrprocessevent.init.VcISRInit.onBeforeOutput(VcISRInit.java:228)
    at com.sap.pcui_gp.isr.isrprocessevent.init.wdp.InternalVcISRInit.onBeforeOutput(InternalVcISRInit.java:181)
    at com.sap.pcui_gp.isr.isrprocessevent.init.VcISRInitInterface.onBeforeOutput(VcISRInitInterface.java:139)
    at com.sap.pcui_gp.isr.isrprocessevent.init.wdp.InternalVcISRInitInterface.onBeforeOutput(InternalVcISRInitInterface.java:136)
    at com.sap.pcui_gp.isr.isrprocessevent.init.wdp.InternalVcISRInitInterface$External.onBeforeOutput(InternalVcISRInitInterface.java:212)
    at com.sap.pcuigp.xssfpm.wd.FPMComponent.callOnBeforeOutput(FPMComponent.java:602)
    at com.sap.pcuigp.xssfpm.wd.FPMComponent.doProcessEvent(FPMComponent.java:568)
    at com.sap.pcuigp.xssfpm.wd.FPMComponent.doEventLoop(FPMComponent.java:437)
    at com.sap.pcuigp.xssfpm.wd.FPMComponent.wdDoInit(FPMComponent.java:195)
    at com.sap.pcuigp.xssfpm.wd.wdp.InternalFPMComponent.wdDoInit(InternalFPMComponent.java:110)
    at com.sap.tc.webdynpro.progmodel.generation.DelegatingComponent.doInit(DelegatingComponent.java:108)
    at com.sap.tc.webdynpro.progmodel.controller.Controller.initController(Controller.java:215)
    at com.sap.tc.webdynpro.progmodel.controller.Controller.init(Controller.java:200)
    at com.sap.tc.webdynpro.clientserver.cal.ClientComponent.init(ClientComponent.java:429)
    at com.sap.tc.webdynpro.clientserver.cal.ClientApplication.init(ClientApplication.java:362)
    Thanks in advance,
    Sethu

    Hey Sethu,
    Check the QISRSCENARIO settings.Also make sure that your ADS is configured.
    Also, please make sure that you have maintained all the settings which are mentioned in this link.
    http://help.sap.com/saphelp_erp2005vp/helpdata/en/3b/52dd3747934311abee4376f383fdf2/frameset.htm
    Regards
    <i><b>Raja Sekhar</b></i>

  • Attach a selection screen to a Tcode before accessing the table Contents

    Hi All,
         I have a requirement where when we access table from se16 we get a default selection screen...So the same selection screen should b displayed when that table is accessed directly with a transaction code attached to it..i mean the path is Tcode -->selection screen --> table/view contents.

    Hi srinivas,
    first let us discuss about your requirement.when you go to transaction se16 and enter a table name and then when you press enter you will get a selection screen to cretae or view contents of that table.you want to get that selection screen by entering any tcode in command bar.
    if this is your requirement please follow these steps.
    1)go to se16
    2)enter the table name and then press enter.you will get a selection screen for that table as we discussed
    3)in the selection screen go to menu item
      System->Status...
    you will get another screen
    4)in that screen you will see
    in SAP data->in Repository data->Program(Screen)
    note that program name
    5)go to se93(to create a transaction)
    6)enter a tcode which you like and press create
    7)  you will get another screen and in that screen select the radio button
       Program and selectio screen(Report Transaction)
    8)you will get create report transaction screen
    9)in that screen in program text box enter the program name that you noted earlier
    10)check all the checkboxes in GUI support
    11)save,check and execute the transaction.you will get the selection screen that you get when you use se16 for that table.
    please check the screen by entering the tcode that you created in teh command bar.
    please reward points if useful.

  • Webdynpro table sorting problem, its hiding the table while sorting

    Hello All,
    I have a stardard webdynpro application in our portal, when i am pressing sorting button on a table it is hiding the table,
    please share your idea and please help me to get it resloved,
    Cheers,
    Appa

    Hi Appa,
    let's try to narrow down the problem:
    please tell us which application it is about. Is it reproducible for any kind of table in any other standard webdynpro for java applications, or only for this one? Do you face this problem when you use any kind of browsers like firefox, internet explorer?
    Thank you!
    Best Regards,
    Ervin

  • Problem in accessing the Oracle DB Express Edition homepage

    Hi,
    I installed the Oracle database express edition on my computer. I have no problem accessing the website when I point to the URL using the localhost : (Eg., http://127.0.0.1:8080/apex/ or http://localhost:8080/apex/ both work fine). But I am having problem accessing it using my network ip address or machine name.
    (Eg., I cannot access it when I use the URL http://mymachine:8080/apex or http://10.130.1.17:8080/apex) . What should I do? HAve I missed out some configuration steps?
    Rgds
    Ely

    Have you checked on the remote access option?
    There's also a forum dedicated to Oracle Database Express Edition (XE) questions.
    C.

  • Created a user with permissions to one table, but unable to access the table

    I've tried to create a Login that will have access to a single table from a few different databases.
    When I try and query the table, using the created Login I get the following error:
    "The server principal "log_Reader" is not able to access the database "MyDB" under the current security context."
    Here's the SQL I used to create the Login/User:
    USE MASTER
    GO
    CREATE LOGIN log_Reader
    WITH PASSWORD = '<password>'
    GO
    USE DB1
    GO
    CREATE USER log_Reader FOR LOGIN log_Reader
    GRANT SELECT ON dbo.logtable TO log_Reader
    USE DB2
    GO
    CREATE USER log_Reader FOR LOGIN log_Reader
    GRANT SELECT ON dbo.logtable TO log_Reader
    USE DB3
    GO
    CREATE USER log_Reader FOR LOGIN log_Reader
    GRANT SELECT ON dbo.logtable TO log_Reader
    USE DB4
    GO
    CREATE USER log_Reader FOR LOGIN log_Reader
    GRANT SELECT ON dbo.logtable TO log_Reader
    Does anyone have any ideas what I've missed ?
    Thanks, Jason
    MCITP BI Developer - MCTS SQL Server (http://bichopsuey.wordpress.com/)

    I cannot reproduce the error, can you run my script?
    USE [master]
    GO
    CREATE LOGIN [test1] WITH PASSWORD=N'test',
     DEFAULT_DATABASE=[master], CHECK_EXPIRATION=OFF, CHECK_POLICY=OFF
    GO
    USE [B]
    GO
    CREATE TABLE [dbo].[t1](
    [c] [int] NULL,
    [c2] [char](1) NULL
    ) ON [PRIMARY]
    CREATE USER [test1] FOR LOGIN [test1] WITH DEFAULT_SCHEMA=[dbo]
    GO
    GRANT SELECT ON [t1] TO [test1]
    EXECUTE AS USER = 'test1';
    --Use B database
    SELECT * FROM [t1] ---works
    REVERT
    USE master
    GO
    EXECUTE AS USER = 'test1';
    SELECT * FROM B.dbo.[t1] ---works
    REVERT
    Best Regards,Uri Dimant SQL Server MVP,
    http://sqlblog.com/blogs/uri_dimant/
    MS SQL optimization: MS SQL Development and Optimization
    MS SQL Consulting:
    Large scale of database and data cleansing
    Remote DBA Services:
    Improves MS SQL Database Performance
    SQL Server Integration Services:
    Business Intelligence

  • Problem in accessing the media files from another server

    Currently I am working in a project with streaming video on demand and using FMS 4.5.
    Let’s say the FMS is installed on one machine say ‘121.123.35.34’ and there is another server ‘100.54.88.222’ where all the media files belong. Now we need to point to this third server to play videos from FMS.I have done the below changes:
    In the fms.ini file: set the VOD_DIR2 = \\100.54.88.222\myvideos
    In the application.xml: Added the stream: <Streams>/hr;${VOD_DIR2}</Streams>
    From my application accessing the path of flv as:source= “rtmp:// 121.123.35.34:1935/vod/hr/test” . Not able to access the video.
    Note: If I will point to say ‘C:hrvideos’ in VOD_DIR2, then I am able to access the videos using the same URL.
    I also tried mapping the shared path to the FMS machine and then given the mapped drive path in the VOD_DIR2, but this also doesn’t work.
    Please let me know:
    If we need to configure any other parameter to stream videos from another server.
    VOD_COMMON_DIR: I modified this similar TO VOD_DIR to location 'C:hrvideos', I am able to stream the videos using rtmp, but not abl eto stream with http.
              Please let me know  can we stream using http also as we need this to run f4m manifest file.
              http://121.123.35.34:8134/vod/hr/sample.mp4.
              http://121.123.35.34:8134/vod/hr/sample.f4m
    Thanks,
    Anjali

    Hi Shiven,
    I followed the steps suggested by you:
    1) Changed the stream:
    <Streams>/hr;${VOD_DIR2}</Streams> to<Streams>/;${VOD_DIR2}</Streams>
    But not able to access the video with rtmp:// 121.123.35.34:1935/vod/test
    2) For http streaming, changes the HttpStreamingContentPath in hds-vod in the httpd config file, and tried to stream the video like:
    http:// 121.123.35.34:8134/vod/test.mp4 or
    http:// 121.123.35.34:8134/hds-vod/test.mp4
    But not able to load the video.
    Please suggest?
    Thanks & Regards,
    Anjali Rawat

  • Problem in accessing the database through VPN

    I am having problem connecting to the database through VPN but it is working perfectly fine if i connect to the network directly.
    It would be really great if you could help me to resolve this issue.
    Thanks

    I am having problem connecting to the database through VPN but it is working perfectly fine if i connect to the network directly.Fix the VPN problem.
    Check the logfiles.
    For better advice provide any meaningful detail.
    If I do not poke myself in the eye, it does not hurt.
    Tell me to to stop feeling pain.

Maybe you are looking for