TM1 9.4 SQL Procedure within a Process
-
- Posts: 122
- Joined: Wed Aug 06, 2008 2:50 pm
- OLAP Product: TM1
- Version: 9.5.2
- Excel Version: 2007
- Location: Tega Cay, SC
TM1 9.4 SQL Procedure within a Process
Newbie here again. Is it possible to run a procedure within a TM1 process to derive variables used in a TM1 spreadsheet? I need to run thru 2-3 processes against an Oracle table(s) to derive a set of variables used in our TM1 spreadsheet. Any advice would be appreciated. Thanks, Rick.
-
- Site Admin
- Posts: 1458
- Joined: Wed May 28, 2008 9:09 am
Re: TM1 9.4 SQL Procedure within a Process
Yes
In TI, you can specify an ODBC data source. In the query tab you can execute a stored proc in place of a query. (Watch out for parameters - from memory, they need to look like '?p1?' . The server passes the text of the 'query' directly to the relational engine. Sadly if there is a syntax error you are not told what the problem is. The output from the stored proc comes into TI in columnar format, just as if it were a flat file, table or view.
In TI, you can specify an ODBC data source. In the query tab you can execute a stored proc in place of a query. (Watch out for parameters - from memory, they need to look like '?p1?' . The server passes the text of the 'query' directly to the relational engine. Sadly if there is a syntax error you are not told what the problem is. The output from the stored proc comes into TI in columnar format, just as if it were a flat file, table or view.
-
- Posts: 122
- Joined: Wed Aug 06, 2008 2:50 pm
- OLAP Product: TM1
- Version: 9.5.2
- Excel Version: 2007
- Location: Tega Cay, SC
Re: TM1 9.4 SQL Procedure within a Process
Thank you sir and good news. I will give it a try and update this post with results.
-
- Posts: 122
- Joined: Wed Aug 06, 2008 2:50 pm
- OLAP Product: TM1
- Version: 9.5.2
- Excel Version: 2007
- Location: Tega Cay, SC
Re: TM1 9.4 SQL Procedure within a Process
I tried running the procedure several ways within a process with no luck. I get an OK box when click preview but that is it. Looking at results, nothing was updated per procedure. Any clues where this lowly, pion newbie may be mucking up?
-
- Posts: 122
- Joined: Wed Aug 06, 2008 2:50 pm
- OLAP Product: TM1
- Version: 9.5.2
- Excel Version: 2007
- Location: Tega Cay, SC
Re: TM1 9.4 SQL Procedure within a Process
Resolved. Needed to use BEGIN....END format for procedure in the process to work.