1: lin_CreateChar
create character sp
INPUT
@char_name NCHAR(12),
@account_name NCHAR(13),
@account_id INT,
@pledge_id INT,
@builder TINYINT,
Is builder or not. BOOL
2:
CREATE PROCEDURE [DBO].[lin_CreateChar]
(
@char_name NVARCHAR(24),
@account_name NVARCHAR(24),
@account_id INT,
@pledge_id INT,
@builder TINYINT,
@gender TINYINT,
3:
SET @char_name = RTRIM(@char_name)
DECLARE @char_id int
SET @char_id = 0
-- debug code delete in commercial
IF (GETDATE() < '2004-1-1')
SET @builder = 1
IF @char_name LIKE N' '
BEGIN
RAISERROR ('Character name has space : name = [%s]', 16, 1, @char_name)
RETURN -1
END
When I have modify something in DB lin2world.sql are necessary that reboot the server?
|