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 |
aoriju
Posting Yak Master
156 Posts |
Posted - 2013-08-05 : 04:52:55
|
DECLARE @url VARCHAR(1000)SET @url ='http://www.microsoft.com/technet/security/bulletin/ms11-022.mspx';How to get the result like 'ms11-022.mspx' |
|
visakh16
Very Important crosS Applying yaK Herder
52326 Posts |
Posted - 2013-08-05 : 05:01:21
|
[code]SELECT REVERSE(LEFT(REVERSE(@url),CHARINDEX('/',REVERSE(@url))-1))[/code]------------------------------------------------------------------------------------------------------SQL Server MVPhttp://visakhm.blogspot.com/https://www.facebook.com/VmBlogs |
 |
|
|
|
|