SQL

SQL

Creating SQL Dataset

To create a SQL dataset, follow the steps given below.

  1. On the home page, click the Create icon (
    ). The Product Selection page is displayed.
  2. Hover over the Data Connect tile and click Create Dataset.
    The following figure shows the Product Selection page.


    The Connect page for choosing your dataset type is displayed.
    From the RDBMS options, select SQL.
    The following figure shows RDBMS options.



    The Create SQL Dataset page is displayed.


  3. Enter a suitable Name for the Dataset.
  4. In the Connection Parameter section, enter the following details.

    -- Host
     (IP address of the server where your database resides)
    -- Port (for the localhost on which the SQL database service is available)
    -- Username (of the account authorized to access the database)
    -- Password (for the account)
    -- Database (Name to access schema(s) and the table(s)

  5. Click Test Connection. The message "Database Connection Successful" is displayed in green if the parameters are accurate. After a successful connection, the Database dropdown is populated with a list of available databases.
  6. From the Schema dropdown, select the schema(s) that contains your table(s) and click Done. After selecting the schema(s), the Select Tables dropdown is populated with a list of all available tables in the schema(s).
  7. From the Select Tables dropdown, select the required tables and click Done.
  8. To add a custom query to select data from the tables, click Add Custom QueryAdd Custom Query screen is displayed. Refer to Adding A Custom Query for details.
  9. Click Create. The SQL dataset is created in Rubiscape and is available for use in your workbooks and workflows.

Notes:

  • The default port is displayed in the Port field and auto-selected while creating the Dataset. You can change the port before making a connection.
  • You can select multiple schemas from the available options in the Schema dropdown.
  • You can select multiple tables from the available options in the Select Tables dropdown.
  • The selection of schema is optional. If you do not select any schema, all tables in all the schemas are populated in the Select Table dropdown.
  • After you select a Database, the Schema dropdown and Select Tables dropdown are populated with a list of all available schemas and tables respectively.
  • Enabling the "Disable Cache" option allows you to create a dataset without generating a dataset cache.
  • When you select to "Disable Cache", the dashboard will not offer the "Enable Direct Query" option. For more information, please refer to the "Enable Direct Query" document.

    • Related Articles

    • RubiSQL

      RubiSQL is a feature within Code Fusion that helps write code in SQL to modify the values in your database. It also allows you to delete values in your database. You can use the RubiSQL node as a stand-alone node or connect it to the Reader node ...
    • RubiSQL

      RubiSQL is a feature within Code Fusion that helps write code in SQL to modify the values in your database. It also allows you to delete values in your database. You can use the RubiSQL node as a stand-alone node or connect it to the Reader node ...
    • ODBC

      Creating ODBC Dataset To create any RDBMS or Non-RDBMS Dataset using ODBC, follow the steps 1 and 2 given in Creating SQL Dataset . The following figure shows the Product Selection page. The Data Connect page for choosing your dataset type is ...
    • RubiSpark

      RubiSpark is a feature within the code fusion on the Rubiscape platform for implementing Spark code. It operates as an independent node, meaning it cannot be connected to any predecessor, successor or reader nodes. Using RubiSpark Code Editor In the ...
    • RubiSpark

      RubiSpark is a feature within the code fusion on the Rubiscape platform for implementing Spark code. It operates as an independent node, meaning it cannot be connected to any predecessor, successor or reader nodes. Using RubiSpark Code Editor In the ...