Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Inserting data from a SDF file into an SQL table
Message
From
16/03/2001 13:40:51
Cindy Winegarden
Duke University Medical Center
Durham, North Carolina, United States
 
 
To
16/03/2001 12:47:50
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Miscellaneous
Thread ID:
00485992
Message ID:
00486030
Views:
20
Kris,

Sure, but using FGETS() and then a lot of SUBSTRING() stuff don't sound like a "shortcut" to me - creating a cursor sounds a lot easier. YMMV.

>I have an SDF non-delimited text file which I am trying to parse and insert into an SQL table. Is it possible to read one line at a time from the text file into a long string variable and then parse it into smaller variables to be used in an insert statement?
>
>I know that I can append from the file into a foxpro table and then insert that table into SQL but there should be a shortcut of some kind I'm just not sure how to find it.
Previous
Reply
Map
View

Click here to load this message in the networking platform