Export (0) Print
Expand All

View and Save the Results of a Prediction Query

Topic Status: Some information in this topic is preview and subject to change in future releases. Preview information describes new features or changes to existing features in Microsoft SQL Server 2016 Community Technology Preview 2 (CTP2).

After you have defined a query in Microsoft SQL Server Analysis Services by using Prediction Query Builder, you can run the query and view the results by switching to the query result view.

You can save the results of a prediction query to a table in any data source that is defined in a Microsoft SQL Server Analysis Services project. You can either create a new table or save the query results to an existing table. If you save the results to an existing table, you can choose to overwrite the data that is currently stored in the table; otherwise, the query results are appended to the existing data in the table.

Run a query and view the results

  • On the toolbar of the Mining Model Prediction tab of Data Mining Designer in SQL Server Data Tools (SSDT), click Result .

    The query results view opens and runs the query. The results are displayed in a grid in the viewer.

Save the results of a prediction query to a table

  1. On the toolbar of the Mining Model Prediction tab in Data Mining Designer, click Save query result.

    The Save Data Mining Query Result dialog box opens.

  2. Select a data source from the Data Source list, or click New to create a new data source.

  3. In the Table Name box, enter the name of the table. If the table already exists, select Overwrite if exists to replace the contents of the table with the query results. If you do not want to overwrite the contents of the table, do not select this check box. The new query results will be appended to the existing data in the table.

  4. Select a data source view from Add to DSV if you want to add the table to a data source view.

  5. Click Save.

    Caution note Caution

    If the destination does not support hierarchical rowsets, you can add the FALTTENED keyword to the results to save as a flat table.

Was this page helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2015 Microsoft