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
 Adding quotes to a textfile
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

velvettiger
Posting Yak Master

115 Posts

Posted - 07/17/2008 :  07:53:06  Show Profile  Reply with Quote
Hi Guys,

I have a text file which looks like this

123456AmandaMorris

and I would like it to look like this
"123456","Amanda","Morris"

The file has about 2000 lines how would I go about inserting the quotes and the commas.

I use textpad to open the textfile and I am using sql server 2000.

Thanks in advance for you help.

sunsanvin
Flowing Fount of Yak Knowledge

India
1266 Posts

Posted - 07/17/2008 :  08:27:22  Show Profile  Send sunsanvin a Yahoo! Message  Reply with Quote
use editplus.

Arnav
Even you learn 1%, Learn it with 100% confidence.

Edited by - sunsanvin on 07/17/2008 08:27:48
Go to Top of Page

velvettiger
Posting Yak Master

115 Posts

Posted - 07/17/2008 :  09:42:09  Show Profile  Reply with Quote
Hi sunsanvin,

I have downloaded editplus and i am using the find in files option. Now inorder to search for multiple ids I tried "12345|45678|78569|78454" and it is not working. Do you have any ideas why it isn't working?
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.05 seconds. Powered By: Snitz Forums 2000