Closed exalate-issue-sync[bot] closed 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.
Sebastien Poirier commented: fixed import queries, now using following syntax, both fully supported from SQL Server 2012:
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]