borderAndreaVB free resources for Visual Basic developersborder

borderAndreaVB Visual Basic and VB.NET source code resources - Copyright © 1999-2007 Andrea Tincaniborder

AndreaVB | Forum | News | Downloads | Register | Help | Member List | Statistics | Search | PM | Profile

Print This Topic
Previous Topic (Help for Multiuser VB Application)Next Topic (How To : Backup & Restore my SQL_Server database) New Topic New Poll Post Reply
AndreaVB Forum : Database : reading text file
Poster Message
boit
Level: Scholar

Registered: 28-04-2005
Posts: 42

icon reading text file

best practice in retrieving contents of a flat file, then saving to a database.

currently i'm still using the sdf method of clipper to read, fastest, contents of a file.

i tried dts from sql, but the time elapsed is quite noticeable.

help please

12-12-2006 at 02:01 PM
View Profile Send Email to User Show All Posts | Quote Reply
stickleprojects
Level: Moderator


Registered: 09-09-2002
Posts: 891
icon Re: reading text file

Hi,
I havent noticed any appreciable delay in the DTS read. Are you importing into a table with indexes? As this will definitly slow it down.
You could also try the bulkcpy utility that comes with SQL.
What version of SQL are you running?
K

____________________________
Build it better, faster, quicker, easier.. then fix it (non-offical MS mission statement)

12-12-2006 at 04:33 PM
View Profile Send Email to User Show All Posts | Quote Reply
JLRodgers
Level: Moderator

Registered: 04-04-2002
Posts: 1617
icon Re: reading text file

The bulk import that comes with SQL would be the quickest way (if you can use it).  Back in like 2001 I had to import around 40million pieces of info in a text file into a database table, simple insert commands took about 5-10 hours to run.  Bulk insert took about 30 seconds-1min.



____________________________
Everywhere's Local (classifieds, job postings, & more for everycity in the world - user entered)

12-12-2006 at 08:12 PM
View Profile Send Email to User Show All Posts Visit Homepage | Quote Reply
boit
Level: Scholar

Registered: 28-04-2005
Posts: 42
icon Re: reading text file

thanks for the info. really helped a lot. thanks masters.

26-12-2006 at 02:32 AM
View Profile Send Email to User Show All Posts | Quote Reply
AndreaVB Forum : Database : reading text file
Previous Topic (Help for Multiuser VB Application)Next Topic (How To : Backup & Restore my SQL_Server database) New Topic New Poll Post Reply
Surf To:


Not Logged In? Username: Password: Lost your password?
Partners: Download Actual Software | Free Software Download
borderAndreaVB free resources for Visual Basic developersborder

borderAndreaVB Visual Basic and VB.NET source code resources - Copyright © 1999-2007 Andrea Tincaniborder