User contributions for Karavi

Jump to navigation Jump to search
Search for contributionsExpandCollapse
⧼contribs-top⧽
⧼contribs-date⧽
(newest | oldest) View ( | ) (20 | 50 | 100 | 250 | 500)

8 April 2025

1 April 2025

30 March 2025

28 March 2025

14 January 2025

11 January 2025

  • 10:4310:43, 11 January 2025 diff hist +400‎ N Sql Shrink ‎ Created page with "→‎Script to shrink all databases: declare @db varchar(255) declare c cursor for select name from sys.databases where is_read_only=0 and state=0 and name not in ('master','model','tempdb','msdb') open c fetch c into @db while @@fetch_status=0 begin exec SP_dboption @db,'trunc. log on chkpt.','true' DBCC shrinkdatabase (@db,10) fetch next from c into @db end close c deallocate c" current
  • 10:3510:35, 11 January 2025 diff hist +1,326‎ N Sql Backup Daily ‎ Created page with " DECLARE @path VARCHAR(256) DECLARE @DBName varchar(255) DECLARE @DATABASES_Fetch int SET @path = 'E:\BANK_MS_SQL_Daily\' +CONVERT(VARCHAR(20),GETDATE(),112)+'_'+ replace(convert(varchar, getdate(),108),':','-')+'\' EXEC master.sys.xp_create_subdir @path DECLARE DATABASES_CURSOR CURSOR FOR select DATABASE_NAME = db_name(s_mf.database_id) from sys.master_files s_mf where -- ONLINE s_mf.state = 0 -- Only look at d..." current

8 December 2024

17 November 2024

10 October 2024

(newest | oldest) View ( | ) (20 | 50 | 100 | 250 | 500)