MS-Access 到 SQL Server 2000 的日期时间问题
我正在尝试将一些数据从 Access 传输到 SQL Server 2000(遗憾的是没有其他方法可以做到这一点),我正在使用 访问 mssql 来完成这项工作。该程序每次以这种方式找到日期时间时都会失败:
03/07/2009 10.17.00
虽然它像这样导入日期:
29/12/2008
我不明白这个问题来自哪里,所以我请求你的帮助。
非常感谢。
I'm trying to transfer some data from Access to SQL Server 2000 (there are no other way to do this sadly), I'm using Access to mssql to do the job. The program fails everytime it finds a datetime in this fashion:
03/07/2009 10.17.00
While it imports date like this:
29/12/2008
I don't understand where this problem come from so I ask you for your help.
Thank you very much.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
这个可能会派上用场。从未使用过该程序(总是使用 DTS 来完成此类任务),因此我不知道它的规格来告诉您更多信息。
this might come in handy. Never worked with that program (always used DTS for such tasks), so I don't know its specs to tell you more.
看起来好像没有
.
分隔符 - 您可以运行更新将.
更改为:
,或者更改在选择时在表格上选择要替换的内容?It looks like it doesn't liek the time having a
.
delimiter - can you run an update to change.
to:
, or change the select on the table to replace while selecting?您如何知道该年份在所有记录中具有有效的世纪部分,即 19 或 20?表中可能有一些日期的世纪为 09 或任何人们可以在不注意的情况下输入的日期。特别是如果他们的系统的默认数据格式只有两位数年份?
SQL Server 中默认的 SQL Server 小日期/时间字段规范不允许使用 1900-01-01 到 2079-06-06 之外的日期
How do you know that the year has a valid century portion, that is 19 or 20, in all the records? There could be some dates in the table with a century that is 09 or whatever folks can manage to enter without noticing. Especially if the default data format of thier system only has a two digit year?
The default SQL Server small date/time field specification in SQL Server doesn't allow for dates outside 1900-01-01 through 2079-06-06