CREATE PROCEDURE developer.LoginProc
(
@ID numeric(18,0),
@Names varchar(8) output
)
AS
SET NOCOUNT OFF
select @Names=name from table1 where @ID=1
Go