S
stuforman
I have a vb programming, running 200+ SSIS
it gets through most, but towards the end gives me "Insufficient
Memory" errors
my code looks like:
CallSSIS("SalFut_new_ISP")
CallSSIS("SalSalall_ISP")
CallSSIS("SalSalid_ISP")
CallSSIS("SalSvc2a_ISP")
CallSSIS("TempHome_ISP")
CallSSIS("wclsUsIteam_ISP")
End Sub
Sub CallSSIS(ByVal SSISname As String)
Dim pkgLocation As String
Dim pkg As New Package
Dim app As New Application
Dim pkgResults As DTSExecResult
Console.WriteLine(SSISname)
pkgLocation = _
"C:\Documents and Settings\sforman\My Documents\Visual
Studio 2005\Projects\" + SSISname + "\" + SSISname + "\Package.dtsx"
pkg = app.LoadPackage(pkgLocation, Nothing)
pkgResults = pkg.Execute()
Console.WriteLine("Done")
pkgLocation = Nothing
pkg = Nothing
pkgResults = Nothing
GC.Collect()
GC.WaitForPendingFinalizers()
End Sub
can anyone help?
thanks a lot,
Stu
it gets through most, but towards the end gives me "Insufficient
Memory" errors
my code looks like:
CallSSIS("SalFut_new_ISP")
CallSSIS("SalSalall_ISP")
CallSSIS("SalSalid_ISP")
CallSSIS("SalSvc2a_ISP")
CallSSIS("TempHome_ISP")
CallSSIS("wclsUsIteam_ISP")
End Sub
Sub CallSSIS(ByVal SSISname As String)
Dim pkgLocation As String
Dim pkg As New Package
Dim app As New Application
Dim pkgResults As DTSExecResult
Console.WriteLine(SSISname)
pkgLocation = _
"C:\Documents and Settings\sforman\My Documents\Visual
Studio 2005\Projects\" + SSISname + "\" + SSISname + "\Package.dtsx"
pkg = app.LoadPackage(pkgLocation, Nothing)
pkgResults = pkg.Execute()
Console.WriteLine("Done")
pkgLocation = Nothing
pkg = Nothing
pkgResults = Nothing
GC.Collect()
GC.WaitForPendingFinalizers()
End Sub
can anyone help?
thanks a lot,
Stu