Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

DTS packages from 2008sp2 to SQL 2017 1

Status
Not open for further replies.

Cpreston

MIS
Mar 4, 2015
972
GB
Hi

Not sure if this is the right forum.

We are moving from SQL server 2008sp2 to SQL 2017. In 2008 we have some DTS packages. I have 2 questions

1. Where can I see in 2008 when the packages were last run in SQL.
2. How do I transfer the DTS packages to 2017, I know it probably will mean moving them to SSIS, but is their a tool that does this.

THanks
 
Hi

Ok managed to get the DTS migrated. However when I load it in BIDS I am running into coding issue.

I did not realise but the DTS is using Active X script. After some googling I found the script needs changing into C# of which I know nothing about. Is there any way to simply convert the code or does it need re-writing completely in C# The Active X script is below. Thanks

Function Main()
' copy correct datafile to 'current'

Dim ofilesys, Y, M, oFileCopy
Y = Right("0000" & CStr(Year(Now())),4)
M = Right("00" & CStr(Month(Now())),2)

set ofilesys=CreateObject("Scripting.FileSystemObject")
If ofilesys.FileExists("D:\MILL_FILES\O1\STOCK_" & Y & "_" & M & ".CSV") Then
set oFileCopy = ofilesys.getfile("D:\MILL_FILES\O1\STOCK_" & Y & "_" & M & ".CSV")
oFileCopy.Copy "D:\MILL_FILES\O1\STOCK_CURRENT.CSV"
End If

set ofilesys = nothing
set ofilecopy = nothing

Main = DTSTaskExecResult_Success
End Function
 
you can select to have the script component in vb.net - similar syntax to what you have now.

but that is easy code which you should be able to do some investigation and convert to c#.

Regards

Frederico Fonseca
SysSoft Integrated Ltd

FAQ219-2884
FAQ181-2886
 
Hi

Not easy for me unfortunately, I have googled somewhat but cannot find anything that helps. if you have any links you know of that would be useful.

Thanks for your reply I appreciate it.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top