Sql Server date type appears as text field in MS Access

后端 未结 2 2008
渐次进展
渐次进展 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: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.

提交回复
热议问题