문제

Consider a SQL Server CE 4 table with a non-nullable column: FooDate. The goal is to have the current UTC datetime as the default.

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

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

Is GetUTCDate() supported in SQL Server CE 4 at all?

alt text

도움이 되었습니까?

해결책

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

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top