Viewing 15 posts - 811 through 825 (of 1,114 total)
http://www.sqlservercentral.com/Forums/Topic432183-8-1.aspx
i have tried to implement it. But i failed to implement.
Anybody help me out to resolve this issue.
April 17, 2008 at 6:49 am
Set @Temp = 'from Company A,Department B,Manager C'
Select @Temp = substring(@Temp, 6, Len(Temp)-5)
One step added so that finally you will have:
Your query will fail,if i have one more space in...
April 17, 2008 at 6:37 am
All you did was slow it down. RIGHT and LEFT are faster than SUBSTRING.
Really Jeff ! Can u give me an example ?
April 17, 2008 at 6:15 am
Jeff,
I have modified your code slightly.
----------------------
Select SUBSTRING(Full_Name,CHARINDEX(' ',Full_Name),LEN(Full_Name))+','
+SUBSTRING(Full_Name,1,CHARINDEX(' ',Full_Name)) AS ModifiedName
From #yourtable
---------------------
It works fine.
April 15, 2008 at 12:59 am
Thanks Chris. I Welcome your suggestions.
I have modified your code slightly and found a new way to acheive the same task.
select People_Number,count(*)
into #Cnt
from #TheTable
group by People_Number
having count(*) = 2
select a.People_Number,a.Web_Role
into...
April 15, 2008 at 12:35 am
"http://www.aivosto.com/visustin.html"
it is very useful.
Thank you for all.
April 14, 2008 at 7:10 am
Ok... I admit it... I'm being a bit nasty... A "Senior Software Engineer" should know this.
I know the second method is efficient.Because it doesn't use Temp tables.
Every Database...
April 14, 2008 at 2:38 am
steveb,
i think your query will display 200 and 250.
But the expected output is 250 only.
Please check it.
April 11, 2008 at 6:44 am
Gsquared and SteveB,
Suppose if i want to replace some special characters from a string, shall i use char() function ?
Say for example,
Declare @Str varchar(15)
set @str = '13-08-2008'
select replace(@str,xx,char(47))
here xxx can...
April 10, 2008 at 8:32 am
Sorry for not including your suggestion.
Well,once again,Thank you for all.
April 10, 2008 at 6:10 am
can't we achieve this by using SQL queries ? Because you are all saying sp_depends or dbo.sysdepends table will not provide the necessary or relaible informations.
Again,can't we achieve this by...
April 10, 2008 at 3:38 am
Viewing 15 posts - 811 through 825 (of 1,114 total)