Connecting to stored procedures using data connections
Stored procedures are predefined queries that can be saved and executed by some relational database systems. The procedures often return a set of result columns which can be used to populate a data connection view and, hence, can result in a data table in Spotfire.
Things to consider
- Not all connectors support stored procedures. To find out if a certain connector supports stored procedures, read the section titled 'Supported Functions' for the connector of interest.
- If you are connecting to a Teradata database that contains macros, Spotfire handles macros the same way as stored procedures.
- Stored procedures that do not result in a data table output will not be visible in the Views in Connection dialog for some connectors. For Oracle stored procedures, some additional requirements must be met. See Supported Functions for Oracle for details.
- The schema of the stored procedure must not change from time to time (for example, the use of parameters must not change the schema).
To set up a data connection with stored procedures:
About this task
Note: The steps below show how to add procedures to a Microsoft SQL
Server connection that is going to be saved in the library. You can also use
steps 4-7 to add procedures to an embedded data connection in an analysis
((after following the first steps in
To add a connection to Microsoft SQL Server
until you reach the Views in Connection dialog ).
Procedure
Known Limitations
- When a view is based on a stored procedure it forces the load method for that data table to be Import data (in-memory analysis).
- Prompting and on-demand loading of data from stored procedures is only supported for parameters, not for columns.
- Details on stored procedures
This dialog is used to specify the output of selected stored procedures in a data connection.
Parent topic: Selecting data for your connection