存储过程如下:
ALTER procedure [dbo].[proc_count]
@count int output
asselect @count = count(*) from [user]在SQL  2005中 调用:
declare @count int 
exec proc_count @count output
print @count
go
正常。
在C#程序中调用:
            SqlCommand command = new SqlCommand("proc_count",connection);
            SqlParameter para = new SqlParameter("@count",SqlDbType.Int);
            command.Parameters.Add(para);            
            para.Direction = ParameterDirection.Output;
            command.ExecuteReader();
            Console.WriteLine(para.Value.ToString());报错:'proc_count' 附近有语法错误。请高人赐教