Using GetUTCDate in SQL Server CE 4

Consider a SQL Server CE 4 table with a non- FooDate column: FooDate . The goal is to have the current default UTC time set by default.

The function is not recognized by SQL Server Compact. The name of the function is GetUTCDate.

The GetDate() function works as expected by default in the datetime column in SQL Server Compact 4.

Is GetUTCDate() supported in SQL Server CE 4?

alt text

+4
source share
1 answer

SQL Server CE supports a limited subset of T-SQL features. GetUTCDATE () is not one of them.

+5
source

Source: https://habr.com/ru/post/1335770/


All Articles