SSAS表格模型自动刷新表结构

发布于 2025-01-24 02:38:55 字数 304 浏览 4 评论 0原文

我有一个基础代码,该代码允许用户上传其CSV文件,并将数据用作SSAS表格模型中的维度。 每次用户上传文件时,代码都会在该表中添加一个新列,并使用其相应的文件名称名称并将数据加载到其中。

因此,如果用户上传一个称为sample1.csv的文件,则动态地将名为Sample1的列添加到该表中,并且数据可用。 然后,应将此列添加到表结构中并部署。接下来,将处理该模型,并可以从Excel访问数据。

但是,我不知道如何自动化刷新表结构并部署它的部分(我所知道的只是从Visual Studio中进行手动刷新)。

我还可以访问SQL代理Python和SSIS。

I have an underlying code, which allows users to upload their CSV files and use the data as a dimension in our SSAS Tabular model.
Every time a user uploads a file, the code adds a new column to this table with the name of its corresponding file name and loads the data into it.

so if a user uploads a file called sample1.csv, a column named sample1 is added to this table dynamically and the data is available.
Then this column should be added to the table structure and deployed. Next, the model will be processed and the data would be accessible from Excel.

However I do not know how to automate the part of refreshing the table structure and deploying it (All I know is to do a manual refresh from Visual studio).

I also have access to SQL Agent, Python and SSIS.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

夜深人未静 2025-01-31 02:38:55

您可以使用表达式任务创建XMLA,通过使用SQL任务提取的列名为每个循环馈送A来创建XMLA。然后,您可以运行分析服务DDL任务以刷新结构并最终处理
你的桌子

you can create the XMLA using expression task yourself by feeding a for each loop with column names which can be extracted with a sql task. And then you can run an analysis service DDL task to refresh the structure and finally process
your table

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文