SSAS表格模型自动刷新表结构
我有一个基础代码,该代码允许用户上传其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 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您可以使用表达式任务创建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