MS-Access front-end does not recognise dates from SQL Server

前端 未结 3 913
我寻月下人不归
我寻月下人不归 2020-12-11 07:19

I have a SQL Server 2008 database with an Access front-end. My problem is that Access does not recognise SQL Server\'s dates as they are in a different format.

SQL S

相关标签:
3条回答
  • 2020-12-11 07:45

    If you are storing the dates in SQL server as the data type “Date” or “Date2” try changing them to “DateTime” I had this problem linking data from SQL server 2008R2 to access 97, access did not see it as a date and treated it like text

    0 讨论(0)
  • 2020-12-11 07:52

    I just ran in to this, thanks everyone for your input.

    I'm also developing an Access UI for a SQL Server backend (Access 2010/SQL Server 2014) and just encountered this problem. The Date datatype takes 3 bytes of storage, and since I didn't need a time component, that's what I wanted. Personally I'm using SmallDateTime, it takes 4 bytes compared to DateTime's 8. There's also DateTime2 that takes 6-8 bytes.

    I created a four field table using each of the date datatypes to experiment with input formats, I think SmallDateTime will do the trick for me.

    0 讨论(0)
  • 2020-12-11 07:57

    The Microsoft SQL Server Migration Assistant for Access does move the dates over as a Date format. The problem the user has encountered is with a Driver. Microsoft has a new DLL that must be put on a client workstation (or server in the case of Citrix). Once that is done, all the dates in MS Access will work properly. My lastest experience with Access 2010 was exactly the same as Access 2003. It required a DLL. From there, investigate using a DNS-Less connection string.

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