Re: Help - stored procedure not returning a recordset
From: Aaron Bertrand - MVP (aaron_at_TRASHaspfaq.com)
Date: 02/12/04
- Next message: ann_nyc: "Re: Database not defined, but it is..."
- Previous message: CJM: "Re: ADO Constants (solved?)"
- In reply to: Samuel Hon: "Re: Help - stored procedure not returning a recordset"
- Next in thread: Samuel Hon: "Re: Help - stored procedure not returning a recordset"
- Reply: Samuel Hon: "Re: Help - stored procedure not returning a recordset"
- Messages sorted by: [ date ] [ thread ]
Date: Thu, 12 Feb 2004 09:55:34 -0500
> Remember to SET NOCOUNT OFF at the end of the proc too
Why? The setting only lasts for the scope of the proc (or the proc that
called it).
I always SET NOCOUNT ON and out of n stored procedures I have, not one
includes SET NOCOUNT OFF. Seems silly to enable it unless you are debugging
in query analyzer and can't be bothered with @@ROWCOUNT.
-- Aaron Bertrand SQL Server MVP http://www.aspfaq.com/
- Next message: ann_nyc: "Re: Database not defined, but it is..."
- Previous message: CJM: "Re: ADO Constants (solved?)"
- In reply to: Samuel Hon: "Re: Help - stored procedure not returning a recordset"
- Next in thread: Samuel Hon: "Re: Help - stored procedure not returning a recordset"
- Reply: Samuel Hon: "Re: Help - stored procedure not returning a recordset"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|
|