_대문 | 방명록 | 최근글 | 홈피소개 | 주인놈
FrontPage › SSIS-대리키만들기

일단은 식별자(pk)를 찾는다..
pk


누적 및 일련번호 예제
' Microsoft SQL Server Integration Services user script component 
' This is your new script component in Microsoft Visual Basic .NET 
' ScriptMain is the entrypoint class for script components 


Imports System 
Imports System.Data 
Imports System.Math 
Imports Microsoft.SqlServer.Dts.Pipeline.Wrapper 
Imports Microsoft.SqlServer.Dts.Runtime.Wrapper 
  

Public Class ScriptMain 
    Inherits UserComponent 
  
    Dim seq As Integer 
    Dim AccumQty As Integer 
  
  
    Public Sub New() 
        seq = 0 
        AccumQty = 0 
  
    End Sub 
  
    Public Overrides Sub 입력0_ProcessInputRow(ByVal Row As 입력Buffer) 
        ' 
        ' Add your code here 
        ' 
        '일련번호
        seq += 1 
        Row.Seq = seq 

        '누적
        AccumQty = AccumQty + Row.Quantity 
        Row.AccumQuantity = AccumQty 
  
    End Sub 
  
End Class 
http://www.sqlleader.com/mboard.asp?exec=view&strBoardID=SS2005SSIS&intSeq=444

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

이슬비가 내리고 있다. 당신은 밖에 나가서 우산을 편다. 그것으로 충분하다.“구질구질하게 또 비가 오는군!” 이런 말을 한들 무슨 소용이 있는가. 비도 구름도 바람도 결코 마음대로 되지 않는데 어째서 “비 한번 시원스럽게 내리는군”하고 말하지 못하는가. <<날마다 행복해지는 255가지 이야기>> (알랭)