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

Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Databases » JDBC
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: 14687

[My Blog]
All roads lead to JavaRanch
I agree. Here's the link:
subject: java sql TYPE
Similar Threads
data type mapping between POJO class and database data type
auto-increament in ms sql server2000
store image using sql server
Retrive column of type 'image'
type mapping ( image, longvarbinary)