create procedure xxxxxx
as
set nocount on
..........请问各位高手,set nocount on 这句是什么意思啊??
小弟是新手,菜鸟一点

解决方案 »

  1.   

    SET NOCOUNT to ON and no longer display the count message.
      

  2.   

    When SET NOCOUNT is ON, the count (indicating the number of rows affected by a Transact-SQL statement) is not returned. When SET NOCOUNT is OFF, the count is returned.---
    SET NOCOUNT ON
    没有返回值SET NOCOUNT OFF
    有返回值 
      

  3.   

    如果不加上 set nocount on,
    那么你的存贮过程中,只要有select语句,则会有返回记录,但是有时你是不需要的.
    所以一般在你需要得到返回值时,才执行一下
    set nocount off
    如果你在客户端用记录集得到一个表,就知道它的用途了.
    不过好象用odbc连接不用加,用ado连接必须要加