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 |
|
helpimstuck
Starting Member
2 Posts |
|
|
Seventhnight
Master Smack Fu Yak Hacker
2878 Posts |
Posted - 2004-11-02 : 11:00:33
|
This should do it...Declare @myStr varchar(1500), @countStr varchar(100)Set @myStr = 'http://www.buydrugshere.com go here! http://www.onlinemortage.com right there! http://www.viagra.com buy that!'Set @countStr = 'http'Select (len(@myStr)-len(replace(@myStr,@countStr,'')))/len(@countStr) Corey |
 |
|
|
helpimstuck
Starting Member
2 Posts |
Posted - 2004-11-02 : 11:46:52
|
| Wow. You deserve a gold star for that one!! It totally works. Thanks a bunch. |
 |
|
|
Seventhnight
Master Smack Fu Yak Hacker
2878 Posts |
Posted - 2004-11-02 : 12:34:07
|
Yeah!!! I got a gold star!  Corey |
 |
|
|
|
|
|