Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
INSERT prevents recordset from returning from SP
Message
 
To
26/06/2001 13:15:24
General information
Forum:
Microsoft SQL Server
Category:
Stored procedures, Triggers, UDFs
Miscellaneous
Thread ID:
00523646
Message ID:
00523857
Views:
13
>I'm Using OLEDB provider from within VFP6. Here is a sample stored procedure:
>
>CREATE PROCEDURE crud_customers_create
>    @custName    varchar(254)
>    ... etc
>AS
>SET NOCOUNT ON
>INSERT INTO CUSTOMERS (custName, etc...)
>    VALUES (@custName, etc...)
>SELECT 'Any message here' AS 'message'
>
>
>In VFP:
>
>oRs = oCmd.execute && all parameters have been set
>if !(oRs.eof())    && crash and burn here...error:  "Operation is not allowed
>                          && when the recordset is closed"
>
>The record is inserted into the table by the SP, but I cannot get any recordsets to return to the client. It doesn't matter what I try to SELECT...no enchilada.
>
>Note: This problem does not happen if I use the ODBC driver instead of OLEDB.
>
>Thanks,

Steve;

I am not sure but VFP 6.0 and OLEDB may not be made for each other. VFP 7.0 includes OLEDB, but I am not sure about the compatibility with VFP 6. Maybe someone else has "The" answer.

Tom
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform