Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
INSERT prevents recordset from returning from SP
Message
From
26/06/2001 13:15:24
 
 
To
All
General information
Forum:
Microsoft SQL Server
Category:
Stored procedures, Triggers, UDFs
Title:
INSERT prevents recordset from returning from SP
Miscellaneous
Thread ID:
00523646
Message ID:
00523646
Views:
46
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 Gibson
Next
Reply
Map
View

Click here to load this message in the networking platform