----------------------------------------------------
-- BACKUP Database on Disk\Network Location
----------------------------------------------------
USE Master;
-- Database backup with INIT option will replace the existing file in the backup folder
-- to avoid this comment 'WITH INIT' option from the next line
DECLARE @@LOCATION nVARCHAR(100)
set @@LOCATION = ('disk_or_network_location\epo4database-'+convert(varchar, getdate(), 112)+'.bak')
BACKUP DATABASE [ePO4_DATABASE] TO DISK = @@LOCATION WITH INIT
GO
----------------------------------------------------
-- Clear Database for keeping only one month records
----------------------------------------------------
USE [ePO4_DATABASE];
GO
delete from EPOEvents where ReceivedUTC < (getdate() - 31)
GO
----------------------------------------------------
-- Truncate EPO Database to 4 MB
----------------------------------------------------
USE [ePO4_DATABASE];
GO
-- Set database recovery model to SIMPLE.
ALTER DATABASE [ePO4_DATABASE]
SET RECOVERY SIMPLE;
GO
-- Shrink the truncated log file to 4 MB.
DBCC SHRINKFILE ([ePO4_DATABASE, 4);
GO
-- Set database recovery model to FULL.
ALTER DATABASE [ePO4_DATABASE]
SET RECOVERY FULL;
GO
5 comments:
To activate the Norton antivirus a string of numbers and letters used that is called Norton product activation key. norton.com/setup | www.norton.com/setup
To activate visit mcafee.com/activate and enter all the requisite details and download your software. mcafee.com/activate | www.mcafee.com/activate
There are many types of internet viruses, Trojans, malware, and spyware which can affect the security and performance of your system or computer. mcafee.com/activate | www.mcafee.com/activate
Visit Office.com/setup to create Microsoft account and get Microsoft Office software package on your system, with complete steps wise instructions for downloading, installing and activating with the 25-digit product key. office.com/setup | www.office.com/setup
This blog is really very helpful but still if you have any issues with McAfee antivirus, then you can contact McAfee support UK.
Post a Comment