ssis ftp get multifiles
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
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/7899089/viewspace-707210/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- SSIS 學習之旅 FTP檔案傳輸-FTP控制元件FTP控制元件
- SSIS 部署篇-如何部署SSIS包到SqlServerSQLServer
- Linux基礎命令---get獲取ftp檔案LinuxFTP
- SSIS 生成檔案
- SSIS Package 命名規則Package
- ssis multiple table to one file
- SSIS display null in destination fileNull
- ssis 寫檔案到資料庫資料庫
- 北大FTP,除了北大FTP其他好用的FTP軟體FTP
- FTPFTP
- 【持續更新...】Microsoft SSIS 學習筆記ROS筆記
- SSIS遍歷記錄傳送郵件
- 主動FTP與被動FTPFTP
- ftp,安全ftp軟體哪個好FTP
- centos ftpCentOSFTP
- ftp 配置FTP
- Ftp模式FTP模式
- ftp "CanFTP
- ftp serverFTPServer
- FTP,FTP連線的辦法,配置方式FTP
- FTP客戶端工具Yummy FTP Pro MacFTP客戶端Mac
- lombok get/set 與 JavaBean get/setLombokJavaBean
- 在SSIS中自定義VB.Net指令碼(下)OF指令碼
- BI 系列隨筆列表 (SSIS, SSRS, SSAS, MDX, SQL Server)SQLServer
- SSIS 資料庫排序規則衝突問題資料庫排序
- 免費ftp站點,使用三款ftp工具連線免費ftp站點FTP
- FTP,FTP該如何進行連線,如何配置FTP
- wing ftp server(ftp伺服器軟體)FTPServer伺服器
- ftp是什麼,ftp是什麼東西?FTP
- FTP學習FTP
- windows搭建ftpWindowsFTP
- 公網ftpFTP
- FTP工具類FTP
- ftp -- vsftpFTP
- FTP 命令大全FTP
- ftp指令碼FTP指令碼
- 【ABAP】FTP ProgramFTP
- get的被動用法(get-passive)