Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hi Qlik community,
I´ve found some posts regarding the possibility to write data directly from Sense into a SQL DB and tried to set it up.
The DB admin has created a SQL procedure. When I´m trying to write the data to the DB the following error occurs
By using a ODBC connection:
Do you have any hints/tips oder ideas?
Thanks in advance!
Best
Tino
Hi all,
I´ve figured out how it works and want to share it with you.
Preconditions:
In my case the SQL EXEC did not work when handing over the values as order based parameter (as defined in the SQL procedure). It was necessary to hand over the values metadata based.
It works with this syntax:
SQL exec [SCHEMA].[PROCEDURENAME]
@field1 = '$(value1)',
@field2 = '$(value2)',
@field3 = '$(value3)';
Although in the SQL procedure it is defined in which order the values are expected as parameter, it did not work with this syntax (order based):
SQL exec [schema].[PROCEDURENAME]('$(value1)','$(value2)','$(value3)')
So i hope this will help others in future.
Hello,
I've found a post with a similar subject (on Qlikview, but as you know the script logic is the same). I hope it'll be helpful for you :
https://community.qlik.com/t5/QlikView-App-Dev/Executing-a-stored-procedure/td-p/342032
Regards,
S.B
Hi all,
I´ve figured out how it works and want to share it with you.
Preconditions:
In my case the SQL EXEC did not work when handing over the values as order based parameter (as defined in the SQL procedure). It was necessary to hand over the values metadata based.
It works with this syntax:
SQL exec [SCHEMA].[PROCEDURENAME]
@field1 = '$(value1)',
@field2 = '$(value2)',
@field3 = '$(value3)';
Although in the SQL procedure it is defined in which order the values are expected as parameter, it did not work with this syntax (order based):
SQL exec [schema].[PROCEDURENAME]('$(value1)','$(value2)','$(value3)')
So i hope this will help others in future.
Thanks Seyko.
Unfortunately it was not helpful but in the meantime I´ve found and shared the way it works.
BR
Tino