Moving from text to varchar(MAX): Are there any troubles to expect with MS Access?

前端 未结 5 1918
感动是毒
感动是毒 2020-12-20 00:44

It is well-known that MS Access applications (MDBs) using SQL Server backends have trouble with certain data types. For example,

  • bit field sup
5条回答
  •  太阳男子
    2020-12-20 01:21

    I know this is an older post, but I think it is still relevant to some folks. I deal a lot with legacy data that is scaled up from Access Memo fields to SQL and then turned into a link table in Access.

    I have found that scaling to NVARCHAR(max) does cause issue within the link tables. Depending on which driver you are building the Access Link table with, the problem varies.

    Using SQL Native Client 10 my first finding is that Access treats the field as a NVARCHAR(4000). While using SQL Server as the driver does change the issues, there are still issues. With this older driver the issues seem to be harder to track down but do show up. Usually with a similar sizing problem.

    Beware, what seems to be running ok, may in fact just be running correctly because the right circumstance has not been hit yet.

    If you find that your field data never requires more than 4000 characters, then make it a NVARCHAR(4000). To set at MAX is over kill if you only need 4000 anyway.

提交回复
热议问题