September 19, 2011 at 9:58 pm
hi friends,
source data comes like id,name,location
10,ravi,hyd
11,nagi,chen
12,mali,bang
13,venu,pune
i want target table data like col1 col2 col3 col4
10 11 12 13
ravi nagi mali venu
hyd chen bang pune
how to solve this problem in ssis plese tell me the process
September 20, 2011 at 12:50 pm
Duplicate post
Investigate the Pivot task
September 21, 2011 at 2:44 am
pivot is not working
September 21, 2011 at 6:15 am
We're not mind readers here. With no information, how would you expect anyone to help you? Did you get an error? How is it not working?
September 21, 2011 at 8:49 am
boss if u dont mind plz tell me the process by useing pivot
September 24, 2011 at 6:28 pm
No one here is your boss. Take a look at:
http://www.jasonstrate.com/2011/01/31-days-of-ssis-pivot-transformation-1031/
September 24, 2011 at 10:46 pm
asranantha (9/19/2011)
hi friends,source data comes like id,name,location
10,ravi,hyd
11,nagi,chen
12,mali,bang
13,venu,pune
i want target table data like col1 col2 col3 col4
10 11 12 13
ravi nagi mali venu
hyd chen bang pune
how to solve this problem in ssis plese tell me the process
What do you want done if you have more or less than 4 pairs of data?
--Jeff Moden
Change is inevitable... Change for the better is not.
September 25, 2011 at 5:10 am
You can try using component named script component
Code for you reference :
Dim keyField As Integer = Row.KeyField
Dim itemList As String = Row.ListField
Dim delimiter As String = ","
If Not (String.IsNullOrEmpty(itemList)) Then
Dim inputListArray() As String = _
itemList.Split(New String() {delimiter}, _
StringSplitOptions.RemoveEmptyEntries)
For Each item As String In inputListArray
With Output0Buffer
.AddRow()
.KeyField = keyField
.ListItem = item
End With
Next
End If
End Sub
Viewing 8 posts - 1 through 7 (of 7 total)
You must be logged in to reply to this topic. Login to reply