Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How Programmatic. Change The DataSource of A DTS Connect
Message
De
17/08/2006 10:18:43
 
 
À
17/08/2006 10:07:04
Information générale
Forum:
Microsoft SQL Server
Catégorie:
Autre
Versions des environnements
SQL Server:
SQL Server 2000
Divers
Thread ID:
01146364
Message ID:
01146373
Vues:
20
Ok, I found that... it's what I need. Thank you :-)

Option Explicit
Function Main()
' Declare Variables
Dim oPKG
Dim oConnection
' Get Package Object
Set oPKG = DTSGlobalVariables.Parent
' Get Named Connection
Set oConnection = oPKG.Connections("Text File (Source)")
' Set Filename to new value
oConnection.DataSource = "X:\YourPath\YourFile.txt"
Set oConnection = Nothing
Set oPKG = Nothing

Main = DTSTaskExecResult_Success
End Function
Marc Levesque
La Prairie, Quebec (CANADA)
marc.levesque@videotron.ca
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform