when i analyzing running T-SQL I found a query that have {ts \'2013-04-02 00:00:00\'} in where clause. i was so curious about this and tried to find the so
It's an ODBC literal escape sequence
ODBC defines escape sequences for date, time, and timestamp literals. The syntax of these escape sequences is as follows:
{ts 'value'}
where we can use it?
Anywhere where a datetime
value is expected. ("timestamp" is SQL Standard vernacular for what SQL Server calls datetime
).