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 |
|
alecl
Starting Member
13 Posts |
Posted - 2004-07-08 : 15:41:39
|
| I'm putting info from a trace table into the DB and I'd like to remove all TSQL comments from the textdata to make it easier to see things at a glance. (Any line starting with -- or between /* */). I can do this in an external language, but it would be great if it could be done right in SQL. Ideas? |
|
|
MichaelP
Jedi Yak
2489 Posts |
Posted - 2004-07-08 : 15:45:16
|
| Do some reading on CHARINDEX, PATINDEX, and SUBSTRING.I think that will point you in the reight direction.Michael<Yoda>Use the Search page you must. Find the answer you will.</Yoda> |
 |
|
|
|
|
|