简体   繁体   English

sql mvc通过搜索字符串来调用SSIS包

[英]sql mvc Calling SSIS packages by searching for a string

I have the user mentioning the filenames from the front end. 我让用户从前端提到文件名。 At the back end , I have a database , where I have a stored procedure in which I am calling SSIS packages based on the incoming filename. 在后端,我有一个数据库,其中有一个存储过程,在该存储过程中,我将根据传入的文件名来调用SSIS包。

The problem is I have a number of input files , So i don't think I should write If(file name = x) call the stored procedure that contains(x) 问题是我有很多输入文件,所以我不认为我应该编写If(file name = x)调用包含(x)的存储过程

because there will be too many if-else statements , also I don't know how to count through all the packages. 因为if-else语句太多,所以我也不知道如何计算所有软件包。 Is there any other way? 还有其他办法吗?

You could have a master package that the stored procedure calls and passes the file name, and have a table that controls what package to call based on the file name. 您可能有一个主程序包,存储过程将调用该主程序包并传递文件名,并具有一个基于文件名控制要调用哪个程序包的表。 The Master package would use the table to look up the package name and invoke it. Master软件包将使用该表来查找软件包名称并调用它。

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

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