Eseguire Dtsx da windows form (vb)

lunedì 13 ottobre 2014 - 12.37
Tag Elenco Tags  VB.NET  |  .NET 1.0  |  .NET 1.1  |  .NET 2.0  |  .NET 3.0  |  .NET 3.5  |  .NET 4.0  |  Visual Studio 2010  |  Visual Studio 2008  |  Visual Studio 2005  |  SQL Server 2008 R2  |  SQL Server 2008  |  SQL Server 2005

roninkaiser Profilo | Newbie

Ciao a tutti,

sul mio server MSSQL ho un package Dtsx che scarica una tabella da un server Oracle sul server MSSQL medesimo.
Se eseguo il package sul server a mano funziona regolarmente.(durata 45 sec)
Se copio il file dtsx sul mio client e lo eseguo funziona tutto regolarmente.(durata 47 sec)

Se provo a eseguirlo da mio applicativo Vb.Net (codice sotto) tutto fila liscio, il result è success ma in realtà non fa nulla.(durata 1 sec)

Dim pkgLocation As String Dim pkg As New Package Dim app As New Application Dim pkgResults As DTSExecResult Try pkgLocation = _ "\\miosql\d$\Sviluppo\DTSx\" + ComboBox1.SelectedItem.ToString().Trim() + ".dtsx" pkg = app.LoadPackage(pkgLocation, Nothing) pkg.PackagePassword = "passworddeldtsx" pkg.Execute(Nothing, Nothing, Nothing, Nothing, Nothing) MessageBox.Show(pkgResults.ToString()) Catch ex As Exception MsgBox("this is an exception" + ex.ToString) End Try


AIUTO!!!
Partecipa anche tu! Registrati!
Hai bisogno di aiuto ?
Perchè non ti registri subito?

Dopo esserti registrato potrai chiedere
aiuto sul nostro Forum oppure aiutare gli altri

Consulta le Stanze disponibili.

Registrati ora !
Copyright © dotNetHell.it 2002-2025
Running on Windows Server 2008 R2 Standard, SQL Server 2012 & ASP.NET 3.5