_覓 | 覦覈襦 | 豕蠏手 | 殊螳 | 譯殊碁 |
FrontPage › SSIS-FileExists
|
|
Describe SSIS-FileExists here
Imports System Imports System.Data Imports System.Math Imports Microsoft.SqlServer.Dts.Runtime Imports System.IO Public Class ScriptMain ' The execution engine calls this method when the task executes. ' To access the object model, use the Dts object. Connections, variables, events, ' and logging features are available as static members of the Dts class. ' Before returning from this method, set the value of Dts.TaskResult to indicate success or failure. ' ' To open Code and Text Editor Help, press F1. ' To open Object Browser, press Ctrl+Alt+J. Public Sub Main() ' ' Add your code here ' Dim FileName As String FileName = Dts.Variables("FileName").Value.ToString() If File.Exists(FileName) Then Dts.Variables("FileExistsYN").Value = "Y" Else Dts.Variables("FileExistsYN").Value = "N" End If Dts.TaskResult = Dts.Results.Success End Sub End Class
鏤
|
炎概 ろ るジ 覦襦 願 殊企. 願 覦襦 企. レ覓殊 豺 螻 覩碁 蠍語 . 豈 企. 願鍵蟇磯 讌 蟆 れ 襷 螳讌 企 伎 れ. ( 襷レれ) |