Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    text
    copied!<p>Checking around the internet, it looks like <a href="http://msdn.microsoft.com/en-us/library/cc488002.aspx" rel="nofollow">Microsoft's official answer</a> to converting rich to plain text is to load the data into a RichTextBox control and then pull it out with the RichTextBox.Text property. That sucks for a lot of reasons, but mostly because it means you're going to have to get your hands dirty. Your best bet is to write a small app that invokes the RichTextBox control and passes all of your data to/from the database (using the <a href="http://msdn.microsoft.com/en-us/library/haa3afyz%28v=vs.71%29.aspx" rel="nofollow">SqlDataReader</a> should alleviate the memory issues you mentioned).</p> <p>Just as a matter of process - I would suggest building an intermediary table that your "cleansed" data rows get dumped into before appending them to your production table. Once you get the stored proc figured out just right, you can create a trigger that automatically invokes your stored proc every time a record gets added to your dirty table. This will ultimately eliminate the need to run your program every day to move records, as the trigger will make sure it happens "on the fly".</p> <p><strong>Edit - one last thought</strong></p> <p>It occurred to me that you might not be comfortable writing stored procedures and triggers, which is ok. A more "programmatic" solution would be to kick all of the files in your dirty table out to a delimited text file, which can easily be downloaded and parsed. Once you have the text file, you could manipulate it with your app (read it, cleanse it, create a cleansed file..what have you) and then upload for reading back into your database. Depending on your comfort/background/skill level, this might actually be the better solution to get the job done. </p> <p>Hope this helps!</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload