Hi,
does anyone know whether it's possible to use a table-valued function in the data source of a TI?
i.e.
select * from tfn_Test1 ('Param1','Param2')
At the moment I'm getting an SQL statement failing error
I remember I saw stored procedures working, but never tried table-valued functions
Thank you!
Table-Valued function as data source in TI
-
- MVP
- Posts: 2834
- Joined: Tue Feb 16, 2010 2:39 pm
- OLAP Product: TM1, Palo
- Version: Beginning of time thru 10.2
- Excel Version: 2003-2007-2010-2013
- Location: Atlanta, GA
- Contact:
Re: Table-Valued function as data source in TI
TM1 is generally not in the business of supporting or not supporting SQL commands. It's really more about whether the ODBC driver installed on your TM1 server supports it. Have you tried your query in another client (like Toad, or some other front-end) to make sure it works. If it is successful in returning rows via ODBC then it should work in TM1.mvaspal wrote: ↑Mon Aug 09, 2021 12:33 pm Hi,
does anyone know whether it's possible to use a table-valued function in the data source of a TI?
i.e.
select * from tfn_Test1 ('Param1','Param2')
At the moment I'm getting an SQL statement failing error
I remember I saw stored procedures working, but never tried table-valued functions
Thank you!
p.s. You may be able to find more clues in the tm1server.log file as to why it isn't working.
-
- Community Contributor
- Posts: 341
- Joined: Wed Nov 03, 2010 9:16 pm
- OLAP Product: tm1
- Version: 10 2 2 - 2.0.5
- Excel Version: From 2007 to 2013
- Location: Earth
Re: Table-Valued function as data source in TI
Thank you Tom
This is IBM cloud SaaS environment, so no chance to test it anywhere else than in the TI.
The function works fine locally, and our ODBC connection is also set up and running, can read from tables
Secure Gateway uses "ODBC Driver 13 for SQL Server"
Maybe I should have asked if anybody ever managed to use such a function from IBM Cloud via Secure Gateway
This is IBM cloud SaaS environment, so no chance to test it anywhere else than in the TI.
The function works fine locally, and our ODBC connection is also set up and running, can read from tables
Secure Gateway uses "ODBC Driver 13 for SQL Server"
Maybe I should have asked if anybody ever managed to use such a function from IBM Cloud via Secure Gateway
-
- Community Contributor
- Posts: 341
- Joined: Wed Nov 03, 2010 9:16 pm
- OLAP Product: tm1
- Version: 10 2 2 - 2.0.5
- Excel Version: From 2007 to 2013
- Location: Earth
Re: Table-Valued function as data source in TI
Thank you Tom again,
I can confirm it worked fine once I got a user who had access to all the necessary tables
I can confirm it worked fine once I got a user who had access to all the necessary tables