Dynamic query output

in my asp.net+vb web there is a query as under
http://sqlfiddle.com/#!3/5fb32/2
Output is as under
http://imgur.com/MMJjqws
There is a table named PL and the structure and data is as under
ID    PL
1     HS
2     SH
3     SN 
the data in field PL may change from company to company. That is why i am willing to modify the code above. so that a complete details with a separator for each PL can get in output. sample out put as under.
http://i.imgur.com/lrYeVnH.jpg
i had created the fiddle of the table PL also in above link of my code
if it can be a stored procedure also
I am a System Administrator at Vadodara

Make your query like below
select A.Tank,A.ALI,A.SLI,A.CLI,A.TDI,A.COURSE,A.MHO,A.ATT,A.OSWAL,A.AVIL,A.Present,A.SortOrder,
(A.ALI+A.SLI+A.CLI+A.TDI+A.COURSE+A.MHO+A.ATT+A.OSWAL+A.AVIL+A.PRESENT) as Held,
PL
from (
SELECT CASE WHEN KDPR<=5 THEN 'OTT' WHEN KDPR>=6 and KDPR<=8 THEN 'JTT' WHEN KDPR>=9 THEN 'ORT' END Tank,
SUM(CASE Status WHEN 'ALI' THEN 1 ELSE 0 END) AS ALI,
SUM(CASE Status WHEN 'SLI' THEN 1 ELSE 0 END) AS SLI,
SUM(CASE Status WHEN 'CLI' THEN 1 ELSE 0 END) AS CLI,
SUM(CASE Status WHEN 'TDI' THEN 1 ELSE 0 END) AS TDI,
SUM(CASE Status WHEN 'COURSE' THEN 1 ELSE 0 END) AS COURSE,
SUM(CASE Status WHEN 'MHO' THEN 1 ELSE 0 END) AS MHO,
SUM(CASE Status WHEN 'ATT' THEN 1 ELSE 0 END) AS ATT,
SUM(CASE Status WHEN 'OSWAL' THEN 1 ELSE 0 END) AS OSWAL,
SUM(CASE Status WHEN 'AVIL' THEN 1 ELSE 0 END) AS AVIL,
SUM(CASE Status WHEN 'Present' THEN 1 ELSE 0 END) AS Present,
MAX(CASE WHEN KDPR <= 5 THEN 1 WHEN KDPR >= 6 AND KDPR <= 8 THEN 2 WHEN KDPR >= 9 THEN 3 END) AS SortOrder,
PL
FROM STAFF
GROUP BY CASE WHEN KDPR<=5 THEN 'OTT' WHEN KDPR>=6 and KDPR<=8 THEN 'JTT' WHEN KDPR>=9 THEN 'ORT' END,
PL
) A
ORDER BY A.SortOrder ASC
and then use a tool like SQL Reporting services to show data in format you want. For this just add PL as a grouping column within table and then inside the group add the other fields.
Please Mark This As Answer if it helps to solve the issue Visakh ---------------------------- http://visakhm.blogspot.com/ https://www.facebook.com/VmBlogs

