Code snippet available at for Vb as well as c#.:
http://technet.microsoft.c
It might be better to run an update query directly on the SQL server to strip the unwanted characters from the field.
\r, \n, \t are the regex.
Do not have a working example at hand, but the following link has the enclosed example:
http://weblogs.sqlteam.com
Main Topics
Browse All Topics





by: appariPosted on 2008-02-01 at 08:50:37ID: 20798212
try
btab,"").r eplace(vbc rlf,"")
yourvariableName = yourvariableName.replcae(v