format rtf column into plain text

  • Hi,

    is there a way to format an RTF column in my database into plain text.

    kind regards,

    Bryan

  • Mostly everything is possible, check this http://www.codeguru.com/columns/dotnettips/article.php/c7529/ 😉

    _____________________________________
    Pablo (Paul) Berzukov

    Author of Understanding Database Administration available at Amazon and other bookstores.

    Disclaimer: Advice is provided to the best of my knowledge but no implicit or explicit warranties are provided. Since the advisor explicitly encourages testing any and all suggestions on a test non-production environment advisor should not held liable or responsible for any actions taken based on the given advice.
  • Hi,

    Isn't there a way to do this directly in the database?

    bryan

  • bryan van ritter (4/13/2010)


    Isn't there a way to do this directly in the database?

    Do you mean... by clicking here and there? don't think so.

    You can always convert data already in the affected table and write an after insert-update trigger to take care of new data.

    _____________________________________
    Pablo (Paul) Berzukov

    Author of Understanding Database Administration available at Amazon and other bookstores.

    Disclaimer: Advice is provided to the best of my knowledge but no implicit or explicit warranties are provided. Since the advisor explicitly encourages testing any and all suggestions on a test non-production environment advisor should not held liable or responsible for any actions taken based on the given advice.
  • Not by clicking here and there, but with a function probably?

  • bryan van ritter (4/13/2010)


    Not by clicking here and there, but with a function probably?

    Sure!

    Look at the link I posted, customize the code so to write your own function and you are done 🙂 I would go with the storedproc/trigger combo rather than with a function but that's just my personal preference.

    _____________________________________
    Pablo (Paul) Berzukov

    Author of Understanding Database Administration available at Amazon and other bookstores.

    Disclaimer: Advice is provided to the best of my knowledge but no implicit or explicit warranties are provided. Since the advisor explicitly encourages testing any and all suggestions on a test non-production environment advisor should not held liable or responsible for any actions taken based on the given advice.
  • Hi Paul,

    thanks i'll just try that.

    Bryan

Viewing 7 posts - 1 through 6 (of 6 total)

You must be logged in to reply to this topic. Login to reply