SQL Server Forums
Profile | Register | Active Topics | Members | Search | Forum FAQ
 
Register Now and get your question answered!
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 SQL Server 2005 Forums
 Transact-SQL (2005)
 remove dashes from ssn field
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

coleman8er
Starting Member

7 Posts

Posted - 02/01/2008 :  10:23:39  Show Profile  Reply with Quote
i've been trying to wrap my head around how to write a script to remove the dashes from a social security number in an existing table.

i have a table with column ssn. not sure where to start here, any input would be helpful.

cheers,
andrew

visakh16
Very Important crosS Applying yaK Herder

India
52317 Posts

Posted - 02/01/2008 :  10:33:07  Show Profile  Reply with Quote
try REPLACE(ssn,'-','')
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
SQL Server Forums © 2000-2009 SQLTeam Publishing, LLC Go To Top Of Page
This page was generated in 0.08 seconds. Powered By: Snitz Forums 2000