Solved

SQL Server 2008 Maintenance Plan Questions

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

Why You Should Analyze Threat Actor TTPs

After years of analyzing threat actor behavior, it’s become clear that at any given time there are specific tactics, techniques, and procedures (TTPs) that are particularly prevalent. By analyzing and understanding these TTPs, you can dramatically enhance your security program.

Join & Write a Comment

Suggested Solutions

In this article I will describe the Backup & Restore 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.
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…
Via a live example, show how to extract insert data into a SQL Server database table using the Import/Export option and Bulk Insert.
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.

758 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

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now