decomp DBCServer_Release and inspect/document database

This commit is contained in:
Benjamin Palko 2026-10-14 23:22:03 -04:00
parent 4b267cbe05
commit 7834b98bf0
28222 changed files with 843300 additions and 144 deletions

View file

@ -0,0 +1,19 @@
CREATE PROCEDURE [dbo].[up_get_guild_total_count]
(
@server SMALLINT
)
AS
BEGIN
SET NOCOUNT ON
set transaction isolation level read uncommitted
SELECT count(T.[guild_id]) AS total_cnt FROM GuildTable AS T WITH (NOLOCK)
INNER JOIN
(
SELECT M.[guild_id], count(M.[guild_id]) AS member_cnt
FROM GuildMemberTable AS M WITH (NOLOCK) GROUP BY M.[guild_id]
) AS C
ON C.[guild_id]=T.[guild_id] AND T.[server]=@server AND T.[block_type]=0
END