This week's book giveaway is in the OO, Patterns, UML and Refactoring forum.
We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line!
See this thread for details.
The moose likes JDBC and Relational Databases 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 and Relational Databases
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);
 
I’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link: http://aspose.com
 
subject: getObject returning 'null' on SQL Server nvarchar type
 
It's not a secret anymore!