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
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.
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