Turbointegrator odbc import - how to pass parameter to sql

Post Reply
Motyl
Posts: 51
Joined: Wed Oct 09, 2013 2:29 pm
OLAP Product: Cognos
Version: 10.1
Excel Version: 2010

Turbointegrator odbc import - how to pass parameter to sql

Post by Motyl »

Hi

I have problem, i'm bulding import from odbc (mssql - query). This process will be started by another process, which will provide a parameter to the sub-processes.
Parameter should be used in sql query after "where", for example select * from locations where location_code = parameter.
How to do it? in advanced tab, i don't see sql statement, so i can't put my parameter

P.S Sorry for my english :oops:
User avatar
qml
MVP
Posts: 1098
Joined: Mon Feb 01, 2010 1:01 pm
OLAP Product: TM1 / Planning Analytics
Version: 2.0.9 and all previous
Excel Version: 2007 - 2016
Location: London, UK, Europe

Re: Turbointegrator odbc import - how to pass parameter to s

Post by qml »

There were only about 2841 threads on that subject.

Two options:

1) You can include any variable reference directly in the query box, enclosing it in question marks, e.g. 'where location code = ?pParameter?'.

2) You can construct the entire query in Prolog and replace whatever you have in the query box with the constructed query string at runtime. The variable you need is DatasourceQuery. Also check out the other TI Local Variables, they can be extremely useful.

Niezamaco.
Kamil Arendt
Motyl
Posts: 51
Joined: Wed Oct 09, 2013 2:29 pm
OLAP Product: Cognos
Version: 10.1
Excel Version: 2010

Re: Turbointegrator odbc import - how to pass parameter to s

Post by Motyl »

qml wrote:There were only about 2841 threads on that subject.
Niezamaco.
Sorry ;-), and thank You
"Nie ma za co" ;-)
User avatar
qml
MVP
Posts: 1098
Joined: Mon Feb 01, 2010 1:01 pm
OLAP Product: TM1 / Planning Analytics
Version: 2.0.9 and all previous
Excel Version: 2007 - 2016
Location: London, UK, Europe

Re: Turbointegrator odbc import - how to pass parameter to s

Post by qml »

Motyl wrote:Sorry ;-), and thank You
"Nie ma za co" ;-)
Oj tam, oj tam. 8-)
Kamil Arendt
Post Reply