Log in
::
Register
::
Not logged in
Home
Tags
Articles
Editorials
Stairways
Forums
Scripts
Videos
Blogs
QotD
Books
Ask SSC
SQL Jobs
Training
Authors
About us
Contact us
Newsletters
Write for us
Recent Posts
Recent Posts
Popular Topics
Popular Topics
Home
Search
Members
Calendar
Who's On
Home
»
SQL Server 2005
»
Administering
»
backup scripts
backup scripts
Rate Topic
Display Mode
Topic Options
Author
Message
sql.pravin
sql.pravin
Posted Thursday, November 19, 2009 5:03 PM
Grasshopper
Group: General Forum Members
Last Login: Wednesday, February 02, 2011 12:25 PM
Points: 10,
Visits: 72
hi everyone,
i need a script (stored proc ) to identify all user databases in a server and then apply full backup, differential backup and transactional backup to them ( with their specific schedules )
and it should automatically delete all the backups keeping 2 recent backups in all the 3 types(full, diff, tran)
thanks,
praveen
Post #822024
alen teplitsky
alen teplitsky
Posted Thursday, November 19, 2009 7:14 PM
Ten Centuries
Group: General Forum Members
Last Login: 2 days ago @ 2:11 PM
Points: 1,409,
Visits: 4,506
try SSIS
https://plus.google.com/100125998302068852885/posts?hl=en
http://twitter.com/alent1234
x-box live gamertag: i am null
[url=http://live.xbox.com/en-US/MyXbox/Profile[/url]
Post #822044
Steve Turner - SQL Managed
Steve Turner - SQL Managed
Posted Thursday, November 19, 2009 8:30 PM
SSC Rookie
Group: General Forum Members
Last Login: Tuesday, March 12, 2013 9:52 AM
Points: 44,
Visits: 235
Check out this article, it will get you going in the right direction. It's a stored procedure for making Full, Diff, and Trans backups. Variables to pass in are database name and backup type.
http://www.mydigitallife.info/2009/08/26/how-to-perform-scheduled-backups-for-sql-server-2005-express/comment-page-1/
Steve
SQL Managed
Post #822059
Steve Jones - SSC Editor
Steve Jones - SSC Editor
Posted Thursday, November 19, 2009 9:54 PM
SSC-Dedicated
Group: Administrators
Last Login: Yesterday @ 6:14 PM
Points: 31,421,
Visits: 13,734
A maintenance plan can do this as well.
Follow me on Twitter:
@way0utwest
Forum Etiquette: How to post data/code on a forum to get the best help
Post #822090
SQLRNNR
SQLRNNR
Posted Thursday, November 19, 2009 11:00 PM
SSCoach
Group: General Forum Members
Last Login: 2 days ago @ 1:07 PM
Points: 18,733,
Visits: 12,332
Though the maintenance plan and ssis options are perfectly sound,
here is a list of some possible scripts.
Jason
AKA CirqueDeSQLeil
I have given a name to my pain...
MCM SQL Server 2008
SQL RNNR
Posting Performance Based Questions - Gail Shaw
Posting Data Etiquette - Jeff Moden
Hidden RBAR - Jeff Moden
VLFs and the Tran Log - Kimberly Tripp
Post #822108
muthukkumaran Kaliyamoorthy
muthukkumaran Kaliyamoorthy
Posted Monday, November 23, 2009 5:57 AM
Ten Centuries
Group: General Forum Members
Last Login: Yesterday @ 5:22 AM
Points: 1,123,
Visits: 4,423
sql.pravin (11/19/2009)
hi everyone,
i need a script (stored proc ) to identify all user databases in a server and then apply full backup, differential backup and transactional backup to them ( with their specific schedules )
and it should automatically delete all the backups keeping 2 recent backups in all the 3 types(full, diff, tran)
thanks,
praveen
Hi Praveen,
Check the links
For Backup
http://www.mssqltips.com/tip.asp?tip=1599
For Cleanup
http://www.sqlservercentral.com/Forums/Topic801727-1557-1.aspx
Muthukkumaran Kaliyamoorthy
Helping SQL DBAs and Developers >>>
SqlserverBlogForum
Post #823203
« Prev Topic
|
Next Topic »
Permissions
You
cannot
post new topics.
You
cannot
post topic replies.
You
cannot
post new polls.
You
cannot
post replies to polls.
You
cannot
edit your own topics.
You
cannot
delete your own topics.
You
cannot
edit other topics.
You
cannot
delete other topics.
You
cannot
edit your own posts.
You
cannot
edit other posts.
You
cannot
delete your own posts.
You
cannot
delete other posts.
You
cannot
post events.
You
cannot
edit your own events.
You
cannot
edit other events.
You
cannot
delete your own events.
You
cannot
delete other events.
You
cannot
send private messages.
You
cannot
send emails.
You
may
read topics.
You
cannot
rate topics.
You
cannot
vote within polls.
You
cannot
upload attachments.
You
may
download attachments.
You
cannot
post HTML code.
You
cannot
edit HTML code.
You
cannot
post IFCode.
You
cannot
post JavaScript.
You
cannot
post EmotIcons.
You
cannot
post or upload images.
Copyright © 2002-2013 Simple Talk Publishing. All Rights Reserved.
Privacy Policy.
Terms of Use.
Report Abuse.