Showing posts with label performing. Show all posts
Showing posts with label performing. Show all posts

Wednesday, March 21, 2012

Scheduled sql cannot access the network drives?

I have a stored procedure performing several tsql operations with MS
Access and Excel files stored into the network file system, and
therefore using OpenDataSouce with these files in the network,
accessible through mapped network drives.

My user has a profile that maps the necessary network drives at boot.
SQL Server runs on the server with an account created for that. This
accont has also a profile mapping the necessary network drives.

The stored procedure runs fine only if I launch it with SQL Server
Management Studio on the server, logging in directly on the server (at
this point the network drives are mapped correctly).

If I launch the Stored Procedure with SQL Server Management Studio on
my client, it doesn't find the network drives and fails.

The same happens when I schedule the stored procedure on the server
with SQL Server Agent, which runs with an account performing the
mapping in its profile.

Any ideas how to make it work?

A suggestion in common, don′t use mapped network driver, use UNC paths !

If you want to use ressources within the network you will need appropiate permissions either for the service account SQL Server Service is running with or the service account SQL Server Agent is running with (if you do that within a scheduled job). An alternative would be to setup a proxy account for the service [1]

[1] http://www.databasejournal.com/features/mssql/article.php/1580041

In SQL Server 2005 proxy accounts can also be configured through the Configuration interface which you will find in the program collection.


HTH, Jens SUessmeyer.


http://www.sqlserver2005.de

Tuesday, March 20, 2012

scheduled job status is "performing completion actions"

Any idea what this means. I tried stopping the job and deleting it but I
couldn't do either.
Thanks,
Dan D.
Hi,
by my experiance it usually means that SQL Server Agent is cleaning up
temporary object it has created during execution of job.
Usually it is fast so you cannot see it but sometimes it takes time,
especially if there is a lot of data.
Danijel
"Dan D." <DanD@.discussions.microsoft.com> wrote in message
news:32DA2E5E-C7DF-4B71-A9C8-0EAEF7470A68@.microsoft.com...
> Any idea what this means. I tried stopping the job and deleting it but I
> couldn't do either.
> Thanks,
> --
> Dan D.
|||I forgot to say that it has been that way for over 2 weeks so something must
be wrong. But I can't remove it so I'm not sure what to do about it.
"Danijel Novak" wrote:

> Hi,
> by my experiance it usually means that SQL Server Agent is cleaning up
> temporary object it has created during execution of job.
> Usually it is fast so you cannot see it but sometimes it takes time,
> especially if there is a lot of data.
> Danijel
>
> "Dan D." <DanD@.discussions.microsoft.com> wrote in message
> news:32DA2E5E-C7DF-4B71-A9C8-0EAEF7470A68@.microsoft.com...
>
>
|||Dan
What does the job do?
Perhasps you might look at Task Manager to see what happened.
"Dan D." <DanD@.discussions.microsoft.com> wrote in message
news:32DA2E5E-C7DF-4B71-A9C8-0EAEF7470A68@.microsoft.com...
> Any idea what this means. I tried stopping the job and deleting it but I
> couldn't do either.
> Thanks,
> --
> Dan D.
|||The job is a dts package that does some inserts, deletes and updates to
various tables.
"Uri Dimant" wrote:

> Dan
> What does the job do?
> Perhasps you might look at Task Manager to see what happened.
>
> "Dan D." <DanD@.discussions.microsoft.com> wrote in message
> news:32DA2E5E-C7DF-4B71-A9C8-0EAEF7470A68@.microsoft.com...
>
>
|||"Dan D." <DanD@.discussions.microsoft.com> wrote in message
news:D20D0B06-6327-4317-AF5A-C9A1185DCF63@.microsoft.com...
> I forgot to say that it has been that way for over 2 weeks so something
must
> be wrong. But I can't remove it so I'm not sure what to do about it.
>
I'll bet you've got it setup to email upon completion and SQL Mail isn't
working.
Tht's when I've generally seen it.
[vbcol=seagreen]
> "Danijel Novak" wrote:
I[vbcol=seagreen]
|||There are no email notifications in the package. And our SQLMail is working.
Every step is an execute sql task.
"Greg D. Moore (Strider)" wrote:

