Showing posts with label history. Show all posts
Showing posts with label history. Show all posts

Monday, March 26, 2012

Scheduling a Report

Hello,
I am trying to create a schedule to add snapshots of a certain report to
report history.
So in Report Manager, I go to History and create a schedule to to this. In
my understanding, i need to create a job to execute this shedule. So i go to
Enterprise Manager to create a job. But after this i am lost, basically. How
can i reference this schedule when i go to "New Job". Is there any code that
needs to be put in the "New Job" Wizard so that this schedule can be run?
Thanks
SanjeevYou do not go to Enterprise Manager to do this. Do it all from within Report
Manager.
First create your schedule using Site Settings, Manage shared schedules. Do
this if you want to re-use the schedule with other reports.
Next, navigate to the report's folder and bring up its Properties window.
With the Properties window displayed, there is a History link on the left
side of the screen. Check the option to "Use the following schedule to add
snapshots to report history", then specify the schedule underneath.
HTH
Charles Kangai, MCT, MCDBA
"Sanjeev" wrote:
> Hello,
> I am trying to create a schedule to add snapshots of a certain report to
> report history.
> So in Report Manager, I go to History and create a schedule to to this. In
> my understanding, i need to create a job to execute this shedule. So i go to
> Enterprise Manager to create a job. But after this i am lost, basically. How
> can i reference this schedule when i go to "New Job". Is there any code that
> needs to be put in the "New Job" Wizard so that this schedule can be run?
> Thanks
> Sanjeev
>
>|||Thanks Charles. That worked
"Charles Kangai" <CharlesKangai@.discussions.microsoft.com> wrote in message
news:3D77E5E5-BAE9-484B-A87C-714EAD5350FC@.microsoft.com...
> You do not go to Enterprise Manager to do this. Do it all from within
> Report
> Manager.
> First create your schedule using Site Settings, Manage shared schedules.
> Do
> this if you want to re-use the schedule with other reports.
> Next, navigate to the report's folder and bring up its Properties window.
> With the Properties window displayed, there is a History link on the left
> side of the screen. Check the option to "Use the following schedule to add
> snapshots to report history", then specify the schedule underneath.
> HTH
> Charles Kangai, MCT, MCDBA
> "Sanjeev" wrote:
>> Hello,
>> I am trying to create a schedule to add snapshots of a certain report to
>> report history.
>> So in Report Manager, I go to History and create a schedule to to this.
>> In
>> my understanding, i need to create a job to execute this shedule. So i go
>> to
>> Enterprise Manager to create a job. But after this i am lost, basically.
>> How
>> can i reference this schedule when i go to "New Job". Is there any code
>> that
>> needs to be put in the "New Job" Wizard so that this schedule can be run?
>> Thanks
>> Sanjeev
>>

Tuesday, March 20, 2012

Scheduled job Step Output to Job History

Hi

I've been looking at kb 918760. In this, it says

"You can also use the Include Step Output in the history option to redirect the logging information to a file or to the SQL Server Agent Job History."

Now I'd really like to do this, but can't see this option anywhere nor can I find any reference to it in the help.

Can anyone point me in the right direction?

Regards

Guy

This option is available when you use CmdExec Subsystem to execute your step, instead of SSIS Subsystem.

From KB:

About the exec subsystem command and output information

By using the exec subsystem command approach, you add verbose console logging switches to the SSIS command line to call the Dtexec.exe SSIS command-line executable file.|||

Doh!

Suspected it might be something like this ...

Thank you

Scheduled Job History

Is there a way to increase the number of records preserved in job
history? I have 82 jobs on my box, 30 of them run every 20 minutes
for 23 hours a day, every 30 days. Another 30 run once, every 30
days. The system seems to have a limit of 50 history records for any
job that hasn't run since yesterday and purges all history records if
the job is more than a week old. I didn't know if there might be a
configuration record buried in MSDB or somewhere else that would allow
me to increase this size or perhaps a system SP that prunes job
history that I could modify.

It isn't critical as the system is set to notify me when jobs fail,
but still, I'd like to be able to look at a given day and verify that
everything went normally."P.D.N. Tame" <wwphx@.hotmail.com> wrote in message
news:bcc5d277.0312090628.5061b581@.posting.google.c om...
> Is there a way to increase the number of records preserved in job
> history? I have 82 jobs on my box, 30 of them run every 20 minutes
> for 23 hours a day, every 30 days. Another 30 run once, every 30
> days. The system seems to have a limit of 50 history records for any
> job that hasn't run since yesterday and purges all history records if
> the job is more than a week old. I didn't know if there might be a
> configuration record buried in MSDB or somewhere else that would allow
> me to increase this size or perhaps a system SP that prunes job
> history that I could modify.
> It isn't critical as the system is set to notify me when jobs fail,
> but still, I'd like to be able to look at a given day and verify that
> everything went normally.

In Enterprise Manage, right-click SQL Server Agent, then pick Properties,
Job System, and set the history options as you want. You can also use
sp_set_sqlagent_properties, but this procedure isn't documented, so it may
not be the best way to go.

Simon

Monday, March 12, 2012

Scheduled job "show step details" more info?

We have some very large DTS packages that are run nightly.
We they fail it is often difficult to diagnose because the error
details in Job History is truncated. Is this information written to a
log anywhere, or is there a setting to increase the amount of
information that is stored?
Or... am I stuck with logging each step.
Thanks for the help,
DGAny ideas? I havent been able to find any info on this. I know others
must be having the same problems.|||Any ideas? I havent been able to find any info on this. I know others
must be having the same problems.|||Any ideas? I havent been able to find any info on this. I know others
must be having the same problems.|||Hi
I believe the job step details are taken from the message column of the
sysjobhistory table which is limited to 1024 characters.
John
"Dave" wrote:

> Any ideas? I havent been able to find any info on this. I know others
> must be having the same problems.
>

Wednesday, March 7, 2012

Schedule Job is not running?

In addition to Russell's advice, check the history for the job, and see if
it ran and failed, and if so, the reason for the failure. I am not clear if
you have determined that the job did not run, or that the ultimate result of
the job running was not accomplished.
A
"JT" <JT@.discussions.microsoft.com> wrote in message
news:BFEC7795-869C-4ECB-89FE-9D7C3618C2B9@.microsoft.com...
>I schedule a job to run every day at 1:00 am and it should notify me by
>email
> on complete. Next day i did not receive email and job did not run.
> If i start a job manually then i don't have any problem.
> Why job is not running automatically?
> Please let me know whar i need to do to make this work.
> Thank you.
>
JT,
I assume that other jobs are running successfully, but if no jobs are
running please say so. The only other thing that comes to mind is if the
schedule start and end date window is outside the current time. For
example: the job is set to first execute on January 10, 2009. Et cetera.
RLF
"JT" <JT@.discussions.microsoft.com> wrote in message
news:12A56E0C-7F0F-48E2-92CE-C26BE46E7019@.microsoft.com...[vbcol=seagreen]
>I checked all these steps.
> Yes, the job and the job schedule are enabled.
> The SQL Server Agent Service is running.
> 3. Ensure that the job owner has the appropriate permissions on all
> objects
> contained in the job steps. What exactly do i need to check?
> Also I checked the history does not show anything. Basically it did not
> run
> at scheduled time at all.
>
> "Aaron Bertrand [SQL Server MVP]" wrote: