Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Problem with Upsizing Wizard
Message
De
28/02/2002 19:10:45
 
 
À
28/02/2002 18:49:54
Joel Leach
Memorial Business Systems, Inc.
Tennessie, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Client/serveur
Divers
Thread ID:
00626735
Message ID:
00626744
Vues:
12
>When upsizing a couple of large files (one > 100,000 records, one > 300,000), I get the following error: Error #1234 in convertvfplogicaltosqlserverbit (1995): Subscript is outside defined range.
>
>The following line of code is the culprit:
>
>lnLines = ALINES(laLines, lcFileStr)
>
>
>lcFileStr contains a string version of the entire file, evidently used for bulk inserts. At this point, the string is pretty big. I'm wondering if ALINES() can handle strings this large. MemLines() seems to work, but it will fall apart for records >8192 characters, since that is the limit for Set MemoWidth. Any suggestions?

Is it possible that ALINES() creates an array of over 65,000 elements? If so, that's the culprit - VFP arrays cannot have >65000 elements. I've handled very large strings with VFP, but there are limits to the LLFIO handlers in VFP6 and VFP7 at 16MB.

I'd try to either split the file, or avoid the array and use a cursor as an intermediary.
EMail: EdR@edrauh.com
"See, the sun is going down..."
"No, the horizon is moving up!"
- Firesign Theater


NT and Win2K FAQ .. cWashington WSH/ADSI/WMI site
MS WSH site ........... WSH FAQ Site
Wrox Press .............. Win32 Scripting Journal
eSolutions Services, LLC

The Surgeon General has determined that prolonged exposure to the Windows Script Host may be addictive to laboratory mice and codemonkeys
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform