Meaningless Drivel is fun!*
The moose likes JDBC and the fly likes getObject returning 'null' on SQL Server nvarchar type Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Databases » JDBC
Bookmark "getObject returning Watch "getObject returning New topic
Author

getObject returning 'null' on SQL Server nvarchar type

Gary Frick
Greenhorn

Joined: Sep 13, 2002
Posts: 28
I need to return a Java Object so as to satisfy the Map 'get' method. But the getObject only returns 'null' for SQL type of 'nvarchar'. What gives?
== "TitleOfCourtesy" is from the Microsoft Northwind DB.
cur_BB = rs.getObject("TitleOfCourtesy");

Integer frequency = (Integer)BBmap.get(cur_BB);
 
 
subject: getObject returning 'null' on SQL Server nvarchar type
 
Similar Threads
org.hibernate.MappingException: No Dialect mapping for JDBC type: -9
Date Type
getString, nulls, and try
Using special characters in java
Result Set problems