_대문 | 방명록 | 최근글 | 홈피소개 | 주인놈
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

댓글 남기기..
이름: : 오른쪽의 새로고침을 클릭해 주세요. 새로고침
EditText : Print : Mobile : FindPage : DeletePage : LikePages : Powered by MoniWiki : Last modified 2018-04-13 23:12:53

나는 언제나 나의 바깥에서 힘과 자신감을 찾았지만 그것들은 항상 나의 내부에 있었다. (안나 프로이트)