create proc dbo.NEWPROC
@varfield nvarchar(20) = '' output,
@vchProjectName nvarchar(255) ='',
@vchComment nvarchar(255) ='',
@vchLoginName nvarchar(255) ='',
@vchPassword nvarchar(255) =''
as
set nocount on
begin
declare @iReturn int
set @iReturn=1
if @iReturn <> 0
set @varfield = 'OK'
else
set @varfield = 'NO'
END
这样的达到你要求了吗?