简体   繁体   English

使用ms访问权限更新本地表,而无需从sharepoint导入整个列表

[英]using ms access to update a local table without importing the whole list from sharepoint

I have a bit of a dilema concerning a large database. 关于大型数据库,我有些困惑。 I have a database where all the data is kept on a sharepoint server. 我有一个数据库,所有数据都保存在共享点服务器上。 The cache is cleared everytime database is closed. 每次关闭数据库都会清除缓存。

My problem is that the parts number list is quite large (12200 records) and needs to be cached fully every time access is open. 我的问题是零件编号列表很大(12200条记录),并且每次打开访问时都需要完全缓存。 This list however is fairly static so I want to make it static and simply run an update to apply changes that occured when the access app is opened. 但是,此列表是相当静态的,因此我想使其变为静态,并仅运行更新以应用打开Access应用程序时发生的更改。

I do not know how to do that, I know I can link the sharepoint list and simply update the local list with sql. 我不知道该怎么做,我知道我可以链接共享点列表,并简单地使用sql更新本地列表。 This however defeats the purpose since access will have to first download the whole data from sharepoint to begin with. 但是,这违背了目的,因为访问必须首先从Sharepoint下载整个数据。

If you just need to update the local table with the fresh data from the SharePoint table, you could create a query that simply overwrites the old table from the SharePoint Table. 如果只需要使用SharePoint表中的最新数据更新本地表,则可以创建一个查询,该查询将简单地覆盖SharePoint表中的旧表。

For example: After you link SharepointTableA, create a query 例如:链接SharepointTableA之后,创建一个查询

SELECT SharePointTableA.* INTO LocalTableB  FROM SharePointTableA 

This will overwrite all the contents of the local table with the data from the SharePoint Table. 这将用SharePoint表中的数据覆盖本地表的所有内容。

unless there's a specific reason why you don't want to overwrite records... 除非有特定原因导致您不想覆盖记录...

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM