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()
?
views:
232answers:
1
+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
2009-01-14 17:10:35