Click here to monitor SSC
SQLServerCentral is supported by Redgate
 
Log in  ::  Register  ::  Not logged in
 
 
 


Conditional split in SSIS


Conditional split in SSIS

Author
Message
smthembu
smthembu
Ten Centuries
Ten Centuries (1K reputation)Ten Centuries (1K reputation)Ten Centuries (1K reputation)Ten Centuries (1K reputation)Ten Centuries (1K reputation)Ten Centuries (1K reputation)Ten Centuries (1K reputation)Ten Centuries (1K reputation)

Group: General Forum Members
Points: 1035 Visits: 1054
Hi All

I need help with SSIS Conditional split. I have attached a create tbl script and test data.

I need to split data in multiple columns so that i can use that data in SSRS. The issue is that the data is mixed up and vary in length

The column in mind here is "Client_user_agent", the split should have a Browser and Devices column. The first few characters they are terminated with "/" then a number then "(" in here it's either a device or a browser then terminated with ";", so thus far i need data

I hope it will make sense with test data

Thanks

It's better to fail while trying, rather than fail without trying!!!
Attachments
Test data.txt (24 views, 2.00 KB)
Table.txt (15 views, 487 bytes)
needed data.png (17 views, 109.00 KB)
PB_BI
PB_BI
Ten Centuries
Ten Centuries (1.3K reputation)Ten Centuries (1.3K reputation)Ten Centuries (1.3K reputation)Ten Centuries (1.3K reputation)Ten Centuries (1.3K reputation)Ten Centuries (1.3K reputation)Ten Centuries (1.3K reputation)Ten Centuries (1.3K reputation)

Group: General Forum Members
Points: 1291 Visits: 2404
Sounds more like you need a few derived columns rather than a conditional spit. You could then take the parts of the string that you need using the SUBSTRING and FINDSTRING commands in SSIS.

An example is here:
http://stackoverflow.com/questions/10921645/ssis-how-to-get-part-of-a-string-by-separator

Best of luck :-)




I'm on LinkedIn
smthembu
smthembu
Ten Centuries
Ten Centuries (1K reputation)Ten Centuries (1K reputation)Ten Centuries (1K reputation)Ten Centuries (1K reputation)Ten Centuries (1K reputation)Ten Centuries (1K reputation)Ten Centuries (1K reputation)Ten Centuries (1K reputation)

Group: General Forum Members
Points: 1035 Visits: 1054
Thanks will check

It's better to fail while trying, rather than fail without trying!!!
Go


Permissions

You can't post new topics.
You can't post topic replies.
You can't post new polls.
You can't post replies to polls.
You can't edit your own topics.
You can't delete your own topics.
You can't edit other topics.
You can't delete other topics.
You can't edit your own posts.
You can't edit other posts.
You can't delete your own posts.
You can't delete other posts.
You can't post events.
You can't edit your own events.
You can't edit other events.
You can't delete your own events.
You can't delete other events.
You can't send private messages.
You can't send emails.
You can read topics.
You can't vote in polls.
You can't upload attachments.
You can download attachments.
You can't post HTML code.
You can't edit HTML code.
You can't post IFCode.
You can't post JavaScript.
You can post emoticons.
You can't post or upload images.

Select a forum

































































































































































SQLServerCentral


Search