Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
ADO Command & stored procedures
Message
From
22/06/2001 17:58:34
 
 
To
22/06/2001 17:42:55
General information
Forum:
Visual FoxPro
Category:
COM/DCOM and OLE Automation
Miscellaneous
Thread ID:
00522595
Message ID:
00522681
Views:
7
>If you want to call it this way you need to refresh the parameters collection by adding .Parameters.Refresh() before the endwith on the ocmd. The collection is empty unless you check the server first.
>
>The alternative is to append the parameter manually by using .Parameters.Append() and .CreateParameter().
>

Just before I got this from you, I used .parameters.append() method...it works. ocmd.parameters.refresh() is not working. I guess it is better this way; I know the names of the parameters, so I shouldn't make a trip to the server to find out what I already know.

But this still leaves me wondering. For the stored procedures in my database, the parameters are populated as soon as oCmd.commandText is set. IOW, the trip to the server is made at that point, without issuing .parameters.refresh().

Thanks for the help,
Steve Gibson
Previous
Reply
Map
View

Click here to load this message in the networking platform