SQL Server Forums
Profile | Register | Active Topics | Members | Search | Forum FAQ
 
Register Now and get your question answered!
Username:
Password:
Save Password
Forgot your Password?

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

esthera
Flowing Fount of Yak Knowledge

1393 Posts

Posted - 04/05/2013 :  03:11:48  Show Profile  Reply with Quote
on 2005 I used to use the backup routine from http://weblogs.sqlteam.com/tarad/archive/2007/02/26/60120.aspx

but it doesn't work on 2012

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

russell
Pyro-ma-ni-yak

USA
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')
to
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'
becomes
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

russell
Pyro-ma-ni-yak

USA
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  
 New 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.03 seconds. Powered By: Snitz Forums 2000