SQL Server CE: SET DATEFIRST not working

馋奶兔 提交于 2019-12-11 13:57:13

问题


I'm using SQL Server CE for rapid application development purposes and have hit a little snag - it doesn't seem to support changing the start day of the week.

What I've tried:

SET DATEFIRST 1;

which yields: Unrecognized SET statement as a response (both via a query window and through code). I've googled around and can't find anything in the documentation as to whether changing the start date of a week is supported or isn't supported by SQL Server Ce, nor can I find any alternative method of changing this.

Am I doing something stupid, or can anyone confirm that this isn't supported (or perhaps both?)


回答1:


It is not supported - why not just fix in C# code?



来源:https://stackoverflow.com/questions/38177819/sql-server-ce-set-datefirst-not-working

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!