Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
R

RobLazarus

@RobLazarus
About
Posts
3
Topics
1
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • Am I a S***bag?
    R RobLazarus

    Yeah I think you need Intelligent and Efficient bosses to recognize Intelligence and Efficiency!! :laugh:

    The Lounge question

  • Am I a S***bag?
    R RobLazarus

    My friends call me a s***bag because I automate my work when I was hired to do it manually. Am I?

    The Lounge question

  • Remove empty spaces in a String in TSQL
    R RobLazarus

    Here's a generic example:

    create table t (s sysname)
    insert into t select 'this is the reason that I did this. '

    -- convert tabs to spaces
    update	t set s = replace(s, '	',' ')
    where	charindex('	', s) > 0
    
    -- now do the work.
    while 1=1
    begin
    	update t
    	set		s = substring(s, 1, charindex('  ', s, 1)-1) + ' ' + ltrim(substring(s,charindex('  ', s, 1), 8000))
    	where	charindex('  ', s, 1) > 0
    
    	if @@rowcount = 0
    		break
    end
    
    select	s
    from	t
    
    Database csharp asp-net sql-server com
  • Login

  • Don't have an account? Register

  • Login or register to search.
  • First post
    Last post
0
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups