views:

232

answers:

1

I'm working on a statement scanner for our updater (looking for statements that will cause problems with synchronized data) and I need to know which TSQL data types get resolved as Types.VARCHAR and which ones resolve to Types.LONGVARCHAR when you invoke DatabaseMetaData.getColumns()?

+3  A: 

check out: Understanding the JDBC Driver Data Types in BOL:

So basically:

  • LONGVARCHAR: text, ntext, varchar(max), nvarchar(max), xml
  • VARCHAR: varchar, nvarchar
kristof