Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 General SQL Server Forums
 New to SQL Server Programming
 will a full back up release log space?

Author  Topic 

sunsanvin
Master Smack Fu Yak Hacker

1274 Posts

Posted - 2008-09-17 : 08:19:11
Dear All,
in our organization only full backups are running daily.

after a full backup, all the data in the log file will free up to the data file? or still the data will be there in the log file?

i've a BIG doubt that how to check which type of backups are running in my server? will a job run automatically for this after selecting a maintenance plan?

Arnav
Even you learn 1%, Learn it with 100% confidence.

sodeep
Master Smack Fu Yak Hacker

7174 Posts

Posted - 2008-09-17 : 09:19:48
quote:
Originally posted by sunsanvin

Dear All,
in our organization only full backups are running daily.

after a full backup, all the data in the log file will free up to the data file? or still the data will be there in the log file?

No,Full backup doesn't free up inactive portion of log. Only Log backup frees up.

i've a BIG doubt that how to check which type of backups are running in my server? will a job run automatically for this after selecting a maintenance plan?

Use this to Check your backups. Put databasename:

declare @databasename as varchar(100)



set @databasename = 'yourdatabasename'



Select database_name + rtrim(case when type ='L' then space(5)+ name

when type ='D' then space(1)+name

when type ='I' then space(3)+name else '' end)+ space(3)+

convert(varchar, Backup_Start_date, 121)

from msdb..backupset

where database_name = @databasename

and Backup_Start_Date >= (select max(Backup_Start_Date)

from msdb..backupset

where database_name = @databasename

and type = 'D')

order by Backup_Start_date


Arnav
Even you learn 1%, Learn it with 100% confidence.

Go to Top of Page

sunsanvin
Master Smack Fu Yak Hacker

1274 Posts

Posted - 2008-09-18 : 01:10:27
Thank you very much sodeep

Arnav
Even you learn 1%, Learn it with 100% confidence.
Go to Top of Page

sunsanvin
Master Smack Fu Yak Hacker

1274 Posts

Posted - 2008-09-18 : 01:13:07
so to make the log file grow in control, i need to take the log backups also. am i correct?

Arnav
Even you learn 1%, Learn it with 100% confidence.
Go to Top of Page

GilaMonster
Master Smack Fu Yak Hacker

4507 Posts

Posted - 2008-09-18 : 04:09:32
Yup, or, if you don't need to ability to restore the DB to the point of failure (if it does fail), put it into simple recovery mode and you won't have to worry about the logs.

--
Gail Shaw
SQL Server MVP
Go to Top of Page
   

- Advertisement -