use ranuser
declare @tmpusername varchar(50),@tmppassword varchar(50),@tmppassword2 varchar(50),@tmpusertype int
set @tmpusername= 'userid1'
set @tmppassword= 'userpassword'
set @tmppassword2= 'userpassword2'
set @tmpusertype= '30'
declare @nUserPass varchar(19),@nUserPass2 varchar(19)
set @nUserPass=(Select left(CONVERT(Varchar(32),HashBytes('MD5',@tmppassword),2),19))
set @nUserPass2=(Select left(CONVERT(Varchar(32),HashBytes('MD5',@tmppassword2),2),19))
insert into UserInfo (UserName,UserID,UserPass,UserPass2,UserType) Values (@tmpusername,@tmpusername,@nUserPass,@nUserPass2,@tmpusertype)