Skip to content
Advertisement

Parse SQL Server Data

I used SSIS and [SharePointListAdapters][1] [1]: http://sqlsrvintegrationsrv.codeplex.com/releases to import data from my SharePoint 2010 list and put it into SQL Server 2008 table. TThere are roughly 500 rows of data. Now the challenge is to parse data appropriately. I have a couple of columns that have html tags around them.

For e.g., Column Project Desc has data like Project Desc

On googling, I found the functio below. It works as expected. My questions is how do I edit this function to take the column name called Project Desc as a parameter so that all of the data in that particular column will have html tags discarded.

Advertisement

Answer

Once you’ve created the function, you just use it as if it was a normal field in a table, and put the source table and field in the place that the parameter goes…

(You don’t edit the function, you just supply it with data from your table.)

User contributions licensed under: CC BY-SA
4 People found this is helpful
Advertisement