Professional Documents
Culture Documents
1
for SQL Server
Getting Started
2 Quest Change Director for SQL Server
Getting Started
Disclaimer: The information in this document is provided in connection with Quest products. No license, express or
implied, by estoppel or otherwise, to any intellectual property right is granted by this document or in connection with
the sale of Quest products. EXCEPT AS SET FORTH IN QUEST'S TERMS AND CONDITIONS AS SPECIFIED IN THE
LICENSE AGREEMENT FOR THIS PRODUCT, QUEST ASSUMES NO LIABILITY WHATSOEVER AND DISCLAIMS ANY
EXPRESS, IMPLIED OR STATUTORY WARRANTY RELATING TO ITS PRODUCTS INCLUDING, BUT NOT LIMITED TO, THE
IMPLIED WARRANTY OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, OR NON-INFRINGEMENT. IN NO
EVENT SHALL QUEST BE LIABLE FOR ANY DIRECT, INDIRECT, CONSEQUENTIAL, PUNITIVE, SPECIAL OR INCIDENTAL
DAMAGES (INCLUDING, WITHOUT LIMITATION, DAMAGES FOR LOSS OF PROFITS, BUSINESS INTERRUPTION OR LOSS
OF INFORMATION) ARISING OUT OF THE USE OR INABILITY TO USE THIS DOCUMENT, EVEN IF QUEST HAS BEEN
ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. Quest makes no representations or warranties with respect to the
accuracy or completeness of the contents of this document and reserves the right to make changes to specifications
and product descriptions at any time without notice. Quest does not make any commitment to update the information
contained in this document.
Trademarks
Quest, Quest Software, the Quest Software logo, are trademarks and registered trademarks of Quest Software, Inc
in the United States of America and other countries. Other trademarks and registered trademarks used in this guide
are property of their respective owners.
Third-Party Contributions
This product contains software developed by ActiPro Software and Developer Express Inc. Copies of their licenses
may be found on our web site at http://www.quest.com/legal/third-party-licenses.aspx.
Quest Change Director for SQL Server 3.1
Getting Started
November 2009
Table of Contents
Introduction ..........................................................................................................................................................5
Change Director Architectural Overview .......................................................................................................................... 6
Key Features ........................................................................................................................................................... 6
Components ............................................................................................................................................................ 6
Monitored Objects.................................................................................................................................................. 21
Configure Monitoring of Server Instances ..................................................................................................................... 22
Configure Monitoring Settings................................................................................................................................ 22
Manage Trusted Applications List.......................................................................................................................... 23
Configure Notification Settings............................................................................................................................... 23
Manage Reports .................................................................................................................................................... 24
Configure the Remote Agent .......................................................................................................................................... 26
Log Reader......................................................................................................................................................... 27
Log Reader Sources....................................................................................................................................................... 28
Use the Log Reader ....................................................................................................................................................... 28
Load the Transaction Log ...................................................................................................................................... 28
View Results .......................................................................................................................................................... 28
Undo or Redo DML or DDL Commands ................................................................................................................ 29
Recover Tables...................................................................................................................................................... 30
Manage Jobs...................................................................................................................................................... 31
Manage Jobs Tool .......................................................................................................................................................... 32
View Jobs............................................................................................................................................................... 32
Create/Edit a Job .................................................................................................................................................. 34
Delete a Job........................................................................................................................................................... 34
Schedule a Job ...................................................................................................................................................... 34
Appendix ............................................................................................................................................................ 38
Contact Quest Support ................................................................................................................................................... 39
Contact Quest Software.................................................................................................................................................. 39
About Quest ................................................................................................................................................................... 40
Index ................................................................................................................................................................... 39
1
Introduction
Contents
Key Features
The main Change Director features are:
• Database schema comparison
• Database object comparison
• Impact Analysis
• Scheduled or real-time deployment
• Multi-server change deployment
• Reporting changes for compliance and audit purposes
• PowerShell command line interface
Components
Change Director includes Project and Snapshots, Middleware, Change Tracker, Log
Reader and Job Management components.
Projects and Snapshots module is designed to deploy changes to SQL Server
databases and make the database change process transparent and manageable.
Chapter 1 7
Introduction
The diagram shows the relationship between the console, the repository databse and
monitored servers:
Change Director console is used to perform various tasks. Some of them can be very
resource-intensives, for example, snapshot taking, compare and impact analysis, and
deploying changes. You can reduce the workload on the computer running Change
Director console using the Middleware.
The Middleware is installed on the target server to perform resource-intensive tasks.
The console sends a command to the Middleware (for example, to compare databases);
the Middleware accomplishes the task, saves the results in the Repository Database and
8 Quest Change Director for SQL Server
Getting Started Guide
notifies the console. The console loads the results from the Repository Database to
display to a user.
Note The Middleware can be installed to any server in network to perform tasks on that server
from the console main menu.
Change Tracker module monitors Microsoft SQL Server instances and databases for
changes, and generates real-time alerts that can be sent to a recipient list via email or
NetSend.
Change Tracker agents are the agents installed to the computers running Windows,
where monitored SQL Servers are installed.
Each agent monitors the SQL Server instance and saves information in the Repository
Database.Change Director console reads the saved information from the Repository
Database and displays it to a user.
The notification engine checks if there are any changes detected by the Change
Tracker agent, generates reports and sends notifications. You can enable the engine on
the computer, where the Change Director console or the middleware is installed.
Log Reader is a SQL data-auditing and data-recovery tool that analyzes the SQL
Server transaction log to display information on:
• Recent transactions (those held in memory since the SQL Server instance was
started)
• All the transactions stored in the transaction log of an active database as well as
transactions held in SQL Server memory
Chapter 1 9
Introduction
Contents
Note If you select Windows authentication to connect to the server, provide username as
‘domain\username’.
Contents
Tip If you use the Middleware for comparing, impact analysis and deploying, you can switch the
Middleware to background mode by clicking Close Project or Continue in Background. You
can view the current task status in the Projects page.
Compare Changes
One of the frequent tasks DBAs perform is to detect differences between two or more
databases and synchronize them. Change Director provides Compare Changes feature
for such tasks.
To compare databases
1 Select Project | New | Compare Changes.
2 Define the source and one or more target databases. Click OK.
3 (Optional) Select Edit Project Options from the Actions list on the Navigation
pane. Set options for the project.
4 Select where to execute the operation.
5 Select the objects you want to compare.
6 Configure mapping for the physical attributes of the source and target databases.
7 View comparison results.
Tip To view the detailed report on comparison results, click View details.
You can save the Impact Analysis report to a file or view it in the Impact Analysis page
for the selected saved project in the Projects ans Snapshots window.
To generate a script for deploying
1 Open the saved project or create Custom Script project or Compare Changes
project.
2 Proceed to the Impact Analysis step.
3 Complete Impact Analysis.
4 Click View Synchronization Script in the Open Project window.
5 Click Save to save the generated script.
Deploy Changes
To synchronize databases
1 Open the saved project or create Custom Script project or Compare Changes
project.
2 Proceed to Schedule Deploy.
3 Select one of the following:
• Run deployment immediately
• Schedule deployment. A Windows account username and password are
required to schedule deployment.
16 Quest Change Director for SQL Server
Getting Started Guide
Rollback Changes
Change Director allows you to rollback deployed changes using a rollback script or a
database snapshot.
To rollback changes using a rollback script
1 Select the Projects and Snapshots window.
2 Select the project instance or a database for which you want to rollback changes.
3 On the Projects page, right-click the project and select Rollback Changes.
Change Director creates the Custom Script project where the rollback script serves as a
Source script. Process the project as any other Custom Script project.
To rollback changes using a snapshot
1 Select the Projects and Snapshots window.
2 Select the project instance or a database for which you want to rollback changes.
3 On the Snapshots page, right-click the snapshot to which you want to rollback the
database and select Compare to | Online Database.
Change Director creates the Compare Changes project where the snapshots serves as a
Source. Process the project as any other Compare Script project.
Clone Projects
If you want to execute the deployment again, replicate the project by cloning it.
Chapter 3 17
Projects and Snapshots
To clone a project
1 Select the Projects and Snapshots window.
2 Select an instance or a database where you created the project you want to clone.
3 On the Projects page, right-click the project and select Clone Project.
Change Director creates a clone project. Process it as any other project.
Snapshots
Change Director allows you to save information about the database schemas in the
Change Director repository. Each snapshot contains creation date and time. You can
store database history by creating snapshots at regular intervals.
To view a snapshot
1 Select the Projects and Snapshots window.
2 Select the instance or database for which you generated the snapshot.
3 On the Snapshots page, right-click the snapshot and select View Snapshot.
Create Snaphots
Tip If you use the Middleware to take snapshots, click Background to switch the Middleware to
background mode. You can view the current task status on the Change Director Tasks page.
Compare...
To compare a snapshot with an online database
1 Select a database for which you generated a snapshot.
2 On the Snapshots page, right-click the snapshot and select Compare to | Online
Database.
Chapter 3 19
Projects and Snapshots
To compare snapshots
1 Select a database for which you generated a snapshot.
2 On the Snapshots page, right-click the snapshot and choose Compare to |
Snapshot.
3 Select a snapshot which you want to compare with the selected snapshot.
4 Complete the wizard.
4
Change Tracker
Contents
Key Features
Configure Monitoring of Server Instances
Manage Reports
Configure the Remote Agent
21 Quest Change Director for SQL Server
Getting Started Guide
Key Features
Change Tracker provides services and a user interface that helps you monitor SQL
Server instances and databases for changes, and to generate real-time alerts.
Note For information about Change Tracker agent installation, refer to the Change Director for
SQL Server InstallGuide.pdf guide.
Monitored Objects
Change Tracke enables you to monitor objects in real time at a database-level and at an
instance level.
Tables Logins
Stored Procedures Privileged Logins
Triggers Server parameters
User-Defined Functions (permissions) DTS Packages
Users SQL Server Agent Jobs
Roles Database Backups
User-Defined Types Database Restores
Applications Database Replications
Roles Server Database
Defaults Extended Stored Procedures
Rules
Views (permissions)
Full-Text Catalog
Aggregate
Partition Functions
Partition Schemes
Synonym
XML Schema Collections
Chapter 4 22
Change Tracker
Note Before you start using the Change Tracker features, make sure the Change Tracker window
is active. If not, select the Change Tracker view at the bottom of the navigation pane.
Tip To set monitoring options for several instances at once, right-click a group of instances or
Microsoft SQL Servers in the tree and select Tasks | Configure Group Monitoring Options.
This will overwrite existing monitoring options.
23 Quest Change Director for SQL Server
Getting Started Guide
Note Change Tracker uses one list of trusted applications for all instances where monitored
databases reside. The list is stored in the repository. Once you change the repository
database, you need to re-configure trusted applications.
If you remove an application from the list of trusted applications, Change Tracker marks
alerts for all changes deployed by that application as Unauthorized.
3 Complete the Notification Settings dialog. Review the following for additional
information:
Option Description
Middleware Decide where you want to use the notification engine. Select
one of the following:
• Console - to use the notification service on the local
computer
• Middleware - to use the notification service on the
computer where the Middleware is installed.
Manage Reports
You can view, sort, filter and search the alerts and failed logins related to a SQL Server
instance or a database.
To sort alerts
1 Navigate to an instance or a database in the tree view.
2 Click the Alerts Report tab.
3 Select the column name to sort on.
Tip Selecting the column name again reverses the sort order.
To filter alerts
1 Navigate to an instance or a database in the tree view.
2 Click the Server Alerts Report tab.
3 Click Filter, search.
4 Set the following parameters:
• Period
• Report type
25 Quest Change Director for SQL Server
Getting Started Guide
• Object type
• Category
5 Click Apply to view the filtered reports.
To print an alerts report
1 Navigate to an instance or a database.
2 View, sort or filter alerts on the Server Alerts Report page.
3 Select Print Preview from the toolbar.
4 View, save , export , send or print a report for an instance or a
database.
Chapter 4 26
Change Tracker
Contents
Note Note: To view the transaction log of an active database, you must first install the Log Reader
Server Components on the SQL Server instance hosting the database.
Tip Regardless of the type of log you selected, you can specify additional transaction log backup
files to read.
View Results
Click the Log Reader tabs to view the following:
• Summary - information about a database and its associated transaction logs
Chapter 5 29
Log Reader
Export Results
The Log Reader can export a list of DML/DDL commands, transactions of full list of
log records to a database or following document formats:
• XML
• HTML
• CVS
Tip To limit the export to only those records of interest, apply a filter before exporting the list.
To export results
1 On the toolbar, click next to Export to.
2 Select export to the format required.
3 Specify where to save the file and the file name.
4 If you selected Export to DB, enter the table name and connection parameters to
the database where to save the results.
5 Click Save.
2 In the list of commands, select the checkbox for each command that you want to
undo or redo.
Note Note: If you select multiple commands, you can either undo all these commands or
redo all the commands. You cannot mix the undo and redo operations within the
selected group of commands.
3 Click Undo/Redo Wizard on the toolbar to start the Undo/Redo SQL wizard.
4 Complete the wizard.
Recover Tables
Use the Recover Table wizard to recover a table that, as recorded in the transaction log,
was dropped or truncated. TheLog Reader re-creates the table in the database and
reloads the data.
To recover a dropped or truncated table
1 Select the DML/DDL tab in the Log Reader window.
2 Click in the toolbar to start the Recover Table wizard.
3 Complete the wizard.
The table is recovered with its original name. If another table with the same name
already exists in the database, the Log Reader automatically generates an index and
appends it to the name of the recovered table.
6
Manage Jobs
Contents
Job Manager helps you manage the load on your system and avoid having too many
jobs running at the same time, on the same day, or in the same week, and improves the
efficiency of your system. You can create, alter, or delete any job. It enables you to
reschedule jobs quickly by dragging and dropping jobs to another time slot, a different
day, week, or month.
The following sections are relevant for both: jobs and Windows tasks. To switch
between jobs and tasks select SQL Server jobs or Windows tasks from the expanding
list on the toolbar.
View Jobs
Change Director displays SQL Server jobs or Windows tasks in two views.
The Calendar tab displays information about the schedule of when your systems jobs
run. The grid on the Calendar tab displays the jobs scheduled for the selected day.
To access the Calendar tab
1 From the Browser tree, select an instance.
2 Make sure the Manage Jobs window is active. If not, do one of the following:
• Select the Manage Jobs tab.
• From the menu bar, select Tools | Manage Jobs.
3 Select the Calendar tab.
To manage jobs on the Calendar tab
1 Point a job in the list to view:
• Job name
• First and last occurrence of the job
• Job schedule
• Job description
2 Drag a job to another time block to reschedule it.
Chapter 4 33
Manage Jobs
The List tab displays information about all the jobs for a selected server and lets you
create, modify, or delete jobs.
To access the List tab
1 Select an instance.
2 Select the Manage Jobs window.
3 Select the List tab.
To manage jobs on the List tab
1 Click a column heading to sort the information in the grid in ascending or
descending order based on the selected column.
2 Right-click a row to change various options for the selected job.
3 From the right-click menu, select one of these options:
• New Job
• Copy Job
• Move Job
• Edit Job
• Delete Job
• Enable/Disable Job
• Start/Stop Job
• Expand/Collapse All
34 Quest Change Director for SQL Server
Getting Started Guide
Create/Edit a Job
To create or edit a job
1 Select an instance. The selected instance name displays in the bar of the New Job
or Job Properties dialog.
2 Right-click anywhere on the grid and select New Job or Edit Job.
3 Select
• Define Job to create or edit a job.
• Describe Job Steps to enter SQL Server commands for each step of the job.
Note You must enter at least one step to create a job.
• Set Schedules to run the job more than once or at a specific time.
• Define Alerts to specify conditions that trigger an alert.
• Set End-of-Job Actions to specify the actions to perform when the job
completes.
• For an existing job, select the View Job History task to view the past history
for the job.
4 When you finish making entries for the various tasks, click OK to apply the
settings to the job. The new or edited job displays on the Calendar in the time slot
when it runs next and on the List tab.
Delete a Job
To delete a job
1 Right-click a job, select Delete Job.
2 Confirm that you want to delete the job.
Schedule a Job
The Set Schedules task displays the current schedule for a job and lets you enter a new
schedule, modify or delete an existing schedule. If you do not input a schedule or there
is now schedule for an existing job, the job runs once.
To use the Schedules page
1 From the New Job dialog or the Job Properties dialog, select the Set Schedule
task.
Chapter 4 35
Manage Jobs
Schedule list In the grid, view the Schedule ID, Schedule Name,
Enabled (Yes or No), and a Description of each
schedule for the selected job.
Add Click Add to open the New Job Schedule dialog where
you can create a new job schedule.
3 Select another task or click OK to record your changes to all the Job tasks and
close the New Job or Job Properties dialog.
A
Appendix
Contents
View the Global Support Guide for a detailed explanation of support programs, online
services, contact information, and policy and procedures. The guide is available at:
http://support.quest.com/pdfs/Global Support Guide.pdf.
Email info@quest.com
Refer to our web site for regional and international office information.
Chapter A 40
Appendix
About Quest
Now more than ever, organizations need to work smart and improve efficiency. Quest
Software creates and supports smart systems management products—helping our
customers solve everyday IT challenges faster and easier. Visit www.quest.com for
more information.
Index
A configure
Access Change Director 11 create a repository 11
agent email for an instance 23
configure remote 26 email settings 26
alerts reports 24 monitoring of server instances 22
real-time alerts 23
register SQL Server instances 11
C remote agent 26
chages server groups 12
rollback 16 configure real-time alerts 23
Change Director create
features 6 snapshots 18
launch 11 Create a Repository Database 11
projects 14 create projects 14
Change Tracker 8, 20 create snaphots 18
monitored objects 21 create SQL Server groups 12
Change Tracker agent 8
ChangeDirector
components 6
D
changes delete a job 34
deploy 15 deploy
clone projects 16 changes 15
compare custom script 16
snapshot and online database 18 deploy a custom script 16
snapshots 19 deploy changes 15
compare a snapshot with an online database 18
compare changes 14 E
compare snapshots 19 edit existing job 34
components email 23
Change Director 6
40 Quest Change Director for SQL Server
Getting Started Guide
F clone 16
Features 6 view information 17
features Projects and Snapshots 6
Change Director 6
R
G read the transaction log 28
groups real-time alerts 23
create SQL Server 12 recover tables 30
register
SQL Server instances 11
I Register SQL Server Instances 11
instances 11 repository 11
configure email 23 rollback changes 16
configure email settings 26 rrepare for deployment 15
monitoring 22
register 11
S
server groups 12
schedule a job 34
Snapshots 18
J support (technical)
Job Manager 9 contact 39
L T
launch Change Director 11 technical support
load the transaction log 28 contact 39
Log Reader 8, 27 the Calendar tab 32
export results 29 the List tab 33
recover tables 30 the Undo/Redo wizard 29
sources 28 trusted applications 23
view results 28
U
M Undo/Redo wizard 29
manage alerts 24
manage jobs 32
V
manage trusted applications list 23
monitor objects 21 view jobs 32
the Calendar tab 32
the List tab 33
P view project information 17
projects