Hana two Linqpad
Hi, I was able to setup a connection between SAP Hana 2.0 and linqpad utilizing linq2db drivers. I'm also able to issue SQL queries against the database in linqpad but populating the left pane with tables/views etc. does not work. It seems to kinda hang and never extends. Anyone knows this issue and was able to resolve it?
Best, Mario
Best, Mario
Comments
Anyhow even when I add a schema to the connection definition with way less tables (around 20) populating hangs...
- it is really too much tables - then you just need to wait
- you use old linq2db integration (less than 2.5.2), which had issue with procedure population checkbox not working properly
Also it is possible that linqpad tree cannot handle so many entries
If you can attach with debugger to linqpad process and check where it stuck - it will be more clear what is going on
prd_global_ecc_CV_MARA.Take(100)
HanaException: sql syntax error: incorrect syntax near ".": line 250 col 27 (at pos 4556)
Having a look at the SQL Statement reveals the following:
-- SapHana
SELECT
"t1"."MANDT",
....
FROM
"_SYS_BIC"."prd"."global"."ecc/CV_MARA" "t1"
LIMIT 100
Manually "tuned" query:
-- SapHana
SELECT
"t1"."MANDT",
...
FROM
"_SYS_BIC"."prd.global.ecc/CV_MARA" "t1"
LIMIT 100
The package from the view isn't translated correctly into the sql statement.
it is not yet released officially as we wait for DB2 3rd party provider update