decomp DBCServer_Release and inspect/document database
This commit is contained in:
parent
4b267cbe05
commit
7834b98bf0
28222 changed files with 843300 additions and 144 deletions
32
decomp/schema/RustyHearts_Account/procs/SetBillingLog.sql
Normal file
32
decomp/schema/RustyHearts_Account/procs/SetBillingLog.sql
Normal file
|
|
@ -0,0 +1,32 @@
|
|||
|
||||
CREATE PROCEDURE [dbo].[SetBillingLog]
|
||||
(
|
||||
@userid varchar(50),
|
||||
@charid varchar(128),
|
||||
@uniqueid varchar(128),
|
||||
@amount int,
|
||||
@itemid int,
|
||||
@itemcount int
|
||||
)
|
||||
AS
|
||||
BEGIN
|
||||
SET NOCOUNT ON;
|
||||
|
||||
BEGIN TRY
|
||||
-- Insert the values into the BillingLog table
|
||||
INSERT INTO BillingLog (BuyTime, WindyCode, CharId, UniqueId, Amount, ItemId, ItemCount)
|
||||
VALUES (GETDATE(), @userid, @charid, @uniqueid, @amount, @itemid, @itemcount);
|
||||
|
||||
-- Return a success message
|
||||
SELECT 'Success' AS Result;
|
||||
END TRY
|
||||
BEGIN CATCH
|
||||
-- Log the error and return an error message
|
||||
DECLARE @errorMessage varchar(4000) = ERROR_MESSAGE();
|
||||
RAISERROR(@errorMessage, 16, 1);
|
||||
|
||||
-- Return an error message
|
||||
SELECT 'Error: ' + @errorMessage AS Result;
|
||||
END CATCH;
|
||||
END;
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue