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 SQL Server: Cast not a valid function Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Databases » JDBC
Bookmark "SQL Server: Cast not a valid function" Watch "SQL Server: Cast not a valid function" New topic
Author

SQL Server: Cast not a valid function

Anonymous
Ranch Hand

Joined: Nov 22, 2008
Posts: 18944
Hi,
Anyone have any thoughts on way I get this SQL error message:
'CAST' is not a recognized function name.
Produced by:
rs = stmt.executeQuery("SELECT CAST(START_DATE AS NCHAR(50)) AS T FROM TISCOURSES");

Thanks for your help.
Yoo-Jin.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: SQL Server: Cast not a valid function