File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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);
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: getObject returning 'null' on SQL Server nvarchar type