h2oai / h2o-3

H2O is an Open Source, Distributed, Fast & Scalable Machine Learning Platform: Deep Learning, Gradient Boosting (GBM) & XGBoost, Random Forest, Generalized Linear Modeling (GLM with Elastic Net), K-Means, PCA, Generalized Additive Models (GAM), RuleFit, Support Vector Machine (SVM), Stacked Ensembles, Automatic Machine Learning (AutoML), etc.
http://h2o.ai
Apache License 2.0
6.87k stars 2k forks source link

h2o import table issue with SQL Server 2016 #15454

Closed exalate-issue-sync[bot] closed 1 year ago

exalate-issue-sync[bot] commented 1 year ago

When trying to connect H2O to SQL Server 2016 to import a table, H2O returns a SQL Exception relating to FETCH Statement.

Environment:

JDBC Driver/s tested: MSSQL-jdbc-7 , MSSQL-jdbc-6.2.1 and sqljdbc4

Error Message: ERROR MESSAGE: SQLException: Invalid usage of the option NEXT in the FETCH statement. Failed to connect and read from SQL database with connection_url: jdbc:sqlserver://10.10.10.10:1433;databaseName=DataStage;

Connection String: importSqlTable {"connection_url":"jdbc:sqlserver://10.10.10.10:1433;databaseName=DataStage;","table":"dbo.TestTable","columns":"","username":"xxxx","password":"XXXX"}

Log file: attached [^h2o sql server error.txt]

exalate-issue-sync[bot] commented 1 year ago

Michal Kurka commented: related SO post: https://stackoverflow.com/questions/53718511/h2o-import-table-issue-with-sql-server-2016/53731254

FIY: Downgraded to regular priority because a workaround exists.

exalate-issue-sync[bot] commented 1 year ago

Sebastien Poirier commented: fixed import queries, now using following syntax, both fully supported from SQL Server 2012: