File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes JDBC and Relational Databases and the fly likes java sql TYPE Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Databases » JDBC and Relational Databases
Bookmark "java sql TYPE" Watch "java sql TYPE" New topic

java sql TYPE

mark I thomas
Ranch Hand

Joined: Apr 07, 2008
Posts: 86
I am using MS SQL Server. I know java.sql.Types has different data type. How do I find the mapping relation between this and SQL server data type ? For example, SQL server has more data type like "smallint", "int", "date", "datetime", "smalldatetime". What's their corresponding Type in java.sql.Type ?
Christophe Verré

Joined: Nov 24, 2005
Posts: 14688

[My Blog]
All roads lead to JavaRanch
I agree. Here's the link:
subject: java sql TYPE
It's not a secret anymore!