如何通过Microsoft.C#中的AnalySisservices对特定的SSA分区进行请求refresh
我熟悉使用refreshtype.full
使用Microsoft.analySisservices.tabular
namespace refresh类型的“完整”数据库表刷新
using var server = new Server();
server.Connect("MyConnectionString");
var db = server.Databases.FindByName("MyDatabaseName");
db.Model.Tables["MyTableName"].RequestRefresh(RefreshType.Full);
。 mytableName 数据库表具有三个分区(分区1
,分区2
和分区3
)。
如果我不想进行完整的数据库表刷新,而是只有该数据库表中的一个分区,那么该语法将如何进行?
I'm familiar with a 'Full' Database Table refresh via the RefreshType.Full
refresh type using the Microsoft.AnalysisServices.Tabular
namespace:
using var server = new Server();
server.Connect("MyConnectionString");
var db = server.Databases.FindByName("MyDatabaseName");
db.Model.Tables["MyTableName"].RequestRefresh(RefreshType.Full);
Say for example, the MyTableName
database table has three partitions (Partition 1
, Partition 2
, and Partition 3
).
If I didn't want to do the full database table refresh, but rather only a single partition within that database table, how would one do this syntactically?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
首先获取对象
表对象的收集分区
可以使用
实际过程将发生时, savechanges 在模型上调用方法
first get the table object
the table object has the collection of partitions
the partition object can be "refreshed" using RequestRefresh method
The actual process will happen when the SaveChanges method is called on the model