I'm provided with Composite Software driver using which I've created a ODBC connection and fetching data. I'm not able to find the syntax as how to format the datetime. I tried this -
select MY_DATE from Master_Table
I get the value as 9/3/2013 12:00:00 AM. I want to format it as 9/3/2013 without time and I need to concat it with another column.
I tried the following query based on this manual -
SELECT CONVERT(nvarchar(30), MY_DATE, 103) AS Expr1 FROM Master_Table
And I get the error -
SQL Execution Error.
Executed SQL statement: SELECT CONVERT (nvarchar(30), MY_DATE, 103) AS Expr1 FROM Master_Table Error Source: Composite Software 6.1.0 ODBC Driver Error Message: ERROR [HY000] Unable to parse query text: Incorrect syntax near "SELECT", found "CONVERT". On line 1, column 8. [parser-2904201] Cause: Incorrect syntax near "SELECT", found "CONVERT"
The problem is I have no idea how to find sql syntax for Composite Information Server. Or will the SQL syntax will be same for all ODBC connections? Any idea how to fix this?