1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
|
Public Sub Main()
Dim connection AS New OleDb.OleDbConnection
Dim command AS OleDb.OleDbCommand
Dim Sql AS String
Dim DATA AS OleDb.OleDbDataReader
connection.ConnectionString = "Provider=SQLOLEDB.1;Data Source=Mac_213;Initial Catalog=ESNIG_StagingArea;"
Sql = "select top 1 DifferenceDateMin,DifferenceDateMax from CONFIG_RecupDifferenceDate"
command = New OleDb.OleDbCommand(Sql)
command.Connection = connection
connection.Open()
DATA = command.ExecuteReader()
Dts.VARIABLES("DifferenceDateMin").Value = DATA("DifferenceDateMin")
Dts.VARIABLES("DifferenceDateMax").Value = DATA("DifferenceDateMax")
Dts.TaskResult = Dts.Results.Success
End Sub |
Partager