Wrox Programmer Forums
Go Back   Wrox Programmer Forums > SQL Server > SQL Server 2000 > SQL Server 2000
|
SQL Server 2000 General discussion of Microsoft SQL Server -- for topics that don't fit in one of the more specific SQL Server forums. version 2000 only. There's a new forum for SQL Server 2005.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the SQL Server 2000 section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old July 20th, 2003, 06:49 AM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 518
Thanks: 0
Thanked 0 Times in 0 Posts
Default Remove Space from table records

Hi,

How can remove the spaces from the table's records ?
Which is save in sql server database
I have thousand of records which image name are save like this.

Contract no20 location a.tif
Contract no25 location b.tif
Contract no26 location c.tif
 And so on…….

It create problem in display the image.
Which query will use to remove the spaces of records which are save in sql server ?
Please help.

Mateen
[email protected]
 
Old July 20th, 2003, 06:55 AM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 839
Thanks: 0
Thanked 1 Time in 1 Post
Default

Code:
UPDATE YourTable SET YourColumn=REPLACE(YourColumn,' ','');
Jeff Mason
Custom Apps, Inc.
www.custom-apps.com





Similar Threads
Thread Thread Starter Forum Replies Last Post
How to remove table height msbsam ASP.NET 2.0 Professional 0 June 25th, 2008 01:37 AM
remove commas and space in a string kumiko Classic ASP Basics 1 January 10th, 2008 11:42 PM
Space in my database table Access cannielynn0312 ASP.NET 1.0 and 1.1 Basics 4 December 27th, 2007 06:02 AM
Remove the unwanted space at end of the string gmbalaa General .NET 2 August 21st, 2007 11:35 PM
removing unwanted space below table ngvietanh HTML Code Clinic 1 August 24th, 2006 10:28 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.