caracalla
asked on
Stored procedure won't return to VB
VB 6.0; SQL Server 2000
A stored procedure runs perfectly well from SQL Query Analyzer. However, from VB, it won't return anything. If I comment the SQL totally from stored procedure and replace it with 'hello', it returns 'hello' to VB. The parameters are OK.
A stored procedure runs perfectly well from SQL Query Analyzer. However, from VB, it won't return anything. If I comment the SQL totally from stored procedure and replace it with 'hello', it returns 'hello' to VB. The parameters are OK.
I assume all you need to do is to add the following line to the procedure:
CREATE PROCEDURE yourproc
AS
SET NOCOUNT ON --- add this line
... here comes the rest of your proc code
CREATE PROCEDURE yourproc
AS
SET NOCOUNT ON --- add this line
... here comes the rest of your proc code
ASKER
found it: SET NOCOUNT ON
There were 2 sets of select statements.
There were 2 sets of select statements.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Dave