Created
December 13, 2014 17:04
-
-
Save osya/c8f7405b7064b63bfdc6 to your computer and use it in GitHub Desktop.
Нумерация строк в SSIS Script Task #BI #SSIS
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
' Microsoft SQL Server Integration Services Script Component | |
' Write scripts using Microsoft Visual Basic 2008. | |
' ScriptMain is the entry point class of the script. | |
Imports System | |
Imports System.Data | |
Imports System.Math | |
Imports Microsoft.SqlServer.Dts.Pipeline.Wrapper | |
Imports Microsoft.SqlServer.Dts.Runtime.Wrapper | |
<Microsoft.SqlServer.Dts.Pipeline.SSISScriptComponentEntryPointAttribute> _ | |
<CLSCompliant(False)> _ | |
Public Class ScriptMain | |
Inherits UserComponent | |
Dim i As Integer = 1 'поправка на шапку | |
Public Overrides Sub PreExecute() | |
MyBase.PreExecute() | |
' | |
' Add your code here for preprocessing or remove if not needed | |
' | |
End Sub | |
Public Overrides Sub PostExecute() | |
MyBase.PostExecute() | |
' | |
' Add your code here for postprocessing or remove if not needed | |
' You can set read/write variables here, for example: | |
' Me.Variables.MyIntVar = 100 | |
' | |
End Sub | |
Public Overrides Sub Вход0_ProcessInputRow(ByVal Row As Вход0Buffer) | |
' | |
' Add your code here | |
' | |
i = i + 1 | |
Row.RN = i | |
End Sub | |
End Class |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment