Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Time format only ???
Message
From
14/10/2003 04:23:23
 
 
To
13/10/2003 22:59:14
Budi Irawan
Berlian Laju Tanker
Jakarta, Indonesia
General information
Forum:
Microsoft SQL Server
Category:
Other
Miscellaneous
Thread ID:
00837279
Message ID:
00838435
Views:
31
Hi Budi,

You can use ODBC generic functions.
SELECT { fn CONVERT( { fn NOW() }, SQL_CHAR) }

SELECT { fn CONVERT( myFieldDatetime, SQL_INTERVAL_HOUR_TO_SECOND ) }

SELECT { fn CONVERT( myFieldDatetime, SQL_INTERVAL_HOUR_TO_MINUTE ) }
ODBC Driver traslate this to specific Data Source SQL code.

But the ODBC drivers, that support the keywords SQL_INTERVAL_XXXXX
are little ( SQL Server not support this ).

You can try this, but i'm not sure it is formatting stable
SELECT { fn RIGHT({ fn RTRIM({ fn CONVERT( myFieldDatetime, SQL_CHAR ) })},7)}
Fabio
Previous
Reply
Map
View

Click here to load this message in the networking platform