> "Dan D." <DanD@.discussions.microsoft.com> wrote in message
> news:D20D0B06-6327-4317-AF5A-C9A1185DCF63@.microsoft.com...
> must
> I'll bet you've got it setup to email upon completion and SQL Mail isn't
> working.
> Tht's when I've generally seen it.
>
> I
>
>
|||Hi,
Did you try to restart SQL Server Agent?
Maybe restart could stop the job.
Danijel
"Dan D." <DanD@.discussions.microsoft.com> wrote in message
news:D20D0B06-6327-4317-AF5A-C9A1185DCF63@.microsoft.com...[vbcol=seagreen]
>I forgot to say that it has been that way for over 2 weeks so something
>must
> be wrong. But I can't remove it so I'm not sure what to do about it.
> "Danijel Novak" wrote:
|||I was finally able to delete the job. I created a new one.
Thanks,
"Danijel Novak" wrote:

> Hi,
> Did you try to restart SQL Server Agent?
> Maybe restart could stop the job.
> Danijel
>
> "Dan D." <DanD@.discussions.microsoft.com> wrote in message
> news:D20D0B06-6327-4317-AF5A-C9A1185DCF63@.microsoft.com...
>
>

scheduled job status is "performing completion actions"

Any idea what this means. I tried stopping the job and deleting it but I
couldn't do either.
Thanks,
--
Dan D.Hi,
by my experiance it usually means that SQL Server Agent is cleaning up
temporary object it has created during execution of job.
Usually it is fast so you cannot see it but sometimes it takes time,
especially if there is a lot of data.
Danijel
"Dan D." <DanD@.discussions.microsoft.com> wrote in message
news:32DA2E5E-C7DF-4B71-A9C8-0EAEF7470A68@.microsoft.com...
> Any idea what this means. I tried stopping the job and deleting it but I
> couldn't do either.
> Thanks,
> --
> Dan D.|||I forgot to say that it has been that way for over 2 weeks so something must
be wrong. But I can't remove it so I'm not sure what to do about it.
"Danijel Novak" wrote:
> Hi,
> by my experiance it usually means that SQL Server Agent is cleaning up
> temporary object it has created during execution of job.
> Usually it is fast so you cannot see it but sometimes it takes time,
> especially if there is a lot of data.
> Danijel
>
> "Dan D." <DanD@.discussions.microsoft.com> wrote in message
> news:32DA2E5E-C7DF-4B71-A9C8-0EAEF7470A68@.microsoft.com...
> > Any idea what this means. I tried stopping the job and deleting it but I
> > couldn't do either.
> >
> > Thanks,
> > --
> > Dan D.
>
>|||Dan
What does the job do?
Perhasps you might look at Task Manager to see what happened.
"Dan D." <DanD@.discussions.microsoft.com> wrote in message
news:32DA2E5E-C7DF-4B71-A9C8-0EAEF7470A68@.microsoft.com...
> Any idea what this means. I tried stopping the job and deleting it but I
> couldn't do either.
> Thanks,
> --
> Dan D.|||The job is a dts package that does some inserts, deletes and updates to
various tables.
"Uri Dimant" wrote:
> Dan
> What does the job do?
> Perhasps you might look at Task Manager to see what happened.
>
> "Dan D." <DanD@.discussions.microsoft.com> wrote in message
> news:32DA2E5E-C7DF-4B71-A9C8-0EAEF7470A68@.microsoft.com...
> > Any idea what this means. I tried stopping the job and deleting it but I
> > couldn't do either.
> >
> > Thanks,
> > --
> > Dan D.
>
>|||"Dan D." <DanD@.discussions.microsoft.com> wrote in message
news:D20D0B06-6327-4317-AF5A-C9A1185DCF63@.microsoft.com...
> I forgot to say that it has been that way for over 2 weeks so something
must
> be wrong. But I can't remove it so I'm not sure what to do about it.
>
I'll bet you've got it setup to email upon completion and SQL Mail isn't
working.
Tht's when I've generally seen it.
> "Danijel Novak" wrote:
> > Hi,
> >
> > by my experiance it usually means that SQL Server Agent is cleaning up
> > temporary object it has created during execution of job.
> > Usually it is fast so you cannot see it but sometimes it takes time,
> > especially if there is a lot of data.
> >
> > Danijel
> >
> >
> > "Dan D." <DanD@.discussions.microsoft.com> wrote in message
> > news:32DA2E5E-C7DF-4B71-A9C8-0EAEF7470A68@.microsoft.com...
> > > Any idea what this means. I tried stopping the job and deleting it but
I
> > > couldn't do either.
> > >
> > > Thanks,
> > > --
> > > Dan D.
> >
> >
> >|||There are no email notifications in the package. And our SQLMail is working.
Every step is an execute sql task.
"Greg D. Moore (Strider)" wrote:
> "Dan D." <DanD@.discussions.microsoft.com> wrote in message
> news:D20D0B06-6327-4317-AF5A-C9A1185DCF63@.microsoft.com...
> > I forgot to say that it has been that way for over 2 weeks so something
> must
> > be wrong. But I can't remove it so I'm not sure what to do about it.
> >
> I'll bet you've got it setup to email upon completion and SQL Mail isn't
> working.
> Tht's when I've generally seen it.
>
> > "Danijel Novak" wrote:
> >
> > > Hi,
> > >
> > > by my experiance it usually means that SQL Server Agent is cleaning up
> > > temporary object it has created during execution of job.
> > > Usually it is fast so you cannot see it but sometimes it takes time,
> > > especially if there is a lot of data.
> > >
> > > Danijel
> > >
> > >
> > > "Dan D." <DanD@.discussions.microsoft.com> wrote in message
> > > news:32DA2E5E-C7DF-4B71-A9C8-0EAEF7470A68@.microsoft.com...
> > > > Any idea what this means. I tried stopping the job and deleting it but
> I
> > > > couldn't do either.
> > > >
> > > > Thanks,
> > > > --
> > > > Dan D.
> > >
> > >
> > >
>
>|||Hi,
Did you try to restart SQL Server Agent?
Maybe restart could stop the job.
Danijel
"Dan D." <DanD@.discussions.microsoft.com> wrote in message
news:D20D0B06-6327-4317-AF5A-C9A1185DCF63@.microsoft.com...
>I forgot to say that it has been that way for over 2 weeks so something
>must
> be wrong. But I can't remove it so I'm not sure what to do about it.
> "Danijel Novak" wrote:
>> Hi,
>> by my experiance it usually means that SQL Server Agent is cleaning up
>> temporary object it has created during execution of job.
>> Usually it is fast so you cannot see it but sometimes it takes time,
>> especially if there is a lot of data.
>> Danijel
>>
>> "Dan D." <DanD@.discussions.microsoft.com> wrote in message
>> news:32DA2E5E-C7DF-4B71-A9C8-0EAEF7470A68@.microsoft.com...
>> > Any idea what this means. I tried stopping the job and deleting it but
>> > I
>> > couldn't do either.
>> >
>> > Thanks,
>> > --
>> > Dan D.
>>|||I was finally able to delete the job. I created a new one.
Thanks,
"Danijel Novak" wrote:
> Hi,
> Did you try to restart SQL Server Agent?
> Maybe restart could stop the job.
> Danijel
>
> "Dan D." <DanD@.discussions.microsoft.com> wrote in message
> news:D20D0B06-6327-4317-AF5A-C9A1185DCF63@.microsoft.com...
> >I forgot to say that it has been that way for over 2 weeks so something
> >must
> > be wrong. But I can't remove it so I'm not sure what to do about it.
> >
> > "Danijel Novak" wrote:
> >
> >> Hi,
> >>
> >> by my experiance it usually means that SQL Server Agent is cleaning up
> >> temporary object it has created during execution of job.
> >> Usually it is fast so you cannot see it but sometimes it takes time,
> >> especially if there is a lot of data.
> >>
> >> Danijel
> >>
> >>
> >> "Dan D." <DanD@.discussions.microsoft.com> wrote in message
> >> news:32DA2E5E-C7DF-4B71-A9C8-0EAEF7470A68@.microsoft.com...
> >> > Any idea what this means. I tried stopping the job and deleting it but
> >> > I
> >> > couldn't do either.
> >> >
> >> > Thanks,
> >> > --
> >> > Dan D.
> >>
> >>
> >>
>
>

