Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Sql server very slow to append new records
Message
From
30/03/2000 10:51:37
 
 
To
19/03/2000 04:33:48
General information
Forum:
Visual FoxPro
Category:
Client/server
Miscellaneous
Thread ID:
00347575
Message ID:
00352741
Views:
17
>I have tried loading data for first time on SQL server 6.5.
>The NT4 server was PII 350mhz with 64 mb ram as domain server and sql server. The terminal or client was a AMD k6 450 mhz with 128 mb ram with win 98.
>
>I tried to add 38000 records from a vfp table to remote view of sql server. It took about 35 mins to complete the task.
>
>What is wrong in above process.
>
>Rajesh

In my experience, loading SQL tables thru a VFP remote view is one of the slowest ways to go. A much better is to build a character string to perform the insert and use SQLEXEC() to do it. There is a limit on string length but it is pretty large; we are using this method to load a 77-column table (1324 byte header) and are not running into the limit yet. My last speed test was under two minutes for 7100 records.

If the process has to be stopped and restarted, you will definitely encounter problems with a remote view.

Table indices will also affect import speed.

Lastly, you might want to consider upgrading your server. You'll want more memory than 64Mb. SQL Server performance is greatly affected by available memory, and if at all possible you'll want to have it on a separate server from your domain.
Dan LeClair
www.cyberwombat.com
SET RANT ON - The Wombat Blog

Life isn’t a morality contest and purity makes a poor shield. - J. Peter Mulhern
Disclaimer: The comments made here are only my OPINIONS on various aspects of VFP, SQL Server, VS.NET, systems development, or life in general, and my OPINIONS should not be construed to be the authoritative word on any subject. No warranties or degrees of veracity are expressed or implied. Void where prohibited. Side effects may included dizziness, spontaneous combustion, or unexplainable cravings for dark beer. Wash with like colors only, serve immediately for best flavor.
Previous
Reply
Map
View

Click here to load this message in the networking platform