Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to move data into a SQL-Server database?
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Client/serveur
Divers
Thread ID:
00540114
Message ID:
00540128
Vues:
15
Hi!

DTS is 2 times slower than BCP+converting VFP table to text format.
You can also run an INSET statement with data get by OPENROWSET() from VFP table to SQL Server that is also quicker. DTS do 2 OPENROWSETs, one to query data and one to save data. That is why it twice slower than a single OPENROWSET on SQL server. We did speacial investigate for that on the DBF table with 74,000 records and 130 fields when getting only 25 fields from it, all fields are character with average length 20.

Anyway, DTS is recommended by MS because it is COM-based, more flexible and more reliable compare to, say, BCP tramsfer from text file (we spent some time to make VFP->TXT conversion more reliable for character data).

>Besides BCP that Vlad mentioned, you could use Data Transformation Services (DTS) that come with SQL Server to import data. In general BCP is more efficient, but DTS is easier to use...depending on your scenario.
>
>You could also write your own VFP program that reads your flat file and sends SQL Statements (SQL-pass through) to insert your records.
>
>
>>To All,
>>
>>Is there a way to port data directly into a SQL Server data table? For example, if I had a flat file that I parsed using a set of C functions or methods, is there a way I could get the results, still in memory directly into a SQL Server database?
>>
>>Just curious.
>>
>>TIA,
>>Thom C.
Vlad Grynchyshyn, Project Manager, MCP
vgryn@yahoo.com
ICQ #10709245
The professional level of programmer could be determined by level of stupidity of his/her bugs

It is not appropriate to say that question is "foolish". There could be only foolish answers. Everybody passed period of time when knows nothing about something.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform