Howto: Save prediction query results to relational table

I believe saving prediction query results to relational tables is possible (the BI studio does it!). I am not clear on how to do this w/o the BI studio, which means if I write a DMX query and want to store its output to a relational table, how do I do it?
Tips, anyone?
Thanks!

a) You can write some code do this on the client-side. Use ADOMD.NET in your C# app to execute the DMX query and fetch a data reader, open up another connection to your relational database and write rows of data to the second connection as you read them from the first.
b) You can create a linked server to your Analysis Server instance in your SQL Server relational server instance and then execute a "SELECT * INTO <newtable> FROM OPENQUERY(<linkedserver>, <DMX query>)" T-SQL statement from your relational database connection.

Similar Messages

  • How to pass query result to HTML table?

    Hi,
      i want to get the query result in HTMl table instead of Display Grid. how to do it? i searched in help, it suggests use icommand to do this. but i dont know how to pass the select query result to HTML table.. please help me.
    -senthil

    Hi Senthil,
    You can create an icommand query. You can then use the icommand retrieval methods to capture and manipulate the query data.
    (http://help.sap.com/saphelp_xmii115/helpdata/en/Applet_Reference_Details/iCom
    mand_Reference.htm)
    Basically what we did was, use the getColumnCount() and getRowCount() methods, once you have these two numbers you can set two for loops and use String getValue(int ColID, int RowID) , within the for loops you can generate the inner html content and write the values either in a html table or html form (which is what we did). This seems to work well, I'm still playing around with it and may post this approach on sdn by end of this week.
    Mahwish

  • Can I update datas of Power Query after making relation tables in Power Pivot ?

    Can I update datas of Power Query after making relation tables in Power Pivot ?
    I want to update datas at day by day to viewing today's graph by Power View on Excel.
    Power Query use to transform web site to Power Pivot data model table.
    Power Pivot use to making relasing tables, and making measuers.
    Regards,
    Yoshihiro Kawabata.

    Hi Yoshihiro,
    Can you share an example of the things you are doing in Power Pivot? There are some operations that prevent the query from being refreshed in Power Query; this is not ideal so we are currently working on fixing it.
    Thanks for your feedback.

  • How to store query results into a table

    I want to store the query results to a table. Is there a way to automatically redirect output to a table without using a PL/SQL script.

    Run the following step only once unless you want to create the tabX everytime
    Create tabX as select x,y,z from tabY;
    Next time when you want to store the new results, run the following statement
    Insert into tabX select x,y,z from tabY;

  • Query results to HTML table

    I'm looking for a more efficient way to convert a query result into an HTML table so that I can paste it into an email. The procedure in sqldeveloper (version 3.1.07) is just too clunky and involves too many keystrokes and mouse clicks. And you can't save the HTML to the clipboard. (I'm talking about the "Export..." action here.)
    Am I missing something? Are there any alternatives?
    Thanks!

    ... but sqlplus is so last millenium....
    Seriously? I'm from the last millennium too, nevertheless I don't consider myself out of date
    SQL*PLUS is still my first choice when I have to run a script. I'ts behaviour is reliably the same whereever my script is executed. I would never trust a script that needs another tool to be executed.
    Generating a HTML-mail is IMHO out of scope for a database tool. It's a feature I would expect in a BI tool that specializes on reporting.
    Regards
    Marcus

  • Store SQL query results in db table

    Hi,
    I have a SQL query that produces a report table.
    Is it possible to automatically store the query results (or the report table) as a db table - without interrupting the current report building proces?
    Thanks,
    Dave
    Message was edited by:
    Dave Judge

    Hi Dave,
    You can also insert records into an existing table:
    INSERT INTO TABLEB (colA, colB, colC, etc) SELECT valA, valB, valC, etc FROM VIEWA WHERE etc etc
    This can be done during a page process that runs "Before Header" and you can base your report on the TABLEB. Obviously, you will need to maintain that table to ensure that it is only truncated where necessary, that one user doesn't try to access another user's data on that table and that each time your page is loaded it doesn't try to repopulate the table when you don't need it to.
    Another possiblity is to use a collection - which is user session based
    Andy

  • Multiple BI Query Results into one Table

    Hi All
    Can I embed Multiple queries into one table using VC?
    I have data in different BI sources(Info Areas) like sales and distribution,Shipments etc. Can I write any universal query to retrive data from multiple sources?(If any???)

    Hi Jan Pasha,
    My model contains two BW queries which uses UNION and sent result to one table.
    I tried using UNION also but when I use it I am able to see no records to select in result table.
    I donot have any coloums in common. Is it pre-requisite for using UNION?

  • I had run a  query  I want to insert that query result into another table how it is please suggest me

    1
    1
    EC101
    P
    15
    P
    40
    2010-11-01
    1
    2
    1
    EC102
    P
    10
    P
    30
    2010-11-01
    1
    3
    1
    EC103
    P
    8
    P
    50
    2010-11-01
    1
    4
    1
    EC104
    P
    5
    P
    25
    2010-11-01
    1
    5
    1
    EC105
    P
    10
    P
    40
    2010-11-01
    1
    6
    1
    EC106
    P
    12
    P
    45
    2010-11-01
    1
    7
    2
    EC101
    P
    20
    P
    50
    2010-11-01
    1
    8
    2
    EC102
    P
    15
    P
    60
    2010-11-01
    1
    9
    2
    EC103
    P
    20
    P
    80
    2010-11-01
    1
    10
    2
    EC104
    P
    14
    P
    46
    2010-11-01
    1
    11
    2
    EC105
    P
    18
    P
    74
    2010-11-01
    1
    12
    2
    EC106
    P
    16
    P
    68
    2010-11-01
    1
    13
    3
    EC101
    P
    10
    P
    40
    2010-11-01
    1
    14
    3
    EC102
    P
    20
    P
    60
    2010-11-01
    1
    15
    3
    EC103
    P
    12
    P
    40
    2010-11-01
    1
    16
    3
    EC104
    P
    20
    P
    50
    2010-11-01
    1
    17
    3
    EC105
    P
    12
    P
    40
    2010-11-01
    1
    18
    3
    EC106
    P
    14
    P
    60
    2010-11-01
    1
    19
    4
    EC101
    P
    10
    P
    30
    2010-11-01
    1
    20
    4
    EC102
    P
    14
    P
    40
    2010-11-01
    1
    21
    4
    EC103
    P
    12
    P
    50
    2010-11-01
    1
    22
    4
    EC104
    P
    8
    P
    46
    2010-11-01
    1
    23
    4
    EC105
    P
    4
    P
    25
    2010-11-01
    1
    24
    4
    EC106
    P
    16
    P
    68
    2010-11-01
    1
    25
    1
    EC201
    P
    10
    P
    42
    2011-04-01
    2
    26
    1
    EC202
    P
    18
    P
    60
    2011-04-01
    2
    27
    1
    EC203
    P
    8
    P
    50
    2011-04-01
    2
    28
    1
    EC204
    P
    10
    P
    40
    2011-04-01
    2
    29
    1
    EC205
    P
    8
    P
    30
    2011-04-01
    2
    30
    1
    EC206
    P
    20
    P
    50
    2011-04-01
    2
    31
    2
    EC201
    P
    10
    P
    40
    2011-04-01
    2
    32
    2
    EC202
    P
    12
    P
    45
    2011-04-01
    2
    33
    2
    EC203
    P
    12
    P
    46
    2011-04-01
    2
    34
    2
    EC204
    P
    20
    P
    40
    2011-04-01
    2
    35
    2
    EC205
    P
    10
    P
    40
    2011-04-01
    2
    36
    2
    EC206
    P
    10
    P
    48
    2011-04-01
    2
    37
    3
    EC201
    P
    20
    P
    60
    2011-04-01
    2
    38
    3
    EC202
    P
    18
    P
    70
    2011-04-01
    2
    39
    3
    EC203
    P
    15
    P
    80
    2011-04-01
    2
    40
    3
    EC204
    P
    18
    P
    78
    2011-04-01
    2
    41
    3
    EC205
    P
    16
    P
    65
    2011-04-01
    2
    42
    3
    EC206
    P
    10
    P
    30
    2011-04-01
    2
    43
    4
    EC201
    P
    20
    P
    50
    2011-04-01
    2
    44
    4
    EC202
    P
    14
    P
    10
    2011-04-01
    2
    45
    4
    EC203
    P
    15
    P
    40
    2011-04-01
    2
    46
    4
    EC204
    P
    20
    P
    46
    2011-04-01
    2
    47
    4
    EC205
    P
    10
    P
    50
    2011-04-01
    2
    48
    4
    EC206
    P
    8
    P
    40
    2011-04-01
    2
    from this table I want take the semester wise result and after  that I want to take that result into new table  and I want take the rank also
    how

    Hey,
    Just perform an INSERT AS SELECT and don't forget to add APPEND hint. Also, you can do it using parallelism so before that just enable DML parallel for the IAS. Below are the commands:
    SQL> ALTER SESSION ENABLE PARALLEL DML;
    SQL> INSERT /*+ APPEND */ INTO NEW_TABLE (SELECT * FROM TABLE_QUERY);
    Regards.
    caadecarvalho

  • Direct the output of query results to a table

    Hi,
    I would like to know as how to transfer the results of a query
    to a table.
    eg:
    Select * from employee into <Tmp_table>
    Hence I would have a copy of employee table in the newly created
    Tmp_table.
    Thanks in advance
    Azeez

    Oracle does this so well as:
    create table <Tmp_table> as select * from employee
    Hopefully I understood your question correctly.

  • Error in Query Result on ADF Table using "ROLLUP"

    Hi, I use Jdeveloper 11.1.2.3.0
    My problem is whenever i run and test my query (on SQL Developer 3.2 release) which has a "Rollup" command, it shows the accurate result with the total and subtotals in the right place as i want it..... But after configuring it on my ADF application via ADF Table, whenever i run it, the subtotals are scattered and misplaced (not being at the position they are meant to be like in SQL Developer)..........
    Please is there a possible way to correct this or is there something im not getting right?
    Please i await any good suggestions or corrections...
    Thank you.
    OBYYS.

    Hi,
    maybe you want to share how from ADF you access your query. Do you use ADF BC, EJB, POJO (with JDBC) to issue the call? If you use ADF BC, how is the value displayed in the tester? Note that SQL Developer just prints the result of a query wheras a table requires you to provide row/column values even for rows that define totals. I assume this to be your problem.
    Frank

  • Create Internal table with fields coming as query result of multiple tables

    Hi
    I want to create internal table with the fileds which come as a result of a select query from multiple tables

    My code is something like this. I need  the data from various fields of diff tables depending on the excel file. This data is then to be put in a internal table
    *& Report  Z_EXTC
    report  z_extc.
    type-pools : abap.
    parameter: objname(25) type c.
    data : idetails type abap_compdescr_tab,
           xdetails type abap_compdescr.
    data : ref_table_des type ref to cl_abap_structdescr.
    data: p_table type string.
    data:l_string type string,
         l_filename(200) type c,
         dy_line  type ref to data,
         xfc type lvc_s_fcat,
         ifc type lvc_t_fcat.
    types:begin of itab,
         tabname type dd03l-tabname,
         fieldname type dd03l-fieldname,
         end of itab.
    types:begin of atab,
          tabname type dd03l-tabname,
          cnt type string,
          end of atab.
    field-symbols: <dyn_table> type table,
                   <dyn_table1> type standard table,
                   <dyn_wa>,
                   <dyn_field>.
    data: dy_table type ref to data,
          dy_table1 type ref to data.
    data: itab1 type itab occurs 0 with header line.
    data atab1 type atab occurs 0 with header line.
    data frstrec type i value 0.
    data lastrec type i value 0.
    l_string = ''.
    call function 'GUI_UPLOAD'
      exporting
        filename                      = 'C:\excel_files\FIELDS_CC.TXT'
       filetype                      = 'TXT'
       has_field_separator           = 'X'       .
    if sy-subrc <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    endif.
    *Refresh itab1.
    loop at itab1.
      on change of: itab1-tabname.
        if lastrec = 1.
          move l_string to atab1-cnt.
       move itab1-tabname to atab1-tabname.
          append atab1.
          l_string = ''.
        endif.
        move itab1-tabname to atab1-tabname.
        frstrec = 1.
      endon.
      if frstrec = 1.
        concatenate l_string itab1-fieldname into l_string separated by
    space.
        lastrec = 1.
      endif.
    *write:/ itab1-tabname,40 itab1-fieldname.
    endloop.
    move l_string to atab1-cnt.
    append atab1.
    loop at atab1.
      write:/ atab1-tabname,5 atab1-cnt.
    endloop.

  • How merge query results from joined table into one additional column

    <code>
    Here is example
    TABLE A:
    id | value
    1 | a
    2 | a
    3 | b
    TABLE B
    id | id_in_table_a | value
    1 | 1 | d
    2 | 1 | e
    3 | 2 | g
    </code>
    this select should get all columns from table A where value = 'a' and all values related to this record from B merged to one column separated for example with pipe, so the output should looks like this
    <code>
    id | value | merged_column
    1 | a | d|e
    2 | a | g
    </code>
    thanks for help

    If you are on 10g, you can use this:
    SQL> create table a
      2  as
      3  select 1 id, 'a' value from dual union all
      4  select 2, 'a' from dual union all
      5  select 3, 'b' from dual
      6  /
    Tabel is aangemaakt.
    SQL> create table b
      2  as
      3  select 1 id, 1 id_in_table_a, 'd' value from dual union all
      4  select 2, 1, 'e' from dual union all
      5  select 3, 2, 'g' from dual
      6  /
    Tabel is aangemaakt.
    SQL> select id
      2       , value
      3       , rtrim(v,'|') merged_column
      4    from ( select id
      5                , value
      6                , v
      7                , rn
      8             from a
      9                , b
    10            where a.id = b.id_in_table_a
    11            model
    12                  partition by (a.id)
    13                  dimension by (row_number() over (partition by a.id order by b.id) rn)
    14                  measures (a.value, cast(b.value as varchar2(20)) v)
    15                  rules
    16                  ( v[any] order by rn desc = v[cv()] || '|' || v[cv()+1]
    17                  )
    18         )
    19   where rn = 1
    20  /
       ID VALUE MERGED_COLUMN
        1 a     d|e
        2 a     g
    2 rijen zijn geselecteerd.Regards,
    Rob.

  • How to NOT return MSQuery results in a table in Excel 2010

    In Excel 2010, I only have the options to return my query results in a table, pivot table, or both.  If I convert the resulting table to a range, I lose the query.  Why am I restricted to using a table?
     I want to return the results into a spreadsheet and retain the query like I could in 2003.  I want to be able to layout and format as I want.  I want to be able to enter criteria in a cell and have the query return the proper results. 
    I am querying via ODBC sources against SQL and Redbrick databases.  I was able to do this in 2003.  Is the option still available?  Am I not finding it?

    Hi Bet_T,
    What do you have against getting the results in a table as opposed to a non-
    formatted range? There are quite some advantages a table has over a regular range of cells, like automatic expansion when used as the source of a chart or a pivot table.
    You should still be able to add parameters to cells.
    Regards, Jan Karel Pieterse|Excel MVP|http://www.jkp-ads.com

  • Saving query results to text file

    Hi experts,
    I would like to save a query results to text file.
    The query has desined to the correct structure and I wish the query results will be saved automaticly to text file every time the query is running.
    The query should cintain some sql code that will save the query to text file instead of show the query results.
    What function of SQL should I add to query to achieve that goal. (The query is a long one).
    Thanks in advance,
    Joseph

    If you are talking about Query Manager, it is not difficult to do.  No matter how long your query coding is, just go to the start point of your query.  Then press CtrlShiftEnd to select all the TEXTs.  CtrlC and CtrlV will copy the text (query codes) to text file easily.
    Thanks,
    Gordon

  • Saving query results as excel

    hi,
    Is there a way to save the query results as excel programatically (some kind of utility which does the job)? we are using oracle 10g. This will be a nightly job.. so that every other day morning we have the huge excel report ready for viewing. Any help is appreciated..

    Did you think to try searching the forum? I typed in the EXACT string you used for your thread title and the first hit was ...
    Saving sql query result as excel file

Maybe you are looking for

  • How to Suppress Message saying "Message containing a password has been suppressed?"

    On one of our task sequences, the summary page turns yellow with 1 error saying a message containing a password has been suppressed. The deployment is successful and we don't need to do anything about it, so it is a useless warning. I looked in the B

  • How do I download my already purchased OSX Mountain Lion again?

    I've done this before, but for some reason am blocked now on the App Store Purchases tab. I've already purchased Mountain Lion, and need to create a bootable USB drive to reinstall it. I don't feel like paying $20 again, or finding an illegal copy si

  • App Store Needs: tabs, demos, blurbs, screenshot zoom, etc.

    In my first hour of looking at the new Mac App Store I can see that it needs the following: - Tabbed Browsing - Demo Downloads - Blurbs in Browsing (all the time or via hover) - Wish List - Watch List - Gift List - Screenshot Zoom-in - Videos in scre

  • AirPlay Mirroring Issue

    Hi, Can anyone assist in advising how I can get my airplay mirroring icon to appear again in the top menu bar of the macbook pro?  I've updated software on both apple tv and macbook pro. Both devices are connected to the same network. I know it works

  • MDM Resultset Iview (MDM 5.5 SP4)

    Hi All, I created MDM Resultset iview,in which I selected keymapping.but,when i see the preview,I am always getting No result found. but,I am having some records with key mappings. Thanks for your help.