| Author |
Topic  |
|
|
mohan123
Posting Yak Master
India
199 Posts |
|
|
DonAtWork
Flowing Fount of Yak Knowledge
2111 Posts |
|
|
bandi
Flowing Fount of Yak Knowledge
India
1437 Posts |
Posted - 12/20/2012 : 08:49:01
|
See this.... DECLARE @str varchar(100)= 'chaitanya@symphonycorp.com' SELECT REPLACE (@str, SUBSTRING (@str, 4, charindex('@', @str, 4)-4), '')
-- Chandu |
 |
|
|
jimf
Flowing Fount of Yak Knowledge
USA
2868 Posts |
Posted - 12/20/2012 : 09:02:34
|
Same result as bandi, just different method with less purple words stuff(@str,4,patindex('%@%',@str)-4,'')
Jim
Everyday I learn something that somebody else already knew |
 |
|
|
mohan123
Posting Yak Master
India
199 Posts |
Posted - 12/20/2012 : 09:53:20
|
yeah thanks a lot dude
P.V.P.MOhan |
 |
|
|
Bustaz Kool
Flowing Fount of Yak Knowledge
USA
1430 Posts |
Posted - 12/20/2012 : 17:57:42
|
I don't think this works if the preamble is shorter than three characters.
================================================= Hear the sledges with the bells - silver bells! What a world of merriment their melody foretells! |
 |
|
|
bandi
Flowing Fount of Yak Knowledge
India
1437 Posts |
Posted - 12/21/2012 : 00:31:09
|
quote: Originally posted by mohan123
yeah thanks a lot dude P.V.P.MOhan
Welcome
-- Chandu |
 |
|
| |
Topic  |
|