Hi, guys!
I have a stored procedure in MS SQL.
I execute it from Navision by using ADO component.
It takes a lot of time to execute it so i need something like Progress Bar.
Any ideas how i can image progress while SQL procedure is running?
Thanx in advance. :?:
Comments
show the "SQL status" on form.
onopen form start your SQL procedure. in this SQL procedure regulary update your progress table (like 1 of 7 steps completed, 2 of 7 ...)
on form's OnTimer event just read the progress table...
of course instead of making "text progress" you can make something more measurable (numbers) so you can show real progrrees bar...
¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯
Unfourtunately, since my SQL stored procedure begins to execute trigger OnTimer will not run till procedure finished...
Sorry for my English :roll:
¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯
ti ne ponial? :shock:
HYIEVO!
My problem is thai i need _ASync_ execution of stored procedure.
fb, in your code there is a string:
Can u(or anyone else) say how i can set this params on ADOConnection object in Navision?
do u want KASHA?
My code was:
It worked perfect.
But as far as i need async execution of procedure i change my code
(according to fb advice) to:
When i try to compile there is an error in that line. The error message is:
"A variable was expected. For examle:
MyVar
Customer.Name"
What`s the problem?
I`m using 'Microsoft ActiveX Data Objects 2.8 Library'.
The method signature (in VB form, see http://msdn.microsoft.com/library/en-us ... xecute.asp ) is as follows: Your problem is that you are trying to add the 'Options' argument without adding the 'RecordsAffected' argument. To correct this, first create a local variable (let's call it 'intRecsAffected') of type Integer, and then extend your original code as follows:
Thanx, fb.
I need to read the documentation more closely :roll: