Forum Replies Created

Viewing 15 posts - 811 through 825 (of 1,114 total)

  • RE: Query Help - 3

    Any Inputs ?

  • RE: Query Help - 3

    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.

  • RE: Query Help - 3

    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...

  • RE: T-sql update name fields

    All you did was slow it down. RIGHT and LEFT are faster than SUBSTRING.

    Really Jeff ! Can u give me an example ?

  • RE: T-sql update name fields

    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.

  • RE: Query Help - 1

    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...

  • RE: Prepare a stored procedure work flow diagram

    "http://www.aivosto.com/visustin.html"

    it is very useful.

    Thank you for all.

  • RE: Query Help - 1

    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...

  • RE: Query Help - 1

    steveb,

    i think your query will display 200 and 250.

    But the expected output is 250 only.

    Please check it.

  • RE: Query Help - 1

    which one is the efficient way ?

  • RE: Prepare a stored procedure work flow diagram

    Any Inputs ?

  • RE: Query help

    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...

  • RE: Query help

    Thanks SteveB and Gsquared.

  • RE: Splitting

    Sorry for not including your suggestion.

    Well,once again,Thank you for all.

  • RE: Find the number of tables used by a procedure

    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...

Viewing 15 posts - 811 through 825 (of 1,114 total)