server-re/decomp/schema/RustyHearts_Auth/procs/up_gm_add.sql

14 lines
402 B
Transact-SQL

CREATE procedure [dbo].[up_gm_add]
@account nvarchar(16),
@pass nvarchar(16)
as
set nocount on
declare @LastGMID bigint;
select @LastGMID = [Value] from GlobalVariableTable with (nolock) where VarName = 'LastGMID'
update GlobalVariableTable set [Value] = @LastGMID+1 where VarName = 'LastGMID'
insert into GMInfoTable values ( @LastGMID, @account , @pass, 100, GETDATE() )
return @@error