Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
ADO Command & stored procedures
Message
From
25/06/2001 14:39:05
 
 
To
25/06/2001 14:27:04
General information
Forum:
Visual FoxPro
Category:
COM/DCOM and OLE Automation
Miscellaneous
Thread ID:
00522595
Message ID:
00523140
Views:
9
>
>SQL 7 does support the Refresh method. Do you have to use a command object? If not, use the connection's execute method like so:
>
>oRS = oConn.Execute("sp_pkeys 'mytablename'")
>
>I tested with this and it works as expected.

I don't need to use the command object for this stored procedure, so I will do that. I do want to use command object for the stored procedures in the database, and I was not having a problem with those, until....

Changing to the OLEDB provider broke my code.

when I:
ors = oCmd.execute
if !ors.eof()   && error occurs here
I am getting an error saying that the recordSet must be open to perform this command. Switching back to my old connect string allows the code to function again. I need to trace through errors, etc., to track this down...

Thanks again for the help...
Steve Gibson
Previous
Reply
Map
View

Click here to load this message in the networking platform