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.

 All Forums
 General SQL Server Forums
 New to SQL Server Programming
 Sql Spli

Author  Topic 

aoriju
Posting Yak Master

156 Posts

Posted - 2013-11-08 : 05:30:06
Hi team

DECLARE @Str_Ourput_Cognizant_Owned AS VARCHAR(100);

SET @Str_Ourput_Cognizant_Owned ='Project = 190';

I need to get the output as 190

visakh16
Very Important crosS Applying yaK Herder

52326 Posts

Posted - 2013-11-08 : 05:40:26
[code]
SELECT STUFF(@Str_Ourput_Cognizant_Owned,1,CHARINDEX(' = ',@Str_Ourput_Cognizant_Owned)+ 2,'')
[/code]

------------------------------------------------------------------------------------------------------
SQL Server MVP
http://visakhm.blogspot.com/
https://www.facebook.com/VmBlogs
Go to Top of Page
   

- Advertisement -