Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
C# replacement for VFP code
Message
From
08/11/2006 11:07:47
Alexandre Palma
Harms Software, Inc.
Alverca, Portugal
 
 
To
08/11/2006 10:54:50
Walter Meester
HoogkarspelNetherlands
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
01167122
Message ID:
01168046
Views:
27
Walter in taht example you said some will say use an SP other use SPT, that specific example I would use Regular ADO.NET or VFP to SQL cursors, start a transaction and then submit all the inserts updates, deletes on a go.
But that isn't the example i'm talking about, I usually use SP's other then when performing complex queries using tempoary tables and at the end will generate usually a cursor that's what get returned to the client, that's when SP's make more sense to me and when they will beat SPT, not cause SP's are always fast than SPT but cause ot the latency roundtrips between the server and the client.
Hope this clarify more what I was saying, if not I can always try to explain to you in Portuguese. ;)

>>Alexandre,
>>
>>>Walter you can but as John said this is when the use of SP's make the more sense, remember that multiple round trips have a speed cost, where nothing is processing is just the delay of comunication between the server and the client while if u call a SP that encapsulate all that same call's in just 1 unit it will be faster then SPT, and this is a fact that u can mesure.
>
>>Huh?? Lets say that you have an order with orderlines. And you want to submit the thing into one transaction. One way or another the information has to be send to the server.
>
>BTW, you can pass all the needed SQL code through SPT as well, no problemo. No more rountrips.
>
>>How do you want to do this with a SP?? An example please, I'm curious how you guys think it would be easier and at the same time performing better than SPT .....
>>
>>If you are talking about the extra SQLCOMMIT(), I don't think anyone would argue this is measurable within a whole transaction.
>>
>>And even if you've got a case where a SP does perform better and is more logical, my reply was based on the fact that mission critical transactions spanning multiple tables ARE POSSIBLE with SPT. So the argument that an SP has the advantage of wrapping everything into a transaction, is simply not true.
>>
>>Walter,
Alexandre Palma
Senior Application Architect
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform