Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Measuring progress of a BCP event
Message
 
 
To
29/05/2004 20:40:08
General information
Forum:
Visual FoxPro
Category:
Client/server
Miscellaneous
Thread ID:
00907011
Message ID:
00908884
Views:
10
Kenneth,

Thanks for posting the code back. I'm curious though how long your total BCP process is taking and how much it slows it down making the count(*) hit every .25 seconds. You might find the performance overall better if you set that poll interval time so that the count(*) query happens no more than say 100 times ie 1% although depending on the size of your thermometer and it's blip accuracy might allow you to use a much longer interval.

>This is how you can run monitor the progress of bulk copying data into an RDBMS database such as MS SQL Server from Visual Fox Pro. The general approach is to establish two connections to the RDBMS, one connection runs the bulk-copy event, hereafter “bcp”. The other connection is used to monitor the bcp event.

> = INKEY( .25 ) && This reduces the number of times per second, the monitoring request is sent to the SQL server.
df (was a 10 time MVP)

df FoxPro website
FoxPro Wiki site online, editable knowledgebase
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform