I found two easy methods to check the table structure.
1.
SQLDSGenerator gen = new SQLDSGenerator(tableName, schema, dbName, serverType, timestampType, returnSQLTypes);
gen.generate();
2.
List<Map> fieldsFromTable = BuiltinRPC.getFieldsFromTable(tableName, schema, dbType, dbName);
Unfortunately, the first one changes the NTEXT data type to TEXT. The second one reads the data type correctly but loses the field length and returns nulls.
CREATE TABLE ntexttest (
ID int IDENTITY(1,1) NOT NULL,
NTEST nvarchar(99),
TEST varchar(99)
);
smartgwt.version=13.0-p20240707
mssqljdbc.version=12.6.3.jre11
select @@version :
Microsoft SQL Server 2022
Using the older version of the JDBC driver, it's the same.
mssqljdbc.version=9.2.1.jre8
Comment