Solved

SQL Server 2008 Maintenance Plan Questions

Posted on 2013-11-12
2
473 Views
Last Modified: 2013-11-12
Hello,

We've setup a maintenance plan on a SQL Server 2008 to backup all our databases.  Does this also backup all SQL Server settings, user accounts, maintenance jobs, and permissions?  If not, how can we go about backing these up?

Thanks!
0
Comment
Question by:ekm51
2 Comments
 
LVL 75

Accepted Solution

by:
Aneesh Retnakaran earned 500 total points
ID: 39642496
if you are backing up the master and msdb databases, then yes ; but while restoring you need to overwrite the existing databases.
0
 
LVL 9

Expert Comment

by:COANetwork
ID: 39642513
No.  A database backup backs up data, table structures, functions, stored procs, views, database users, triggers and basically everything that you can see in SSMS under the specific database node on the left.  Permissions of the database users are backed up, but SQL Server logins tied to those users are not.  If you restore your backup to a different server, you will need to manually create the logins, and then drop and re-create the database users to re-associate them.
Server settings you are better off just writing down and manually configuring them from a checklist in a new installation.  Or create an unattended installation package if necessary, with specific configurations.
Maintenance jobs, permissions, user and login creation, SQL Agent jobs, and other objects that are outside the scope of a specific database - you are better off generating and saving scripts for these (can be done usually on right-click of a node in SSMS), and applying them to the newly restored database.
As an alternative, you can purchase third-party tools that will make this task easier (Idera and Embarcadero come to mind), but these tools are as a rule pretty expensive, and they don't really do anything you couldn't do yourself through scripts.
If you really want to automate all of this scripting - look into the system tables and views, you can usually retrieve the DDL from there for almost all your objects, even encrypted ones (with a bit of web searching for decryption code).
0

Featured Post

Best Practices: Disaster Recovery Testing

Besides backup, any IT division should have a disaster recovery plan. You will find a few tips below relating to the development of such a plan and to what issues one should pay special attention in the course of backup planning.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Slowly Changing Dimension Transformation component in data task flow is very useful for us to manage and control how data changes in SSIS.
Ever wondered why sometimes your SQL Server is slow or unresponsive with connections spiking up but by the time you go in, all is well? The following article will show you how to install and configure a SQL job that will send you email alerts includ…
This video shows how to set up a shell script to accept a positional parameter when called, pass that to a SQL script, accept the output from the statement back and then manipulate it in the Shell.
Viewers will learn how to use the SELECT statement in SQL to return specific rows and columns, with various degrees of sorting and limits in place.

785 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question