on 03-27-2013 3:11 PM
Hi
The following statement works fine in Hana Studio:
CREATE LOCAL TEMPORARY table #prc as (select '1' AS Test from dummy);
SELECT * FROM #prc;
DROP TABLE #prc
But when executed via the .NET Odbc Driver it doesn't work.
Looks like the driver doesn't like multiple queries.
When using the SqlClient (Micorsoft) it works.
Do i miss something?
Thanks for any enlightment.
Philipp
Are you trying to run the 3 queries in only one execution by separating them with ; ?
That does not work with the hana odbc driver.It crash when it find a ;
You will probably need to execute the 3 query, one at a time without ;
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
HI Keven,
with HANA you cannot string multiple commands into one "execute" call.
Specifically for the commands above you actually don't want it to be in just one call as you want to be able to deal with errors for each of the commands differently.
This is not a restriction of the ODBC driver but it's generally the way HANA processes commands.
If you select multiple commands in HANA studio and execute them, HANA studio generate multiple "execute" calls for them.
- Lars
User | Count |
---|---|
93 | |
10 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.