Hello folks,I am re-writing old DTS packages(from sql 2005) to convert them to SSIS packages(sql 2014) and in one of the script task, the old activex script does not run. The script is :'************************' Visual Basic ActiveX Script'************************Function Main() mydate = now() yrs = "" mth = "" mth = Month(mydate) - 1 yrs = Right(Year(mydate), 4) If Month(mydate) = 1 Then mth = "12" If Month(mydate) = 1 Then yrs = yrs - 1 sFilename = "D:\PackageOutputs_910\PLS_Invoice_mon.txt" & yrs & mth sFilename = DTSGlobalVariables("LogFilePath").Value & _ sFilename & ".txt" oConn = DTSGlobalVariables.Parent.Connections("Connection 2") oConn.DataSource = sFilename oConn = Nothing Main = DTSTaskExecResult_SuccessEnd FunctionNot sure how to proceed forward? I am quite new to package migration, any help would be very much appreciated!Thanks,Shikha
↧