0
如何從SQL Server Intergration Services 2005的文件中獲取時間戳?SSIS 2005 - 如何獲取文件的時間戳屬性
如何從SQL Server Intergration Services 2005的文件中獲取時間戳?SSIS 2005 - 如何獲取文件的時間戳屬性
你必須使用腳本任務,這些方針的東西應該做的伎倆:
Dim filePath As String = "C:\YourFolder\YourFile.ext"
If File.Exists(filePath) = False Then
Dts.TaskResult = Dts.Results.Failure
Return
End If
Dim currentDate As Date = DateTime.Now
Dim fileCreateDate As Date = File.GetCreationTime(path)
If currentDate.ToShortDateString <> fileCreateDate.ToShortDateString Then
'Do something
End If
您可以使用開源File Properties Task獲取和/或設置三個時間標記中的任何一個在文件上。