Please start any new threads on our new
site at https://forums.sqlteam.com. We've got lots of great SQL Server
experts to answer whatever question you can come up with.
| Author |
Topic |
|
aiken
Aged Yak Warrior
525 Posts |
Posted - 2005-04-17 : 12:21:21
|
| Usually I have some idea of where to start, but right now I'm stumped.I need to get the total number of words (character groups seperated by whitespace) from a text column. It doesn't need to be perfect -- it doesn't matter a lot if "whitespace" counts CRLF or punctuation. It just needs to be good enough for rough statistical analysis. So I could see doing something that counts the number of spaces in a text field... but I'm stumped on that, too.Any ideas?Thanks-b |
|
|
nr
SQLTeam MVY
12543 Posts |
Posted - 2005-04-17 : 12:58:59
|
| seehttp://www.mindsdoor.net/SQLTsql/ReplaceText.htmlYou could copy the text to a temp table - run that to remove spaces then compare the datalengths.==========================================Cursors are useful if you don't know sql.DTS can be used in a similar way.Beer is not cold and it isn't fizzy. |
 |
|
|
|
|
|