Dave Burke : Freelance .NET Web Developer specializing in Online Communities

FetchExtendedAttributes Function: Where ya been all my life?

I can't believe I never used this handy SQL function before.  I knew about it for a couple of years, but I never needed it.  When I was doing the import of my Community Server blog to BlogEngine.Net I knew I needed some help stripping out serialized data in the CS_Posts PropertyNames and PropertyValues fields, so I went back to track it down.  Specifically I needed to transfer author and website information of comments in cs_posts to the be_PostComment table.

I always enjoyed working with serialized data.  I think its slick and efficient.  This post from 2006 describes working with serialized weblog extended attributes.  The only downside of serialized data as I see it is when you need to query it from a SQL table.

That's where the FetchExtendedAttributes function saves the day by extracting data values by their key names.  Below is how I used the function to pull author and website information from my old cs_posts table.


 

Here's the location of the FetchExtendedAttributes function in the Community Server Media Gallery.  You oughta grab it.

Comments (3) | Post RSS RSS comment feed

Posted on 6/18/2008 5:22:47 PM by Dave Burke
Categories: Community Server
Tags:

Related posts

Comments

6/19/2008 8:53:47 AM Permalink

Pingback from alvinashcraft.com

Dew Droplet - June 19, 2008 | Alvin Ashcraft's Morning Dew

alvinashcraft.com |

7/14/2008 5:56:55 PM Permalink

Trackback from Dave Burke

Community Server to BlogEngine.NET SQL Migration Script

Dave Burke |

7/17/2008 7:58:12 PM Permalink

Trackback from External Feeds

Community Server to BlogEngine.NET SQL Migration Script

External Feeds |

Comments are closed

This site was built with the Sueetie .NET Open Source Community Framework. Learn more about Sueetie at Sueetie.com.