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
 General SQL Server Forums
 New to SQL Server Programming
 remove double quotes from column data
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

eugz
Posting Yak Master

195 Posts

Posted - 06/17/2014 :  16:21:50  Show Profile  Reply with Quote
Hi All.
I imported data from flat file to SQL Server database table. After execution one of column got data with double quotes. It look like:

22222.....02/14/2014....."Smith, John"
333........02/14/2014....."Brownies, Alian"

How to remove quotes?

Thanks.

tkizer
Almighty SQL Goddess

USA
36851 Posts

Posted - 06/17/2014 :  16:34:10  Show Profile  Visit tkizer's Homepage  Reply with Quote
If double quotes don't exist in the middle of the data, then you can use this:

update yourtable
set yourcolumn = replace(yourcolumn, '"', '')

Tara Kizer
SQL Server MVP since 2007
http://weblogs.sqlteam.com/tarad/
Go to Top of Page

eugz
Posting Yak Master

195 Posts

Posted - 06/17/2014 :  17:06:16  Show Profile  Reply with Quote
Works great, Thank you Tara.
Go to Top of Page

tkizer
Almighty SQL Goddess

USA
36851 Posts

Posted - 06/17/2014 :  17:12:07  Show Profile  Visit tkizer's Homepage  Reply with Quote
You're welcome, glad to help.

Tara Kizer
SQL Server MVP since 2007
http://weblogs.sqlteam.com/tarad/
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.06 seconds. Powered By: Snitz Forums 2000