Wrox Programmer Forums
|
ASP Forms As of Oct 5, 2005, this forum is now locked. Please use "Classic ASP beginner" at http://p2p.wrox.com/forum.asp?FORUM_ID=54 or "Classic ASP Professional" http://p2p.wrox.com/forum.asp?FORUM_ID=56 instead.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP Forms 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 November 23rd, 2004, 12:31 AM
Authorized User
 
Join Date: Oct 2004
Posts: 32
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to kiwibey
Default how to copy data from txt file

hi everybody,
i need copy data from txt file to sql server database...
so how can i copy the data from the txt file then capture by a variable then insert in to database.......
anybody have idea about this please help me.....
thank you so much...
also thanks for this p2p forum...
it help me a lots....

bey

 
Old November 23rd, 2004, 02:52 AM
Friend of Wrox
 
Join Date: May 2004
Posts: 642
Thanks: 0
Thanked 43 Times in 42 Posts
Default

you can use fileSystemobject to read the text file and insert the data in SQL server.
http://www.eggheadcafe.com/articles/20030627b.asp

Om Prakash
 
Old November 23rd, 2004, 02:11 PM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 2,480
Thanks: 0
Thanked 1 Time in 1 Post
Default

Hi Bey,

Is the data formatted in the text file? If so is the table structure similar to that of the data structure of the text file? If so, you may check out this thread, that should be helpful.

Import data in SQL

Hope that helps.
Cheers!

_________________________
- Vijay G
Strive for Perfection





Similar Threads
Thread Thread Starter Forum Replies Last Post
Export spreasheet data to txt file ymeyaw Excel VBA 1 May 18th, 2006 09:12 AM
Macro to copy data from one file to a 2nd file chadpodsednik Excel VBA 1 October 29th, 2004 10:40 AM
Read data from a text file (*.txt) adriant42 Excel VBA 2 June 4th, 2004 06:32 PM





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