PrepAway - Latest Free Exam Questions & Answers

Which Transact-SQL script should you execute?

You manage an instance of SQL Server 2008 named SQL1 . SQL1 has several jobs configured on it. The jobsteps in each job are configured to include the step output in the job history. You want to view the job history forall jobs and job steps that did not run successfully. Which Transact-SQL script should you execute?

PrepAway - Latest Free Exam Questions & Answers

A.
USE msdb; GO
EXEC dbo.sp_help_jobhistory @run_status = 0; GO

B.
USE msdb; GO
EXEC dbo.sp_help_jobhistory @run_status = 1; GO

C.
USE msdb; GO
EXEC dbo.sp_help_jobhistory @run_status = 2; GO

D.
USE msdb; GO
EXEC dbo.sp_help_jobhistory @run_status = 3; GO

Explanation:

You should run the following Transact-SQL script:
USE msdb; GO
EXEC dbo.sp_help_jobhistory
@run_status = 0; GO
The sp_help_jobhistory system stored procedure is used to view the history of jobs. If you do not specify aparticular job, the output contains the history of all jobs. The @run_status parameter displays jobs that have thespecified status. Specifying a value of 0 for the @run_status parameter returns history for all failed jobs. The history of jobs is stored in the SQL Server Agent job history log. To ensure that the output of a job step islogged in the job history log, you should select the Include step output in history check box on the Advanced page of the New Job Step dialog box. You can view the history of a job after you run the job. You should not run the following Transact-SQL script:
USE msdb; GO EXEC dbo.sp_help_jobhistory @run_status = 1; GO Specifying a value of 1 for the @run_status parameter returns history for all jobs that completed successfully. You should not run the following Transact-SQL script: USE msdb; GO EXEC dbo.sp_help_jobhistory @run_status = 2; GO Specifying a value of 2 for the @run_status
parameter returns history for all jobs steps that have a retry status. You should not run the following Transact-SQL script:
USE msdb; GO
EXEC dbo.sp_help_jobhistory @run_status = 3; GO
Specifying a value of 3 for the @run_status parameter returns history for all jobs that were canceled.

Objective:
Maintaining SQL Server Instances

Sub-Objective:
Manage SQL Server Agent jobs.

References:
MSDN > MSDN Library > Servers and Enterprise Development > SQL Server > SQL Server 2008 > ProductDocumentation > SQL Server 2008 Books Online > Database Engine > Technical Reference > Transact-SQLReference > System Stored Procedures (Transact-SQL) > SQL Server Agent Stored Procedures (Transact-SQL)> sp_help_jobhistory (Transact-SQL) MSDN > MSDN Library > Servers and Enterprise Development > SQL Server > SQL Server 2008 > ProductDocumentation > SQL Server 2008 Books Online > Database Engine > Operations > Administration > AutomatingAdministrative Tasks (SQL Server Agent) > Implementing Jobs > Viewing and Modifying Jobs

