Viewing 2 posts - 1 through 2 (of 2 total)
Taken from BOL 2000: "Writing International Transact-SQL Statements"
ADO, OLE DB, and ODBC applications should use the ODBC timestamp, date, and time escape clauses of:
* { ts 'yyyy-mm-dd hh:mm:ss[.fff] '} such...
May 22, 2008 at 1:09 pm
#819329
Use ODBC Standard
For example, now it's 23:11:00, 21 May 2008 is:
{ts '2008-05-21 23:11:00'}
Let's a query:
CREATE TABLE mydata (
type varchar(30),
day datetime
)
INSERT INTO mydata VALUES...
May 21, 2008 at 3:12 pm
#818886