Beginning Microsoft SQL Server 2008 ... - S3 Tech Training
Beginning Microsoft SQL Server 2008 ... - S3 Tech Training Beginning Microsoft SQL Server 2008 ... - S3 Tech Training
Chapter 19: Playing Administrator 568 Figure 19-4 Figure 19-5
Let’s go ahead and move on to the Advanced tab for this dialog box, shown in Figure 19-6; it’s here that we really start to see some of the cool functionality that our job scheduler offers. Figure 19-6 Notice several things in this dialog box: ❑ You can automatically set the job to retry at a specific interval if the task fails. ❑ You can choose what to do if the job succeeds or fails. For each result (success or failure), you can: ❑ Quit reporting success ❑ Quit reporting failure ❑ Move on to the next step ❑ You can output results to a file. (This is very nice for auditing.) Chapter 19: Playing Administrator ❑ You can impersonate another user (for rights purposes). Note that you have to have the rights for that user. Since we’re logged in as a sysadmin, we can run the job as the dbo or just about anyone. The average user would probably only have the guest account available (unless they were the dbo) but, hey, in most cases a general user shouldn’t be scheduling their own jobs this way anyway. (Let your client application provide that functionality.) 569
- Page 556 and 557: Chapter 17: Reporting for Duty, Sir
- Page 558 and 559: Chapter 17: Reporting for Duty, Sir
- Page 560 and 561: Chapter 17: Reporting for Duty, Sir
- Page 562 and 563: Chapter 17: Reporting for Duty, Sir
- Page 564 and 565: Chapter 17: Reporting for Duty, Sir
- Page 566 and 567: Chapter 17: Reporting for Duty, Sir
- Page 568 and 569: Chapter 17: Reporting for Duty, Sir
- Page 570 and 571: Chapter 17: Reporting for Duty, Sir
- Page 572 and 573: Chapter 17: Reporting for Duty, Sir
- Page 574 and 575: Chapter 17: Reporting for Duty, Sir
- Page 576 and 577: Chapter 17: Reporting for Duty, Sir
- Page 578 and 579: Chapter 17: Reporting for Duty, Sir
- Page 580 and 581: Chapter 17: Reporting for Duty, Sir
- Page 582 and 583: Chapter 18: Getting Integrated with
- Page 584 and 585: Chapter 18: Getting Integrated with
- Page 586 and 587: Chapter 18: Getting Integrated with
- Page 588 and 589: Chapter 18: Getting Integrated with
- Page 590 and 591: Chapter 18: Getting Integrated with
- Page 592 and 593: Chapter 18: Getting Integrated with
- Page 594 and 595: Chapter 18: Getting Integrated with
- Page 596 and 597: Chapter 18: Getting Integrated with
- Page 598 and 599: Chapter 18: Getting Integrated with
- Page 601 and 602: 19 Playing Administrator And so, he
- Page 603 and 604: ❑ Write the information to the ev
- Page 605: Creating Jobs and Tasks Using Manag
- Page 609 and 610: Figure 19-8 Figure 19-9 Chapter 19:
- Page 611 and 612: Figure 19-11 Figure 19-12 Chapter 1
- Page 613 and 614: Backup and Reco very No database-dr
- Page 615 and 616: ❑ Differential: This might be ref
- Page 617 and 618: ❑ Simple: Under this model, the t
- Page 619 and 620: The older DBCC commands are still s
- Page 621 and 622: many rows inserted over time and th
- Page 623: Chapter 19: Playing Administrator T
- Page 626 and 627: Appendix A: System Functions In add
- Page 628 and 629: Appendix A: System Functions @@TOTA
- Page 630 and 631: Appendix A: System Functions CHECKS
- Page 632 and 633: Appendix A: System Functions SUM Th
- Page 634 and 635: Appendix A: System Functions The de
- Page 636 and 637: Appendix A: System Functions @@REMS
- Page 638 and 639: Appendix A: System Functions Cert_I
- Page 640 and 641: Appendix A: System Functions Encryp
- Page 642 and 643: Appendix A: System Functions @@FETC
- Page 644 and 645: Appendix A: System Functions CURREN
- Page 646 and 647: Appendix A: System Functions SYSDAT
- Page 648 and 649: Appendix A: System Functions GetRoo
- Page 650 and 651: Appendix A: System Functions The ex
- Page 652 and 653: Appendix A: System Functions RAND T
- Page 654 and 655: Appendix A: System Functions ❑ IN
Let’s go ahead and move on to the Advanced tab for this dialog box, shown in Figure 19-6; it’s here that<br />
we really start to see some of the cool functionality that our job scheduler offers.<br />
Figure 19-6<br />
Notice several things in this dialog box:<br />
❑ You can automatically set the job to retry at a specific interval if the task fails.<br />
❑ You can choose what to do if the job succeeds or fails. For each result (success or failure),<br />
you can:<br />
❑ Quit reporting success<br />
❑ Quit reporting failure<br />
❑ Move on to the next step<br />
❑ You can output results to a file. (This is very nice for auditing.)<br />
Chapter 19: Playing Administrator<br />
❑ You can impersonate another user (for rights purposes). Note that you have to have the rights<br />
for that user. Since we’re logged in as a sysadmin, we can run the job as the dbo or just about<br />
anyone. The average user would probably only have the guest account available (unless they<br />
were the dbo) but, hey, in most cases a general user shouldn’t be scheduling their own jobs this<br />
way anyway. (Let your client application provide that functionality.)<br />
569