if exists(select 1 from sysobjects where name='pageUserlist_p' and xtype='p')
drop procedure dbo.pageUserlist_p
go
create procedure dbo.pageUserlist_p
@intResult Int OUTPUT
as
set nocount on
declare @PageCount1 int
declare @sql nvarchar(4000)
begin tran
set @sql='select userid,userCode,userName,loadName,userPwd from user_t'
exec(@sql)
set @intResult=12
If @@Error <> 0
Begin
RollBack Tran
SET @intResult=-1
End
Else
Begin
Commit Tran
End
GO