Sql Server date type appears as text field in MS Access

后端 未结 2 2007
渐次进展
渐次进展 2021-02-08 03:54

I have a MS Access 2010 front end / SQL Server 2012 back end database, with a number of date fields in different tables. Sometimes I need to store the time, so I have used data

相关标签:
2条回答
  • 2021-02-08 04:32

    Had the same issue myself linking Access 2007 and SQL Server 2008.

    See this question, if you look at Albert D. Kallal's comment to the first answer, it tells us that the problem is with an outdated driver connecting the front end to the back end.

    If you aren't able to choose an up-to-date driver (and bear in mind that even if you can, other users of your database on different client machines may not be able to) the workaround is to use datetime data type in every case.

    0 讨论(0)
  • 2021-02-08 04:39

    Just to expound on the comment given by @BiigJiim I actually had the Native client 11.0 driver already installed but as I was creating DSN-Less table connections I had to change my connection string formally to: Driver={SQL Server Native Client 11.0};

    Also as an additional note, I do not believe the Date and DateTime2 data types are recommended for Microsoft Access integration. If memory serves me correctly it recommends either DateTime and SmallDateTime. I get not needing the Time in a lot of circumstances, but you can easily format it via the front end... especially within Access.

    0 讨论(0)
提交回复
热议问题