Solved

SQL Server 2008 Maintenance Plan Questions

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

Microsoft Certification Exam 74-409

Veeam® is happy to provide the Microsoft community with a study guide prepared by MVP and MCT, Orin Thomas. This guide will take you through each of the exam objectives, helping you to prepare for and pass the examination.

Question has a verified solution.

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

How to leverage one TLS certificate to encrypt Microsoft SQL traffic and Remote Desktop Services, versus creating multiple tickets for the same server.
The Delta outage: 650 cancelled flights, more than 1200 delayed flights, thousands of frustrated customers, tens of millions of dollars in damages – plus untold reputational damage to one of the world’s most trusted airlines. All due to a catastroph…
Via a live example combined with referencing Books Online, show some of the information that can be extracted from the Catalog Views in SQL Server.
Via a live example, show how to shrink a transaction log file down to a reasonable size.

856 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