ESECUZIONE DTS SQL SERVER 2000 DA STORE PROCEDURE DI SQL SERVRER 2005

venerdì 12 febbraio 2010 - 09.24

Giuseppe.Schiappapie Profilo | Newbie

Ciao a tutti , avrei un problemino circa l'esecuzione di un DTS sotto sql server 2000 lanciato da un programma in visual basic.
Sulla macchina di sviluppo non ho problemi, purtroppo sulla macchina utente il dts non si esegue e a dire il vero non da neqanche errore.
Siccome prima del dts si esegue una stored procedure sul SQL 2005 avevo pèensato di risolvere il problema facendo eseguire anche questo passaggio alla stored.
Per cui chiedo se e come è possibile fare lanciare un dts di SSQL 2000 Server da una stored in sql server 2005.

vi posto il codice

'QUI ESEGUE LA STORED SU DI UNA ISTANZA DI SQL SERVER 2005 A.EseguiStoredProcedure "Punto_p_File_EsitiScondizionati", _ "@Path = '\\10.58.91.2\pc\Tmp_Scarichi'," & _ "@DATAb = '" & Format(DtDataDa.Value, "m/dd/yyyy") & "'," & _ "@DATAc = '" & Format(DTDataA.Value, "m/dd/yyyy") & "'," & _ "@FILE = N'ScaricaEsiti.P'," & _ "@EXPORT = N'Esiti.txt' ," & _ "@HOST = N'" & Host & "'," & _ "@SPED = N'" & Trim(SPIN) & "'" Dim dtsEsiti As New DTS.Package 'QUI INVECE ESEGUE IL DTS SU UNA ISTANZA DI SQL SERVER 2000 dtsEsiti.LoadFromSQLServer _ ServerName:="SRV002\SRV002_2000", _ ServerUserName:="GIUSEPPE", _ ServerPassword:="banane", _ PackageName:="SVINCOLI" dtsEsiti.Execute

Vi ringrazio anticipatamente

ciao a tutti
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