scheduled job status is "performing completion actions"

Any idea what this means. I tried stopping the job and deleting it but I
couldn't do either.
Thanks,
--
Dan D.Hi,
by my experiance it usually means that SQL Server Agent is cleaning up
temporary object it has created during execution of job.
Usually it is fast so you cannot see it but sometimes it takes time,
especially if there is a lot of data.
Danijel
"Dan D." <DanD@.discussions.microsoft.com> wrote in message
news:32DA2E5E-C7DF-4B71-A9C8-0EAEF7470A68@.microsoft.com...
> Any idea what this means. I tried stopping the job and deleting it but I
> couldn't do either.
> Thanks,
> --
> Dan D.|||I forgot to say that it has been that way for over 2 weeks so something must
be wrong. But I can't remove it so I'm not sure what to do about it.
"Danijel Novak" wrote:

> Hi,
> by my experiance it usually means that SQL Server Agent is cleaning up
> temporary object it has created during execution of job.
> Usually it is fast so you cannot see it but sometimes it takes time,
> especially if there is a lot of data.
> Danijel
>
> "Dan D." <DanD@.discussions.microsoft.com> wrote in message
> news:32DA2E5E-C7DF-4B71-A9C8-0EAEF7470A68@.microsoft.com...
>
>|||Dan
What does the job do?
Perhasps you might look at Task Manager to see what happened.
"Dan D." <DanD@.discussions.microsoft.com> wrote in message
news:32DA2E5E-C7DF-4B71-A9C8-0EAEF7470A68@.microsoft.com...
> Any idea what this means. I tried stopping the job and deleting it but I
> couldn't do either.
> Thanks,
> --
> Dan D.|||The job is a dts package that does some inserts, deletes and updates to
various tables.
"Uri Dimant" wrote:

