简体   繁体   English

EPiServer (Optimizely) SQL: 批量更新产品有效期

[英]EPiServer (Optimizely) SQL: batch update of product expiry date

I am trying to update the product expiry date using SQL. I used these codes:我正在尝试使用 SQL 更新产品有效期。我使用了这些代码:

UPDATE [Test.EPiServer.CM11.UAT].[dbo].[CatalogEntry]
SET EndDate = '2032-12-31 16:00:00.000'
where 
Code in ('TESTB8', 'TESTB10' )

It changes data on SQL results but doesn't update the product on CMS.它会更改 SQL 结果的数据,但不会更新 CMS 上的产品。 If I update the product from CMS, it changes the SQL result.如果我从 CMS 更新产品,它会更改 SQL 结果。 Is there another linked table?还有另一个链接表吗?

It is possible that the changes you make to the database using SQL will not be immediately reflected in the CMS that you are using to manage your products.您使用 SQL 对数据库所做的更改可能不会立即反映在您用来管理产品的 CMS 中。 This could be because the CMS has its own database, or because it caches data from the database to improve performance.这可能是因为 CMS 有自己的数据库,或者因为它缓存了数据库中的数据以提高性能。 In order to ensure that the changes you make to the database using SQL are reflected in the CMS, you may need to clear the cache or refresh the data in the CMS.为了确保您使用 SQL 对数据库所做的更改反映在 CMS 中,您可能需要清除缓存或刷新 CMS 中的数据。 You may also need to check if there are any additional tables or views that are used by the CMS to display product information, and make sure that those tables or views are also updated with the new expiration date.您可能还需要检查 CMS 是否使用任何其他表或视图来显示产品信息,并确保这些表或视图也更新了新的到期日期。

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

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