开发者

Run Procedure on File Import

I have a procedure which selects data from a table called Test. And the开发者_运维技巧 way the data is loaded into the test Table is through File Import.

What I am trying is, Is there a way to run the Procedure automatically whenever there is an import on the Table.


In SSIS, you can add an execute SQl task to runthe proc after the main import work. We do this in all our import pacakges to save meta data. If you are running the import from a job, an alternative would be to use a second task in the job to run your proc.


You can have a trigger on the Insert but that would work on a row by row basis

http://msdn.microsoft.com/en-us/library/ms189799.aspx

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