这样改:
ALTER   proc Getauthors
@StartRow as int = null,
@StopRow as int = null
AS
 
Set RowCount @StopRow
 
select vchUserId,vchNewsTitle into #tmp1 from tb_UserNews   
exec('alter table #tmp1  add  rownum int IDENTITY (1, 1)  primary key NOT NULL')   
SELECT * FROM #tmp1
 WHERE  rownum >= @StartRow
 ORDER BY rownum drop table #tmp1 
GO