How can a step in an SSIS package check for the time?

后端 未结 1 608
南笙
南笙 2021-01-27 14:50

The starting item in my Control Flow needs to be something that will check what time it is and set a variable. Is there an item in the Control flow items that can do this?

相关标签:
1条回答
  • 2021-01-27 15:16

    Access your system variables. System::StartTime will be when the package started execution. If there is a significant amount of time between start of execution and the element that needs to evaluate the current time, you can look at the ContainerStartTime. If that isn't precise enough for you, look at using a script task.

    SQL Server 2005 Run a stored procedure via SSIS using GETDATE() as a Parameter

    0 讨论(0)
提交回复
热议问题