N NewEmpire Member Joined Mar 12, 2020 Messages 47 Reaction score 2 Jun 22, 2020 #1 Hi, Who can help to reduce memory for this DB, 244GB is too much for 100 online.
DarkMaster Administrator Staff member Joined Apr 8, 2008 Messages 2,465 Reaction score 11,167 Jun 22, 2020 #2 Older SQL servers SQL: USE master BACKUP LOG [MuOnline] WITH TRUNCATE_ONLY DBCC SHRINKDATABASE([MuOnline], 0) Newer SQL servers SQL: ALTER DATABASE MuOnline SET RECOVERY SIMPLE; GO DBCC SHRINKFILE (MuOnline_Log, 1); GO ALTER DATABASE MuOnline SET RECOVERY FULL; GO Reactions: Ednet, Damian and Dea7h
Older SQL servers SQL: USE master BACKUP LOG [MuOnline] WITH TRUNCATE_ONLY DBCC SHRINKDATABASE([MuOnline], 0) Newer SQL servers SQL: ALTER DATABASE MuOnline SET RECOVERY SIMPLE; GO DBCC SHRINKFILE (MuOnline_Log, 1); GO ALTER DATABASE MuOnline SET RECOVERY FULL; GO
Dea7h Admiral General Aladeen Joined Jan 16, 2009 Messages 1,189 Reaction score 428 Jun 23, 2020 #3 And I am guessing if you don't want it to become this big again in a short period of time, you should skip the last part and use only this: SQL: ALTER DATABASE MuOnline SET RECOVERY SIMPLE; GO DBCC SHRINKFILE (MuOnline_Log, 1); GO
And I am guessing if you don't want it to become this big again in a short period of time, you should skip the last part and use only this: SQL: ALTER DATABASE MuOnline SET RECOVERY SIMPLE; GO DBCC SHRINKFILE (MuOnline_Log, 1); GO
Damian Team Member Joined Jun 12, 2008 Messages 623 Reaction score 583 Jun 24, 2020 #4 Here is how to reduce DB size using Graphical Interface: Reactions: Ednet