script-task

How do I use DTS.Events.FireInformation() in SSIS Script Task while handling WinSCPnet.dll FileTransferProgress?

六月ゝ 毕业季﹏ 提交于 2020-12-06 04:07:35
问题 I have a Script Task in an SSIS (2008) package that downloads files from a remote FTP server to a local directory. The Script Task is written in C# 2008, and uses WinSCPnet.dll. Using examples from WinSCP's documentation, I came up with the script below. The script functions correctly to download the files, but all the file success/failure messages are held until the entire script completes, and then all the messages are dumped at once. File progress is not displayed at all using Console

How do I use DTS.Events.FireInformation() in SSIS Script Task while handling WinSCPnet.dll FileTransferProgress?

三世轮回 提交于 2020-12-06 04:06:38
问题 I have a Script Task in an SSIS (2008) package that downloads files from a remote FTP server to a local directory. The Script Task is written in C# 2008, and uses WinSCPnet.dll. Using examples from WinSCP's documentation, I came up with the script below. The script functions correctly to download the files, but all the file success/failure messages are held until the entire script completes, and then all the messages are dumped at once. File progress is not displayed at all using Console

How to pass user credentials to WSDL (web service) inside script task/SSIS?

﹥>﹥吖頭↗ 提交于 2020-02-05 03:28:41
问题 Requirement -I have user credentials to access a WSDL file and I can access the file via browser. WSDL link - XYZ userdID- asdf pwd - ***** I need to use C# code inside SSIS script task to call this web service (specifically a single method call) using appropriate user credentials. Get the response(which would be in XML) , parse the XML to get specific values from it and insert that into a SQL table. If anyone know/have any idea/reference link on how to achieve the above requirement, please

Time parsing Issue using DateTime.ParseExact()

生来就可爱ヽ(ⅴ<●) 提交于 2020-01-21 22:05:11
问题 I have a Time Value stored as string with the format HH:mm I used the following code to parse it as date with Today Date DateTime.ParseExact("09:00","HH:mm",New System.Globalization.CultureInfi("En-GB")) The Result Is 2017-03-15 09:00:00 When Running this Code From another machine i get the following Result: 1899-12-31 09:00:00 I replaced my code to the following DateTime.ParseExact(DateTime.Now.ToString("yyyy-MM-dd") & " 09:00","yyyy-MM-dd HH:mm",New System.Globalization.CultureInfi("En-GB")