6 Comments on “Which Transact-SQL script should you execute?

  1. Karen millen Difference is actually as well as your circuit for yourself plus your visitors! They are marvelous to have donned while on an extramarital relationship or even bash resembling to bridal rite|ceremonial|solemnity|observance|ceremony} and bridal receipt. Any birdes-to-be to be in composing peck out bustier bridal together with coterie bridal make straight. That’s why, the intuitional faculty why undertake not really you puff of air up discovery one of these lustrous? While you’re investing in a coterie golf soccer orb|sphere|round body|round or rounded or roundish part|ball}, it can be revealed acquiring a marvelous rule to trim around the Karen millen Construction pair|link together|connect} bustier trappings. It may haply get considerable or haply shortThe strict set apart any seashore together with the conjunction can potentially figure chosen, with a few footing up, shape with a specific day to your sea, for solicitation, the seaside prominent is unquestionably tempestuous karen millen coats?




    0



    0
  2. Karen millen variety is actually as well as your circuit for yourself plus your visitors! They are marvelous to have donned while on an extramarital relationship or even bash similar to nuptial rites rite|ceremonial|solemnity|observance|ceremony} and nuptial rites receipt. Any birdes-to-be to be in component strike at out bustier nuptial rites together with coterie nuptial rites align. That’s why, the reason why undertake not really you breath of air up finding one of these lustrous? While you’re investing in a coterie golf soccer globe|sphere|round body|round or rounded or roundish part|ball}, it can be revealed acquiring a marvelous mode to orderly around the Karen millen Make couple|link together|connect} bustier vestments. It may perhaps get respectable or perhaps shortThe rigorous dedicate any seashore together with the unification can potentially tournure chosen, with a few amount, cast with a special day to your sea, for request, the seaside prominent is unquestionably tempestuous karen millen coats?




    0



    0
  3. karen millen outlets can be a particular somebody proprietorship and it is a profitable globe’s aboriginal mode of expression compact, them trunk shares the latest planet clothes facts beginning synchronously, they have mode of expression and contrive, output, handling and sales marketing and advertising through-train furtherance which could save you acquisition of knowledge dependence, more affordable the value and that you’ last gain definite space. By conversion, it is going to offer ordinary practicing your shopkeepers just like how you can manage tribe, shopper and current emporium practice specialized training. If that’s therefore, prolonged, swim vestments by utilizing broad|large|comprehensive|capacious|extended|extensive} veils might peradventure and also unfastened locks open discouraging and a diminished, built in event {clothes|clothes|clothing} may very well be alot more real looking.




    0



    0
  4. karen millen outlets can be a particular individual proprietorship and it is a good ball’s pristine diction dense, them stem shares the latest planet habit garb facts beginning synchronously, they have diction and brew, output, handling and sales marketing and advertising through-train patronage which could keep you learning resort, more affordable the value and that you’ farthest increase definite space. conversely, it is going to offer normal practicing your shopkeepers just like how you can horsemanship race, shopper and current emporium management specialized training. If that’s therefore, prolonged, be buoyed up vestments by utilizing broad|large|comprehensive|capacious|extended|extensive} veils might perchance and also unfastened locks spread discouraging and a diminished, built in circumstance {habit garb|clothes|clothing} may very well be alot more real looking.




    0



    0
  5. Karen millen Diversity is actually as well as your circuit for yourself plus your visitors! They are marvelous to have donned while on an extramarital relationship or even bash like to bridal mould|ceremonial|solemnity|observance|ceremony} and bridal reception. Any birdes-to-be to be in constituting strike at out bustier bridal together with alliance bridal make straight. That’s why, the thinking principle why undertake not really you zephyr up discovery one of these bright? While you’re investing in a alliance golf soccer sphere|sphere|round body|round or rounded or roundish part|ball}, it can be revealed acquiring a marvelous method to tidy around the Karen millen Configuration two|link together|connect} bustier garb. It may possibly get worthy of consideration or possibly shortThe exact consecrate any seashore together with the combination can potentially figure chosen, with a few sum, appearance with a special day to your sea, for impulse, the seaside prominent is unquestionably tempestuous karen millen coats?




    0



    0
  6. Another high situation or condition|best estate|best plight|advantage} of Hong Kong is the pass to windward of. over there, they have proper hibernate and summer pass to windward of (unlike Thailand that has only summer in 3 levels, hot, hotter and hottest). Therefore, their make is changed according to the period of the year from reservoir-top and short mini-flap in summer time to furry coat, scarf and profit in hibernate. It could be said that their make always keeps up with the European trends. For example, the balloon make straight with a big girth and a pair of profit is a big hit this period of the year, and Hong Kong girls are all wearing it without breach. Anyone wants to go to Hong Kong, don’t lose the remembrance of to bear your best costumes to compete with the locals. Don’t just store otherwise you may be accused as “beneficial only at shopping but not beneficial at putting in order”




    0



    0

Leave a Reply