In the example below "Version" is of type Timestamp. I didn't notice any performance degradation during my testing.
SELECT t1.Version , cast(N'' as xml).value('sql:column("t1.Version")', 'varchar(20)') FROM Table1 t1
This example opens up a new way to solve problems in SQL. It is intriguing to me to think about the other uses for leveraging XQuery to pick up SQL's slack.
No comments:
Post a Comment