Go Back  Xtreme Visual Basic Talk > Legacy Visual Basic (VB 4/5/6) > Database and Reporting > ISAM/ODBC text import - Maximum number of records?


Reply
 
Thread Tools Display Modes
  #1  
Old 04-15-2003, 03:43 PM
jz_007's Avatar
jz_007 jz_007 is offline
Centurion
 
Join Date: Jan 2003
Location: Wantage, Great Britain
Posts: 105
Default ISAM/ODBC text import - Maximum number of records?


Hiya

I'm importing some data from a text file into a Access database using
the code:

Code:
Set db = New ADODB.Connection db.CursorLocation = adUseClient SrcFileName = MyPath & "alldata.txt" db.Open "PROVIDER=MSDASQL;dsn=Text Files;uid=;pwd=;database=alldata.txt;" Set adoPrimaryRS = New ADODB.Recordset tblName = "ImportData" strSQL = "insert INTO " & tblName & " (fld1, fld2, fld3, fld4 ) " & _ "IN '" & strMyDbNamePub & "' " & _ "select fld1, fld2, fld3, fld4" & _ "from " & SrcFileName & ";" '& _ adoPrimaryRS.Open strSQL, db, adOpenStatic, adLockOptimistic

The code works fine, but I seem to remember reading somewhere that
there is a limit to the number of records you can import in one go using this method.
Hitting the limit wouldn't be much of a problem, but does anyone know what the limit is?

Thanks

Joolz
Reply With Quote
  #2  
Old 04-22-2003, 05:02 AM
jz_007's Avatar
jz_007 jz_007 is offline
Centurion
 
Join Date: Jan 2003
Location: Wantage, Great Britain
Posts: 105
Default

Oh well, I just tried it anyway - I got to 1.6 million lines by 4 columns and it was still OK. If there is a limit, then it's high enough for me...

Joolz
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
pacman ghost AI VB6Newbie Game Programming 23 10-10-2002 07:32 PM
Import text from text file to res Ales Zigon General 3 08-18-2002 11:07 AM
Wraping text around an image? Serevinus Web Programming 7 06-20-2002 01:46 PM
Someone Help Me With My Message Boxes Please!! Tajiri17 General 12 03-02-2002 11:29 AM

Advertisement:





Free Publications
The ASP.NET 2.0 Anthology
101 Essential Tips, Tricks & Hacks - Free 156 Page Preview. Learn the most practical features and best approaches for ASP.NET.
subscribe
Programmers Heaven C# School Book -Free 338 Page eBook
The Programmers Heaven C# School book covers the .NET framework and the C# language.
subscribe
Build Your Own ASP.NET 3.5 Web Site Using C# & VB, 3rd Edition - Free 219 Page Preview!
This comprehensive step-by-step guide will help get your database-driven ASP.NET web site up and running in no time..
subscribe
 
 
-->