Why does linked view give different results from MS Access vs SQL Manager?

前端 未结 2 2039
轮回少年
轮回少年 2021-01-18 23:12

I created a view on SQL Server 2000 and linked the view to my Access 2007 database via ODBC. Opening the view from Access showed what looked like a duplicate value. I update

2条回答
  •  小鲜肉
    小鲜肉 (楼主)
    2021-01-18 23:55

    When you create an ODBC link in Access to a SQL Server table or view, Access stores meta information about that SQL Server data source. If you later change the SQL Server table structure or view definition, Access' cached information does not get reliably updated to match ... even if you "refresh" the link. It's safer to delete the link and re-create it anew to guarantee that Access' cached information is consistent with the revised data source.

    Seems you discovered this fact with Cristian's help. I'm emphasizing this point for the benefit of other readers. This seems to be a fairly common gotcha, but is easily avoided when you understand what's going on under the covers.

提交回复
热议问题