Solved

SQL Server 2008 Maintenance Plan Questions

Posted on 2013-11-12
2
476 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

Comprehensive Backup Solutions for Microsoft

Acronis protects the complete Microsoft technology stack: Windows Server, Windows PC, laptop and Surface data; Microsoft business applications; Microsoft Hyper-V; Azure VMs; Microsoft Windows Server 2016; Microsoft Exchange 2016 and SQL Server 2016.

Question has a verified solution.

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

In this article I will describe the Copy Database Wizard method as one possible migration process and I will add the extra tasks needed for an upgrade when and where is applied so it will cover all.
In this article we will learn how to fix  “Cannot install SQL Server 2014 Service Pack 2: Unable to install windows installer msi file” error ?
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.
Via a live example, show how to extract information from SQL Server on Database, Connection and Server properties

679 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