This week's book giveaway is in the Agile and other Processes forum.
We're giving away four copies of The Mikado Method and have Ola Ellnestam and Daniel Brolund on-line!
See this thread for details.
The moose likes JDBC and the fly likes Cant use NVL of Nz functions on MSAccess through JDBC ODBC Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Databases » JDBC
Reply Bookmark "Cant use NVL of Nz functions on MSAccess through JDBC ODBC " Watch "Cant use NVL of Nz functions on MSAccess through JDBC ODBC " New topic
Author

Cant use NVL of Nz functions on MSAccess through JDBC ODBC

Ranjith Kodikara
Greenhorn

Joined: Sep 03, 2002
Posts: 15
Dear friends,
I am connectiong to a MS Access database throgh JDBC ODBC bridge and I am running my JSP on Tomcat 4.
This is the query :
SELECT Nz(FIRST_NAME,'')+' '+ Nz(MIDDLE_INITIALS,'')+' '+ Nz(LAST_NAME,'')
AS full_name
FROM PASSENGER_DETAILS
This query runs on MS Access ok without a problem. But Tomcat's console gives this error message and it doesnt work.
SQLException: [Microsoft][ODBC Microsoft Access Driver] Undefined function 'Nz' in expression.
I would be grateful If you can help.
Thanks and regards,
Ranjith
ranjith at dmsswt dot com
Barry Gaunt
Ranch Hand

Joined: Aug 03, 2002
Posts: 7729
I just used Google to search for "access function nz odbc" and it came up with a few possibilities. One of them (from a M$ developer) said "if Nz is a VBA function, then you cannot uses it through ODBC". So that could be the reason for Tomcat's error message.
Don't take my word for it though, I'm just telling you what Google turned up
Try writing a simple standalone test program with whatever JDBC-ODBC bridge you are using.


Ask a Meaningful Question and HowToAskQuestionsOnJavaRanch
Getting someone to think and try something out is much more useful than just telling them the answer.
Ranjith Kodikara
Greenhorn

Joined: Sep 03, 2002
Posts: 15
Dear friends,
I want to use NVL function of SQL with my query. HOw can I use that function with access through JDBC ODBC driver. NVL returns a specified value if the column value is null. There should be a function to use for this purpose. But I dont know that. If you know it pls write me.
Thanks and best regards,
Ranjith
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: Cant use NVL of Nz functions on MSAccess through JDBC ODBC
 
Similar Threads
Looking for good JDBC ODBC Derivers for MS Access
how can java connect to Access?
Server stops automatically with EXCEPTION_ACCESS_VIOLATION
Looking for good JDBC ODBC Derivers for MS Access
jdbc select query problem on selecting MS-ACCESS date