http://www.robsymonds.com/ssis-output-to-multiple-files/
http://www.sqlservercentral.com/Forums/Topic577774-148-1.aspx
http://www.cozyroc.com/script/get-ftp-file-list-task
http://www.sqlteam.com/forums/topic.asp?TOPIC_ID=76989
Foreach Loop Container
Foreach ADO Enumerator
User::a
vCol
vVal
a
Full result set
select col, val from tbale
ResultSet User::a 0
ReadOnlyVariable User::vCol,User::vVal
Input and output: col1,col2
public override void CreateNewOutputRows()
{
/*
Add rows by calling the AddRow method on the member variable named "
----------------------------------------------------------------------------------------------------
Public Sub Main()
'
' Add your code here
'
Dim DestFileName As Variables
Dim DestPath As Variables
Dim strTargetFile As String
Dim strSelectSQL As String
'
' Add your code here
'
Dim DestFileName As Variables
Dim DestPath As Variables
Dim strTargetFile As String
Dim strSelectSQL As String
Dts.VariableDispenser.LockForRead("User::DestPath")
Dts.VariableDispenser.GetVariables(DestPath)
Dts.VariableDispenser.LockForRead("User::DestFileName")
Dts.VariableDispenser.GetVariables(DestFileName)
Dts.VariableDispenser.GetVariables(DestPath)
Dts.VariableDispenser.LockForRead("User::DestFileName")
Dts.VariableDispenser.GetVariables(DestFileName)
strTargetFile = DestPath(0).Value.ToString & DestFileName(0).Value.ToString & ".txt"
strSelectSQL = "select XmlContent,XMLFileNumber from WeijunHe.dbo.LocalXML where XMLFileName = '" & DestFileName(0).Value.ToString & "'"
strSelectSQL = "select XmlContent,XMLFileNumber from WeijunHe.dbo.LocalXML where XMLFileName = '" & DestFileName(0).Value.ToString & "'"
Dts.Variables("User::TargetFile").Value = strTargetFile
Dts.Variables("User::SelectSQL").Value = strSelectSQL
Dts.Variables("User::SelectSQL").Value = strSelectSQL
DestPath.Unlock()
DestFileName.Unlock()
DestFileName.Unlock()
Dts.TaskResult = ScriptResults.Success
End Sub
End Sub