Hi,
I would like to remove the '/set' command only on Status 32.
Im Using [dbo].[usp_Insert_Chat_Log_E].
Replacing '/set' to 'any text' before it is processed.
Here is what I've done something wrong that is why its not working.
DECLARE @userstat smallint
DECLARE @usercmd varchar(128)
SELECT @userstat=Status FROM PS_UserData.dbo.Users_Master WHERE @UserUID=UserUID
IF (@userstat = 32)
BEGIN
SELECT @ChatData=ChatData,@CharID=CharID FROM inserted
SELECT @usercmd= SUBSTRING(@ChatData,0, CHARINDEX(' ',@ChatData))
IF (@usercmd='/set')
BEGIN
SET @ChatData = 'Not Allowed Command'
END
END
Anyone can point me to the right direction?






