
SSIS package... script to enable/disable database mirroring jobs automatically
- or -
Post a project like this5457
£100(approx. $134)
- Posted:
- Proposals: 0
- Remote
- #52198
- Awarded
Description
Experience Level: Intermediate
I have 3 database mirroring set up for DR.
i have made two jobs in sql server .
1) disable database mirroring= we run this job when we need to disable database mirroring for server upgrades or security fixes.
this is the command on the job (script)
disable -> alter database DATABASENAME set partner suspend
2) disable database mirroring= we run this job to enable database mirroring.
enable -> alter database <databasename> set partner resume..
what I need to do it to make is dynamically.
meaning the script read the database name from the system table .. if the database mirroring is occurring run the disable job.
second read the database name from the systable and if the database mirroring is disable run the enable job.
note: not all of the databases in the server are set up for mirroring.
Its a quick work,,,, shouldnt take you lot of time ...
waiting for the reply
i have made two jobs in sql server .
1) disable database mirroring= we run this job when we need to disable database mirroring for server upgrades or security fixes.
this is the command on the job (script)
disable -> alter database DATABASENAME set partner suspend
2) disable database mirroring= we run this job to enable database mirroring.
enable -> alter database <databasename> set partner resume..
what I need to do it to make is dynamically.
meaning the script read the database name from the system table .. if the database mirroring is occurring run the disable job.
second read the database name from the systable and if the database mirroring is disable run the enable job.
note: not all of the databases in the server are set up for mirroring.
Its a quick work,,,, shouldnt take you lot of time ...
waiting for the reply
Dan S.
100% (1)Projects Completed
4
Freelancers worked with
4
Projects awarded
60%
Last project
22 Aug 2017
Canada
New Proposal
Login to your account and send a proposal now to get this project.
Log inClarification Board Ask a Question
-
There are no clarification messages.
We collect cookies to enable the proper functioning and security of our website, and to enhance your experience. By clicking on 'Accept All Cookies', you consent to the use of these cookies. You can change your 'Cookies Settings' at any time. For more information, please read ourCookie Policy
Cookie Settings
Accept All Cookies