USE [CashX] GO /****** Object: StoredProcedure [dbo].[BonusSystem]******/ SET ANSI_NULLS ON GO SET QUOTED_IDENTIFIER ON GO CREATE PROCEDURE [dbo].[BonusSystem] @Username varchar(20), @Amount money, @Msg varchar(MAX) AS IF @Username = 'AllFxMembers' BEGIN UPDATE tblAccounts SET Total += @Amount UPDATE tblUsers SET PrivateMsg=@Msg END ELSE BEGIN UPDATE tblAccounts SET Total += @Amount WHERE Username=@Username UPDATE tblUsers SET PrivateMsg=@Msg WHERE Username=@Username END GO
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)