> Dan
> What does the job do?
> Perhasps you might look at Task Manager to see what happened.
>
> "Dan D." <DanD@.discussions.microsoft.com> wrote in message
> news:32DA2E5E-C7DF-4B71-A9C8-0EAEF7470A68@.microsoft.com...
>
>|||"Dan D." <DanD@.discussions.microsoft.com> wrote in message
news:D20D0B06-6327-4317-AF5A-C9A1185DCF63@.microsoft.com...
> I forgot to say that it has been that way for over 2 weeks so something
must
> be wrong. But I can't remove it so I'm not sure what to do about it.
>
I'll bet you've got it setup to email upon completion and SQL Mail isn't
working.
Tht's when I've generally seen it.
[vbcol=seagreen]
> "Danijel Novak" wrote:
>
I[vbcol=seagreen]|||There are no email notifications in the package. And our SQLMail is working.
Every step is an execute sql task.
"Greg D. Moore (Strider)" wrote:

> "Dan D." <DanD@.discussions.microsoft.com> wrote in message
> news:D20D0B06-6327-4317-AF5A-C9A1185DCF63@.microsoft.com...
> must
> I'll bet you've got it setup to email upon completion and SQL Mail isn't
> working.
> Tht's when I've generally seen it.
>
> I
>
>|||Hi,
Did you try to restart SQL Server Agent?
Maybe restart could stop the job.
Danijel
"Dan D." <DanD@.discussions.microsoft.com> wrote in message
news:D20D0B06-6327-4317-AF5A-C9A1185DCF63@.microsoft.com...[vbcol=seagreen]
>I forgot to say that it has been that way for over 2 weeks so something
>must
> be wrong. But I can't remove it so I'm not sure what to do about it.
> "Danijel Novak" wrote:
>|||I was finally able to delete the job. I created a new one.
Thanks,
"Danijel Novak" wrote:

> Hi,
> Did you try to restart SQL Server Agent?
> Maybe restart could stop the job.
> Danijel
>
> "Dan D." <DanD@.discussions.microsoft.com> wrote in message
> news:D20D0B06-6327-4317-AF5A-C9A1185DCF63@.microsoft.com...
>
>