wood burning stoves 2.0*
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


Win a copy of OCA/OCP Java SE 7 Programmer I & II Study Guide this week in the OCPJP forum!
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);
 
Don't get me started about those stupid light bulbs.
 
subject: getObject returning 'null' on SQL Server nvarchar type