September 5, 2012 at 12:29 am
check exact size of your database not right click on database then property and check size not from option.
SELECT DB_NAME(database_id) AS DatabaseName,
Name AS Logical_Name,
Physical_Name, (size*8)/1024 SizeMB
FROM sys.master_files
WHERE DB_NAME(database_id) = 'AdventureWorks'
GO
September 5, 2012 at 1:40 am
zahid_7777 (8/10/2012)
Right clicking in the database selecting task then backup, assigning job by selecting script action to job generated by sql server and schedule. Not maintenance plan or writing any script personally. I am steel learning. But may be database backups are growing because service is adding the new backup with the old backups not replacing older one. I have selected expired on 0 (zero) days.
The sql server default is NOINIT which will write all backups into the same file, if you're using the same filename each time. Either
-----------------------------------------------------------------------------------------------------------
"Ya can't make an omelette without breaking just a few eggs" π
September 5, 2012 at 9:03 pm
Thanks. I will do as you suggested. I hope this is very useful. One thing,
* should I mention zero day or more days for expire last backup option to reduce space.
September 5, 2012 at 11:51 pm
You can do, but i don't use it.
I, and I'm sure many others, create files based on date, much easier to manage.
-----------------------------------------------------------------------------------------------------------
"Ya can't make an omelette without breaking just a few eggs" π
September 6, 2012 at 10:02 am
Backups by date/time are definitely easier to deal with, especially if your SQL Server is toasted or you're at a DR site and you want to see what you have.
Take a look at the maintenance solutions from Ola Hallengren[/url] and/or SQLFool - I use a slightly modified version of Ola's scripts for backups and for cleaning up older files.
September 11, 2012 at 11:11 pm
I think your backup job is not over writing the old backup or you are not deleting the old oneβs, that's the reason your backup file is increased. Try to do a new backup manually to the same drive/disk with diff name, you may find the difference.
September 14, 2012 at 9:16 pm
Thank you very much.
Viewing 7 posts - 16 through 21 (of 21 total)
You must be logged in to reply to this topic. Login to reply