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
-
Cant use NVL of Nz functions on MSAccess through JDBC ODBC (3 messages)
- Posted by: Ranjith Kodikara
- Posted on: January 12 2004 07:46 EST
Threaded Messages (3)
- Cant use NVL of Nz functions on MSAccess through JDBC ODBC by jan vos on January 12 2004 11:46 EST
- Cant use NVL of Nz functions on MSAccess through JDBC ODBC by Ranjith Kodikara on January 12 2004 22:01 EST
- Cant use NVL of Nz functions on MSAccess through JDBC ODBC by Norbert Renner on April 22 2004 11:34 EDT
- Cant use NVL of Nz functions on MSAccess through JDBC ODBC by Ranjith Kodikara on January 12 2004 22:01 EST
-
Cant use NVL of Nz functions on MSAccess through JDBC ODBC[ Go to top ]
- Posted by: jan vos
- Posted on: January 12 2004 11:46 EST
- in response to Ranjith Kodikara
Nz is an Office function, not SQL. When you use the SQL-statements within Access, you can also use the complete Office-functionality. From outside (ODBC) you can only use pure SQL-statements(i.e. those that Access recognizes).
So I'm affraid that you will have to find a work-around. -
Cant use NVL of Nz functions on MSAccess through JDBC ODBC[ Go to top ]
- Posted by: Ranjith Kodikara
- Posted on: January 12 2004 22:01 EST
- in response to jan vos
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 -
Cant use NVL of Nz functions on MSAccess through JDBC ODBC[ Go to top ]
- Posted by: Norbert Renner
- Posted on: April 22 2004 11:34 EDT
- in response to Ranjith Kodikara
I had the same problem and found this solution (Access 2000, JDK 1.4.2):
SELECT IIF(ISNULL(FIRST_NAME), '', FIRST_NAME) AS first_name FROM PASSENGER_DETAILS