Similar Messages

  • Access database dynamic query output...

    Dear CF Colleagues:
    I need to run a loop for 4 times, to access four seperate values out of a data row in a test results table (tbl_results), where all four are in the row of the student (WHERE studentid = etc).
    It looks like this...
      <cfset variables.TimeTotals = 0>
      <cfloop from="1" to="4" step="1" index="timrec">
         <cfquery datasource="mydsn" name="rs_time">
          SELECT Btime#timrec#
          FROM tbl_results
          WHERE studentid = 'jack';
         </cfquery>
    <cfset variables.TimeTotals = variables.TimeTotals + (????? rs_time.Btime#timrec# value ?????)>
    </cfloop>
    *** QUESTION: How do I address that Btime#timrec# value? Not in this way, I know, but how?
    Looking forward to your wisdom, with gratitude,
    Hans

    As Reed says, many ways to tackle this.
    I would also point out the ability to ready all the BTIme... columns with one query then loop through the columns to total that time.... OR total them in the database.
    These both have the advantage of only needing one network connection to the database, which is the slowest part of this process.
    A)
    <cfquery name rs_time ...>
       SELECT Btime1, Btime2, Btime3 Btime4
    </cfquery>
    <cfset variable.TimeTotals = 0>
    <cfloop list="#rs_time.columnList#" index="col">
         <cfif left(col,5) EQ "BTIME"><cfset variables.TimeTotals = variable.TimeTotals + rs_time[col][1]>
    </cfloop>
    B)
    <cfquery name="rs_time"...>
         SELECT Btime1 + Btime2 + Btime2 + Btime4 AS totalTime
    </cfquery>
    OF COURSE
    I would be remis if I did not point out that you would have a more expandable database design if you normalized this so that the test times where not columns in the tbl_resluts table but rather rows.

  • How to find table name(s) in a dynamic query

    In one of our (9iAS PORTAL)applications, any user can able to run their query statment and get output. All queries will be executed as dynamic SQL thru' a common shema/user who has 'SELECT' privilege on all tables but all users don't have this privilege on all tables. Now, before executing any query I need to find out what are the table name(s) used in this query to check the privilege for the respective user. How do I extract all table names being used in a dynamic query?.
    Thanks
    -Krishnamurthy

    I guess that his users log in to application first, then application uses one account to log in to database, so application are not direct database user since all users share the same account to database. If so, when a user lgins in, you may write it down from application to a database audit table, and you need to write down the dynamic query to the database audit table too, then you may query that audit table to find out. up to here, it looks that your application has to do more to assign what role to a user running the application, since database does not know what user is assessing it.

  • Converting rows to columns using dynamic query.

    I am trying to use the below code that I founnd on the web to conver rows to columns. the reason that I want to use dynamic query is that the number of rows are not know and changes.
    declare
        lv_sql varchar2(32767) := null ;
    begin
        lv_sql := 'SELECT Iplineno ';
        for lv_rec in (SELECT distinct vendor from bidtabs  where letting = '10021200' and call ='021')
        loop
            lv_sql :=   lv_sql
                        || CHR(10)
                        || ', MAX( DECODE( vendor, '
                        || chr(39)
                        || lv_rec.vendor
                        || CHR(39)
                        || ', bidprice, NULL ) ) as "'
                        || lv_rec.vendor
                        || '" ' ;
        end loop;
        lv_sql :=   lv_sql
                    || CHR(10)
                    || 'FROM bidtabs  where letting =  ''10021200''  and call =  ''021''  and lineflag = ''L''  '
                    || CHR(10)
                    || 'GROUP BY iplineno ;' ;
    here is the result
    BIDPRICE     CALL     IPLINENO     LETTING     VENDOR
    9,585     021     0010     10021200     C0104        
    1,000     021     0020     10021200     C0104        
    1,000     021     0030     10021200     C0104        
    17     021     0040     10021200     C0104        
    5     021     0050     10021200     C0104        
    11,420     021     0010     10021200     K0054        
    1,100     021     0020     10021200     K0054        
    1,100     021     0030     10021200     K0054        
    5     021     0040     10021200     K0054        
    3     021     0050     10021200     K0054        
    8,010     021     0010     10021200     V070         
    900     021     0020     10021200     V070         
    1,320     021     0030     10021200     V070         
    11     021     0040     10021200     V070         
    3     021     0050     10021200     V070         
    and here is the desired output
    CALL     IPLINENO     LETTING      C0104              K0054              V070         
    021     0010     10021200      9,585                     11,420                                   8,010
    021     0020     10021200      1,000       1,100     900
    021     0030     10021200      1,000     1,100     1,320
    021     0040     10021200       17     5     11
    021     0050     10021200      5     3     3

    Here is the error message I am getting:
    RA-06550: line 22, column 43:
    PLS-00103: Encountered the symbol "end-of-file" when expecting one of the following:
    begin case declare end exception exit for goto if loop mod
    null pragma raise return select update while with
    <an identifier> <a double-quoted delimited-identifier>
    <a bind variable> << close current delete fetch lock insert
    open rollback savepoint set sql execute commit forall merge
    pipe

  • Dynamic query to produce crosstab/pivot report

    Hello,
    I've not been able to find any examples similar to my situation but perhaps I'm using the wrong search phrases...
    I'm basically trying to create a cross-tab type report based on a dynamic query (since I do not know how many accounts a person has):
    select '  SELECT x.name, x.type, ' from dual
    union
    select ' max(decode(x.account,'''||m.account||''',x.amount,null)) as "'||substr(s.proj||' '||m.account,1,30)||'",'
      from db1.manager m, db1.person p, pi.charges c, db1.status s
    where m.manager_id = p.id
       and M.ACCOUNT_ID = C.ACCT_ID
       and M.ACCOUNT_STRING = S.project
       and C.JNL = (select max(id) from db1.journ j where j.TYPE ='M')
       and p.username = :username
       and nvl(M.END_DATE, sysdate +1) >= sysdate
    group by m.account, s.proj
    union
    select 'sum(x.amount) grand_total from (select m.account, c.name, c.type, c.amount '
              ||'from db1.manager m, db1.person p, pi.charges c '
              ||'where m.manager_id = p.id '
              ||'and p.username = :P68_PRINC '
              ||'and c.acct_id = m.account_id '
              ||'and c.jnl = (select max(id) '
              ||'from db1.journ j where j.TYPE =''M'')) x '
              ||' group by type, name' from dualThe output from this query for the particular manager I selected is:
    SELECT x.name, x.type,
    max(decode(x.account,'12012',x.amount,null)) as "Internal 12012",
    max(decode(x.account,'17929',x.amount,null)) as "Staged 17929",
    max(decode(x.account,'18054',x.amount,null)) as "Help Software 18054",
    max(decode(x.account,'3428',x.amount,null)) as "Mow 3428",
    max(decode(x.account,'3428',x.amount,null)) as "Mow 3428_1",
    max(decode(x.account,'3508',x.amount,null)) as "Stampede 3508",
    max(decode(x.account,'9102',x.amount,null)) as "Open Collaborative 9102",
    sum(x.amount) grand_total
    from (select m.account, c.name, c.type, c.amount
    from db1.manager m, db1.person p, pi.charges c
    where m.manager_id = p.id
        and p.username = :P68_PRINC
        and c.acct_id = m.account_id
        and c.jnl = (select max(id)
       from db1.journ j where j.TYPE ='M')) x
      group by type, nameThis query generates another query that ultimately produces the report below (please pardon the alignment) that I want to see on a report page.
    NAME     TYPE     Internal 12012     Staged 17929     Help Software 18054     Mow 3428     Mow 3428_1     Stampede 3508     Open Collaborative 9102     GRAND_TOTAL
    #EXAM1221     M                                                                            22                                                                                             22
    #EXAM1222     M                          14.83             14.77                     12.56                          2.22                                                          44.38
    #EXAM1223     M                          6.73                 6.7                             5.7                                  1                                                          20.13
    THOEORY       M                          106.5                                                                                                                                      106.5Should I be using the report type that is based on a 'PL/SQL function body returning SQL query' for this type of report??? If so, how does that get set up?
    Thanks in advance!
    ~Jake

    This solution works in that it generates the proper query. I can copy the query (from debug mode) and paste it in TOAD and it works perfectly. However, in the report page it tells me: "report error:ORA-01403: no data found".
    I found this thread: report error: ORA-01403: no data found when SUM columns
    I did have a couple other regions on the page (previous attempts) that were hidden so I deleted them completely. Still no luck.
    I am also summing up several columns...if that has anything to do with it.
    Does anyone have any suggestions?
    Thanks again!!!
    ~Jake
    Edited by: jhammer on Jul 27, 2010 11:02 AM

  • Returning a result set/record from a dynamic query

    There seems to be plenty of examples for using Native Dynamic Sql to formulate and execute a dynamic query, however there are no examples of returning a result set or records which contain the rows of data that are retrieved by executing the query. Could someone give us an example?

    Welcome to the Oracle forum....
    CREATE OR REPLACE PACKAGE curspkg_join AS
    TYPE t_cursor IS REF CURSOR ;
    Procedure open_join_cursor1 (n_EMPNO IN NUMBER, io_cursor IN OUT t_cursor);
    END curspkg_join;
    Create the following Oracle package body on the Oracle server:
    CREATE OR REPLACE PACKAGE BODY curspkg_join AS
    Procedure open_join_cursor1 (n_EMPNO IN NUMBER, io_cursor IN OUT t_cursor)
    IS
    v_cursor t_cursor;
    BEGIN
    IF n_EMPNO <> 0
    THEN
    OPEN v_cursor FOR
    SELECT EMP.EMPNO, EMP.ENAME, DEPT.DEPTNO, DEPT.DNAME
    FROM EMP, DEPT
    WHERE EMP.DEPTNO = DEPT.DEPTNO
    AND EMP.EMPNO = n_EMPNO;
    ELSE
    OPEN v_cursor FOR
    SELECT EMP.EMPNO, EMP.ENAME, DEPT.DEPTNO, DEPT.DNAME
    FROM EMP, DEPT
    WHERE EMP.DEPTNO = DEPT.DEPTNO;
    END IF;
    io_cursor := v_cursor;
    END open_join_cursor1;
    END curspkg_join;
    Dim Oraclecon As New OracleConnection("Password=pwd;" & _
    "User ID=uid;Data Source=MyOracle;")
    Oraclecon.Open()
    Dim myCMD As New OracleCommand()
    myCMD.Connection = Oraclecon
    myCMD.CommandText = "curspkg_join.open_join_cursor1"
    myCMD.CommandType = CommandType.StoredProcedure
    myCMD.Parameters.Add(New OracleParameter("io_cursor", OracleType.Cursor)).Direction = ParameterDirection.Output
    myCMD.Parameters.Add("n_Empno", OracleType.Number, 4).Value = 123
    Dim myReader As OracleDataReader
    Try
    myCMD.ExecuteNonQuery()
    Catch myex As Exception
    MsgBox(myex.Message)
    End Try
    myReader = myCMD.Parameters("io_cursor").Value
    Dim x, count As Integer
    count = 0
    Do While myReader.Read()
    For x = 0 To myReader.FieldCount - 1
    Console.Write(myReader(x) & " ")
    Next
    Console.WriteLine()
    count += 1
    Loop
    MsgBox(count & " Rows Returned.")
    myReader.Close()
    Oraclecon.Close()
    The above code is working in one of our application; which is using ref cursor as result set and get from procedure. I hope you can found more code by google and/or search in this forum as well; if above code is not useful to you.
    HTH
    Girish Sharma

  • Dynamic Query in BW

    Is there any way where in i can create a dynamic query in BW without using the Bex Analyzer or Bex query designer, my requirement is i need few columns from ODS in BW and few other columns are from CRM using RFC, i want to create a one single query output, is there any place where i can write an ABAP or Java where internally the RFC would be called and columns would be rendered.
    Thanks
    Akila.R

    Hi Akila,
    Have you thought of creating remore cube & using multiprovider ?
    Regards
    SS

  • Display results from dynamic query created and executed inside procedure

    Hi;
    I have created this code:
    CREATE OR REPLACE PROCEDURE RunDynamicQuery(Var1 IN VARCHAR2, Var2 IN VARCHAR2, VAR3 IN VARCHAR2) AS
    -- Do something
    -- That ends up with a variable holding a query.... (just an example)
    MainQuery :='select sysdate from dual';
    end RunDynamicQuery;
    How can I run this procedure and see the result on the dymanic query generated inside it?
    BEGIN
    compare_tables_content('VAR1','VAR2','VAR3');
    END;
    Expected Output for this given example:
    20-05-2009 11:04:44 ( the result of the dymanic query inside the procedure variable MainQuery :='select sysdate from dual';)
    I tested with 'execute immediate':
    CREATE OR REPLACE PROCEDURE RunDynamicQuery(Var1 IN VARCHAR2, Var2 IN VARCHAR2, filter IN VARCHAR2) AS
    -- Do something
    -- That ends up with a variable holding a query.... (just an example)
    MainQuery :='select sysdate from dual';
    execute immediate (MainQuery );
    end RunDynamicQuery;
    BEGIN
    compare_tables_content('VAR1','VAR2','VAR3');
    END;
    Output:"Statement processed'' (no sysdate displayed ! )
    Please consider that the collums in the query are always dynamic... PIPELINE Table would not work because I would need to define a container, example:
    CREATE OR REPLACE TYPE emp_tabtype AS TABLE OF emp_type;
    FUNCTION RunDynamicQuery (p_cursor IN sys_refcursor)
    RETURN emp_tabtype PIPELINED
    IS
    emp_in emp%ROWTYPE;
    BEGIN
    LOOP
    FETCH p_cursor
    INTO emp_in;
    EXIT WHEN p_cursor%NOTFOUND;
    PIPE ROW (...)

    That would be a nice solution, thanks :)
    ''For now'' I implemented like this:
    My dynamic query now returns a single string ( select col1 || col2 || col3 from bla)
    This way I don't have dynamic collumns issue, and from business side, this ''string'' format works for them.
    This way I can use the pipelines to get the result out...
    OPEN myCursor FOR MainQuery;
    FETCH myCursor
    INTO myRow;
    WHILE (NOT myCursor%notFound) LOOP
    PIPE ROW(myRow);
    FETCH myCursor
    INTO myRow;
    END LOOP;
    CLOSE myCursor;

  • Forms Dynamic Query

    Im trying to create a dynamic query where the user enters the parameter into a form and then the result is displayed in a table
    So far i have this code
    l_query := 'select news_title, news_story from news.newsitems';
    l_where := 'where news_title = ||'||l_value||'||';
    news_title is of type varchar2 hence i need to get the value in 'quotes' i cant seem to be able to do this any help would be appreciated.
    select news_title, news_story
    from news.newsitems
    where news_title = 'test1';
    this is the output that im after

    SOLVED IT
    l_quote := '''';
    l_where := l_value;
    l_query := 'select news_title,news_story from news.newsitems where news_title = '||l_quote||l_where||l_quote;

  • Dynamic query exception

    How to handle dynamic query exception
    in my dynamic query say if i pass the wrong table name it is showing some errors instead i would like to use my own error statement as output
    eg:
    mytable :test_table
    declare mytable varchar2 :=test_table1234 --(which is not present in DB)
    begin
    execute immediate ('select * from '|| mytable);
    -- Error handling here
    end;

    I wouldn't use WHEN OTHERS, not unless you want to be fired for breaking coding standards. If you insist, at least follow it with RAISE.
    Here is a an exposition of the problem, http://www.orafaq.com/wiki/WHEN_OTHERS and another http://tkyte.blogspot.co.uk/2008/06/when-others-then-null-redux.html

  • Dynamic Query having IN Clause with VARCHAR parameters

    My query is like this -
    SELECT * FROM TABLE1 WHERE parm1 IN ('v1','v2',v3');
    Now I want to write this as dynamic query as input is coming as csv value -
    ip varchar2(500)
    ip:= 'v1,v2,v3';
    How to write this query now ??
    I take variables -
    sqlQry VARCHAR2(4000)
    sqlQry:= 'SELECT * FROM TABLE1 WHERE parm1 IN ' ¦¦ ip -- this will not work
    pls help
    thnx
    D

    Hi,
    When doing some dynamic SQL it is always a good idea to output the generated SQL just to make sure it is well formed.
    For example doing dbms_output.put_line('sqlQry : '||sqlQry);instead of executing it.
    In your case, you would have noticed that the generated SQL would look like : SELECT * FROM TABLE1 WHERE parm1 IN v1,v2,v3Where the parenthesis around the in-list are lacking, and the values are not between quotes :
    Changing your lines to : (...)
    ip:= '''v1'',''v2'',''v3''';
    sqlQry:= 'SELECT * FROM TABLE1 WHERE parm1 IN (' || ip ||')' ; should allow it to work.

  • Modifying the text "Result" and "Overall Result" in a BEx query output

    Hi,
    1) Is it possible to modify the text "Result", "Overall Result" which appears in the sub-total and grand total lines of BEx query output? I do not see any related setting the properties area of the object in BEx Query designer. Do I have to write some VB code or can I do something in Customer Exits?
    Also my client wants that this text need to be made dynamic such as "Sub-Total for the month of Jan 2006".
    I can use work book option and change the texts manually.But this is not meeting my clients requirement.
    2)Is it possible to have dynamic title text for a BEx query?
    We are on BW 3.5 & if any of you could provide / guidance to the above issue.
    Thanks,
    Venkatram

    You will have to use VB Macros to change the text "Result" and "Overall Result", there is not settings in the query designer for the same.
    You can have dynamic descriptions for queries using text variables like Expense Query for month of Jan 2006, if user selected Jan 2006.
    Thanks.

  • Can't create dynamic query that runs!

    Hi all,
    I am attempting to create a dynamic query to go against my Oracle Db with preparedstatement. I tried many other ways also and have exhausted everything I can think of or find. My query works when I put it together with a text editor after it has been output by my program, but won't work as is. It seems like it is splitting it up somehow.
    Here is the code...Is there any way to get this query together?
    Object objectName1 = (String) rapArray.get(0);
    StringBuffer query = new StringBuffer("SELECT end_phrase FROM rap_lines WHERE start_phrase IN ");
    String teststring = objectName1.toString();
    query.append("('" + teststring + "'");
    for (int i=1; i < initArraySize; i++){
    objectName1 = (String) rapArray.get(i);
    teststring = objectName1.toString();
    ********the problem somehow seems to lie HERE where the file is separating just after "teststring" is added********
    query.append(", '" + teststring + "'");
    query.append(")");
    System.out.println(query);
    ResultSet rs = stmt.executeQuery(new String(query));
    returnArray = new ArrayList();
    while (rs.next()) {
    s = rs.getString("end_phrase");
    System.out.println(s);
    Here is the query it outpus and how it seems to be separated...when put together, it works fine.
    SELECT end_phrase FROM rap_lines WHERE start_phrase IN ('Your Pops caught you smoking and he said NO WAY!
    ', 'Its getting hot in here.
    ', 'Im the cream of the crop. I rise to the top.', 'WHA?
    ', 'Youz a big fine woman.
    ', 'That car dont come out till next year!
    ', '$80,000 plus CHROME!
    ', 'Sippin on gin and juice. Laid Back
    ', 'All I wanna do is a zoom zoom zoom and a boom boom!
    ', 'Rollin in my six-fo...')

    Hi.
    The only possibility that I can see here is that the Strings in rapArray have return characters at the end.
    Once you've solved that, here are two miscellaneous pieces of advice:
    1. The value of objectName1 is always a reference to a String. So, declare objectName1 a String. Also, don't do objectName1.toString() - this has no effect except for making the code a little more difficult to read. When you've done these things, you'll probably find the need for testString disappears.
    2. There is a special markuo to put around code when submitting it to the forums. See the 'code' markup at http://forum.java.sun.com/faq.jsp#messageformat
    Regards,
    Lance
    Lance Walton - [email protected]
    Team In A Box - Software without Tragedy
    http://www.teaminabox.co.uk

  • Help on performance with dynamic query

    Hi All,
      We are using SQL Server 2008R2. In our one of report we are using Dynamic query and it is taking more time to retrieve the data. to retrieve 32 records it is taking 13-15 secs. In my observation in a table variable, created more than 60 columns. In
    the SP called one more sp with insert statement.
    Please let me know how i can improve performance of the SP.
    I know that i have to provide the SP  for observation but unfortunately I cannot provide the SP. Please guide me how i can achieve this .
    I tried with temp tables by creating indexes on temp tables but i couldn't find improvement in performance. 
    Waiting for valuable replies.

    First of all a "dynamic query" is not "a query" - it is a multitude of them. Some of them may be fast, others may be slow.
    There is of course no way we can give specific suggestions without seeing the code, the table and index definitions etc.
    We can only give the generic suggestions. As for the code, make sure that you are using parameterised SQL and you are not building a complete SQL string with parameters and all. If nothing else, this helps to make the code more readable and maintainable.
    It also protects you against SQL injection. And it also helps to prevent performance issue due to implicit conversion.
    You will need to look at the query plan to see where the bottlenecks may be. You should look at the actual query plan. Note that the thickness of the arrows are more relevant than the percentages you see; the percentages are only estimates, and estimates
    are often off. Next step is to see if you can add indexes to alleviate the situation. You should also analyse if there are problems in the query, for instance indexed columns that are entangled in expression. If you are using views, make sure that you don't
    have views built on top of views etc. This can often result a table appearing multiple times in a query, when one would be enough.
    Erland Sommarskog, SQL Server MVP, [email protected]

  • SAP MII 14.0 SP5 Patch 11 - Error has occurred while processing data stream Dynamic Query role is not assigned to the Data Server

    Hello All,
    We are using a two tier architecture.
    Our Corp server calls the refinery server.
    Our CORP MII server uses user id abc_user to connect to the refinery data server.
    The user id abc_user has the SAP_xMII_Dynamic_Query role.
    The data server also has the checkbox for allow dynamic query enabled.
    But we are still getting the following error
    Error has occurred while processing data stream
    Dynamic Query role is not assigned to the Data Server; Use query template
    Once we add the SAP_xMII_Dynamic_Query role to the data server everything works fine. Is this feature by design ?
    Thanks,
    Kiran

    Thanks Anushree !!
    I thought that just adding the role to the user and enabling the dynamic query checkbox on the data server should work.
    But we even needed to add the role to the data server.
    Thanks,
    Kiran

Maybe you are looking for

  • Request.getCookies() returns null, not 0 length array

    (reposted from J2EE forum) Just upgraded to 9ias with Embedded OC4J and we were getting a NullPointerException. Our previous calls to request.getCookies() AKA http://java.sun.com/products/servlet/2.1/api/javax.servlet.http.HttpServletRequest.html#get

  • Premiere Pro keeps shutting down and I can't get rid of video clip from timeline

    Lately, Premiere Pro keeps bringing up a message when I'm working on my project that says "serious error, Adobe Premier Pro needs to shut down". It's happened four times now. I've tried restarting the computer, uninstalling some programs I wasn't usi

  • Stock Removal using Pick Point

    Hi all, I have configure Storage Type 100 with SU managed and a pick point ST 001. Once the TO is generated from delivery, the TO information will be from source ST100 to destination ST916. So I would like to know, how to identify the SU is arrived p

  • GPO to prevent users from accessing the root folder of their profile doesn't work

    Hi, Here's the scenario: In a Windows 2012 RDS I created two groups called RemoteApp users and remote desktop users. These groups are defined in the collection for the corresponding RD Session hosts. These groups are not included in any other group,

  • Unable to launch jobs in OEM under Windows XP

    I have not found a way to successfully launch a job in OEM 2.2 (Oracle 8i) under Windows XP. All jobs fail with a VNI-2015 authentication error. According to the Oracle documentation, this is because the preferred credentials have not been correctly