https://sqlsrvintegrationsrv.codeplex.com/
The site contains excellent SSIS samples and documentation on how to build solutions for everyday problems using SSIS. One of the most useful samples covers using a SharePoint list as a data source. A special SSIS Data Adapter project has been created and packaged so that you can run an installer and then use SharePoint lists in your SSIS package. The project can be found here:
https://sqlsrvintegrationsrv.codeplex.com/releases/view/17652
After following the installation procedure you end up with a SharePoint List Source and SharePoint List Destination in your toolbox.
You can then use these sources and destinations in any Data Flow Task.
While using the SharePoint List sources today I ran into an issue using a lookup field. Essentially, my package was copying data from a SharePoint list into a local database table. The data exposed by the List Source included the internal SharePoint lookup value. Essentially, it was including the field type and the separator (in this case ‘string;#’), which I did not want in my table.
There is an easy fix to remedy this situation though.
All that is needed to strip out the unwanted data is to add a Derived Column data flow transformation to your data flow task after your SharePoint List source.
In the Derived Column transformation you will need to use a string expression to strip out the unwanted data.
TRIM( SUBSTRING( YOUR_COLUMN_NAME, FINDSTRING( YOUR_COLUMN_NAME, “;#”, 1 ) +2, 255) )
I’d love to hear if anyone uses a different technique when dealing with this situation.
I hope this helps!
Nice blog and valuable for all people. Thank you for posting this.
ReplyDeleteInformatica MDM Training in Chennai
Informatica mdm training
german classes
Best IELTS Coaching in Chennai
learn Japanese in Chennai
IoT Training in Chennai
content writing course in chennai
Informatica MDM Training in Porur
Informatica MDM Training in Adyar
it's very really like article.thanks for sharing these information with all of us. Kinemaster Gold
ReplyDelete