Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Nocount On/Off

Status
Not open for further replies.

Ielamrani

MIS
Jul 7, 2005
183
0
0
US
Can anyone explain the meaning of SET NOCOUNT ON SET and NOCOUNT OFF in the following code:

USE pubs
SET NOCOUNT ON
GO
DECLARE @pub_id char(4), @hire_date datetime
SET @pub_id = '0877'
SET @hire_date = '1/01/93'
-- Here is the SELECT statement syntax to assign values to two local
-- variables.
-- SELECT @pub_id = '0877', @hire_date = '1/01/93'
SET NOCOUNT OFF
SELECT fname, lname
FROM employee
WHERE pub_id = @pub_id and hire_date >= @hire_date

Thanks in advance

Ismail
 
This is NOT Jet SQL syntax.
Try a SQL Server forum.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top