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

Our new SQL Server Forums are live! Come on over! We've restricted the ability to create new threads on these forums.

SQL Server Forums
Profile | Active Topics | Members | Search | Forum FAQ
Save Password
Forgot your Password?

 All Forums
 SQL Server 2012 Forums
 SQL Server Administration (2012)
 best backup routine on 2012
 Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

Flowing Fount of Yak Knowledge

1410 Posts

Posted - 04/05/2013 :  03:11:48  Show Profile  Reply with Quote
on 2005 I used to use the backup routine from

but it doesn't work on 2012

what backup routine would you recommend for 2012 to backup both the db daily and log files?


5072 Posts

Posted - 04/05/2013 :  10:15:07  Show Profile  Visit russell's Homepage  Reply with Quote
Giving Tara's script a quick once over, I'd say modify this line:
IF @version NOT IN ('8', '9')
IF @version NOT IN ('8', '9', '10')

then go find all the IF blocks and add '10' to everything that says '9', for example, this line
ELSE IF @edition = 3 AND @version = '9'
ELSE IF @edition = 3 AND @version in ('9', '10')

That's just with a quick glance, so it may ot be complete, but pretty sure that'll work.

Go to Top of Page


5072 Posts

Posted - 04/05/2013 :  10:18:24  Show Profile  Visit russell's Homepage  Reply with Quote
Actually, that would be 11, not 10.

And change this:

SET @version = CONVERT(char(1), SERVERPROPERTY('ProductVersion'))

To this

SET @version = CONVERT(varchar(2), SERVERPROPERTY('ProductVersion'))

Might be more but that looks about right
Go to Top of Page
  Previous Topic Topic Next Topic  
 Reply to Topic
 Printer Friendly
Jump To:
SQL Server Forums © 2000-2009 SQLTeam Publishing, LLC Go To Top Of Page
This page was generated in 0.02 seconds. Powered By: Snitz Forums 2000