473,769 Members | 4,985 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Problems with DTS package. Access denied

Hi,

I made a DTS-package and it works when I execute it manually, but when it is
run by the SQL Server Agent, it fails.

I have use the guide to create a maintenance plan. That doesn't work so good
either. It runs Optimizations, but not integrity checks or backups (probably
because integrity checks failed).

The following from the log file:
Executed as user: HT-DOMAIN\INTRAB-SQL. ...:

DTSStep_DTSExec uteSQLTask_2 DTSRun OnFinish: DTSStep_DTSExec uteSQLTask_2
DTSRun OnStart: DTSStep_DTSExec uteSQLTask_1 DTSRun OnFinish:
DTSStep_DTSExec uteSQLTask_1 DTSRun OnStart: DTSStep_DTSData PumpTask_1
DTSRun OnStart: DTSStep_DTSData PumpTask_3 DTSRun OnError:
DTSStep_DTSData PumpTask_1,

Error = -2147024891 (80070005) Error string: Access is denied.
Error source: Microsoft Data Transformation Services (DTS) Package
Help file: sqldts80.hlp Help context: 1100 Error Detail Records:
Error: -2147024891 (80070005); Provider Error: 0 (0) Error string:
Access is denied. Error source: Microsoft Data Transformation
Services (DTS) Package Help file: sqldts80.hlp Help context:
1100 Error: -2147024891 (80070005); Provider Error: 0 (0)
Error string: Cannot open a log file of specified name. Access is denied.
Error source: Micr... Process Exit Code 1. The step failed.

Log-file endeth here.....

My "data-sources"/Connections is set up to use sql-server
authentication where I enter superuser name+password, not windows
authentication.

If I browse around using SQL-EM:
Under Security - Logins HT-DOMAIN\intrab-sql:
Tab General: Grant Access
Tab Server Roles: System Administrators
Tab Database Access: checkmark at Mbestil, user=dbo; database roles
for mbestil = public + db_owner

I also have som problems identifying where the package fails. I have given
the individual "steps"/"transformation s" some pretty good names, but in the
log-file it still shows the "old" names.

The DTS package empties a table, then fills it by copying data from another
table in another database on another server.

Anyone with some useful tips ?

/jim
Jul 20 '05 #1
5 13718
In the services management you will find SQL Agent is
configured with a user account on the operating system.
What OS are you on?

This OS account needs the appropriate DB access that is
equivalent to yours when running interactively.

Once this is fixed, because SQL Agent handles the automated
tasks, your backups, reorganisations , maintenance plans,
DTS tasks and anything else you need to automate in
the environment should have no problems in running
unattended.
Hope this helps.

Pete Brown
Falls Creek
Oz


"Jim Andersen" <jimVÆÆK@office consult.dk> wrote in message
news:bt******** **@sunsite.dk.. .
Hi,

I made a DTS-package and it works when I execute it manually, but when it is run by the SQL Server Agent, it fails.

I have use the guide to create a maintenance plan. That doesn't work so good either. It runs Optimizations, but not integrity checks or backups (probably because integrity checks failed).

The following from the log file:
....[trim]...
Log-file endeth here.....

My "data-sources"/Connections is set up to use sql-server
authentication where I enter superuser name+password, not windows
authentication.

If I browse around using SQL-EM:
Under Security - Logins HT-DOMAIN\intrab-sql:
Tab General: Grant Access
Tab Server Roles: System Administrators
Tab Database Access: checkmark at Mbestil, user=dbo; database roles
for mbestil = public + db_owner

I also have som problems identifying where the package fails. I have given
the individual "steps"/"transformation s" some pretty good names, but in the log-file it still shows the "old" names.

The DTS package empties a table, then fills it by copying data from another table in another database on another server.

Anyone with some useful tips ?

/jim

Jul 20 '05 #2
mountain man wrote:
In the services management you will find SQL Agent is
configured with a user account on the operating system.
Found it.
What OS are you on?
Will check (not at problem site right now)
This OS account needs the appropriate DB access that is
equivalent to yours when running interactively.
Why ? I can understand it, when it comes to the backup, etc. But I have
supplied the name and password in the Connection properties in the DTS
package. And I _think_ (will have to check) that it actually empties the
table (first step in the package).
Once this is fixed, because SQL Agent handles the automated
tasks, your backups, reorganisations , maintenance plans,
DTS tasks and anything else you need to automate in
the environment should have no problems in running
unattended.
I sure hope it has some kind of domino-effect :-)
Hope this helps.
Me too. Will get back.
thx
Jim
"Jim Andersen" <jimVÆÆK@office consult.dk> wrote in message
news:bt******** **@sunsite.dk.. .
Hi,

I made a DTS-package and it works when I execute it manually, but
when it is run by the SQL Server Agent, it fails.

I have use the guide to create a maintenance plan. That doesn't work
so good either. It runs Optimizations, but not integrity checks or
backups (probably because integrity checks failed).

The following from the log file:


...[trim]...
Log-file endeth here.....

My "data-sources"/Connections is set up to use sql-server
authentication where I enter superuser name+password, not windows
authentication.

If I browse around using SQL-EM:
Under Security - Logins HT-DOMAIN\intrab-sql:
Tab General: Grant Access
Tab Server Roles: System Administrators
Tab Database Access: checkmark at Mbestil, user=dbo; database roles
for mbestil = public + db_owner

I also have som problems identifying where the package fails. I have
given the individual "steps"/"transformation s" some pretty good
names, but in the log-file it still shows the "old" names.

The DTS package empties a table, then fills it by copying data from
another table in another database on another server.

Anyone with some useful tips ?

/jim

Jul 20 '05 #3
"Jim Andersen" <jimVÆÆK@office consult.dk> wrote in message
news:bt******** **@sunsite.dk.. .
mountain man wrote:
This OS account needs the appropriate DB access that is
equivalent to yours when running interactively.


Why ? I can understand it, when it comes to the backup, etc.


I believe all tasks run via SQL Agent will try to use the SQL Agent
user account nominated in the services detail.
But I have
supplied the name and password in the Connection properties in the DTS
package. And I _think_ (will have to check) that it actually empties the
table (first step in the package).


Also check the name of the owner (you, admin?) of the automated package.
The SQL Agent account needs to have equivalent access on the database end.

Hope this helps.


Me too. Will get back.

Good luck with it Jim. Sometimes it is a little fiddly getting SQL Agent
up and running for the first time. Also, there have been a multitude of
threads in here in the past concerning this very issue.

So if the MS doco is not conducive to the solution, try an advance google
through the mssql newsgroups only, for the term "SQL Agent". If all else
fails write back.


Pete Brown
Falls Creek
Oz


Jul 20 '05 #4
mountain man wrote:
"Jim Andersen" <jimVÆÆK@office consult.dk> wrote in message
news:bt******** **@sunsite.dk.. .
mountain man wrote:

This OS account needs the appropriate DB access that is
equivalent to yours when running interactively.


Why ? I can understand it, when it comes to the backup, etc.


I believe all tasks run via SQL Agent will try to use the SQL Agent
user account nominated in the services detail.
But I have
supplied the name and password in the Connection properties in the
DTS package. And I _think_ (will have to check) that it actually
empties the table (first step in the package).


Also check the name of the owner (you, admin?) of the automated
package. The SQL Agent account needs to have equivalent access on the
database end.


User JIM is now system administrator equivalent on the server. I split the
package in 3 parts to avoid any misunderstandin gs about workflow. All
packages are owned by JIM

Pack1 copies data from a remote server table to local table X.
Pack2 massages data from local table X and copies it to another local table
Y.
Pack3 copies some other data from remote server to another local table.

And then 3 jobs in sql server agent, 1 minute apart (each task takes a
second or 2).
It is Pack2 that fails. "Error string: Cannot open a log file of specified
name. Access is denied."
What does that mean ?

All packages run fine when I execute them manually.

I would have expected it to be either pack1 or 3. But now I think I'm gonna
change pack3 so it reads AND massages data from the remote server table to
local table Y.

It just puzzles me....

/jim
Jul 20 '05 #5
"Jim Andersen" <jimVÆÆK@office consult.dk> wrote in message news:<bu******* ***@sunsite.dk> ...
mountain man wrote:
"Jim Andersen" <jimVÆÆK@office consult.dk> wrote in message
news:bt******** **@sunsite.dk.. .
mountain man wrote: This OS account needs the appropriate DB access that is
equivalent to yours when running interactively.

Why ? I can understand it, when it comes to the backup, etc.


I believe all tasks run via SQL Agent will try to use the SQL Agent
user account nominated in the services detail.
But I have
supplied the name and password in the Connection properties in the
DTS package. And I _think_ (will have to check) that it actually
empties the table (first step in the package).


Also check the name of the owner (you, admin?) of the automated
package. The SQL Agent account needs to have equivalent access on the
database end.


User JIM is now system administrator equivalent on the server. I split the
package in 3 parts to avoid any misunderstandin gs about workflow. All
packages are owned by JIM

Pack1 copies data from a remote server table to local table X.
Pack2 massages data from local table X and copies it to another local table
Y.
Pack3 copies some other data from remote server to another local table.

And then 3 jobs in sql server agent, 1 minute apart (each task takes a
second or 2).
It is Pack2 that fails. "Error string: Cannot open a log file of specified
name. Access is denied."
What does that mean ?

All packages run fine when I execute them manually.

I would have expected it to be either pack1 or 3. But now I think I'm gonna
change pack3 so it reads AND massages data from the remote server table to
local table Y.

It just puzzles me....

/jim


You might find this KB article useful - it gives quite a lot of detail
on how scheduled DTS packages are executed, and which security
contexts are relevant:

http://support.microsoft.com/default...&Product=sql2k

Simon
Jul 20 '05 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
10404
by: ano1optimist | last post by:
I've tried several different possibilities but don't have enough basic understanding of the ownerships and permissions that are involved so I'm looking for someone to explain what is required: I created a DTS package that includes a drop table, create table, and data transformation task. Originally, my owner was local to the pc workstation with administrator priveleges. When I executed the package on demand (manually, not scheduled), it...
2
3630
by: Jim Andersen | last post by:
Hejsa, Jeg har lavet en DTS-package og den virker når jeg kører den pr. håndkraft, men når den køres af SQL Server Agenten, fejler den. Det skal også lige siges at jeg har brugt guiden til at oprette en "standard" vedligeholdelse/backup rutine. Den går heller ikke så godt. Den kører optimization's men ikke integrity check eller backup (vist fordi integrity check'et fejlede).
1
2246
by: Jesper | last post by:
Hi, I am experiencing some problems running a .net exe placed on a network drive. File IO operations and access to reg db results in access denied exceptions. If I run the same program from a location locally on my machine I do not have any problems... Anyone who knows why? rgds Jesper.
1
2201
by: Dean R. Henderson | last post by:
I have a Windows library that I bind into a Windows Form application and into an ASP.NET Web Application. I have a procedure in the library that executes a DTS Package. I have also used information from Knowledge Base article 306158, INFO: Implementing Impersonation in an ASP.NET Application to create a procedure to perform impersonation. When I try to execute the DTS Package from ASP.NET, I get the following error: Step...
1
8136
by: Duffman | last post by:
Hi, I have what seems to be a common problem, but the solutions I've found don't seem to work. I would like to use a web service to create a file at a UNC location in a shared file. Currently I'm just running it locally and saving the file locally using my machines UNC path. I have given user ASPNET full control over the folder I want to write the file to. I've also tried using the web config identity impersonation to use my user...
3
2570
by: Hrvoje Vrbanc | last post by:
Hello all! Scenario: - web server at one location (domain) with VS 2003 - SQL server at a remote location (domain) - VPN connection on port 1433 between the two domains I have no troubles reaching the remote SQL server either from SQL Enterprise manager or in VS 2003 design-time (using the SQL authentication in both cases) - all the connections work and I can preview data while building
8
1868
by: reema via AccessMonster.com | last post by:
Did any one faces any difficulties ,issuess or problems using Microsoft Access -- Message posted via http://www.accessmonster.com
0
3206
by: debug03 | last post by:
I am executing a DTS package on a Windows 2000 sp4 server running SQL Server 2000 and IBM DB2 V7 client. The DTS package source data(SQL Server) is selected from SQL server table and inserts data to the destination table(DB2). I get the following error when the package is executed: The execution of the following DTS Package succeeded: Package Name: PEX2-CopyQualDatatoDB2-UAT Package Description: (null) Package ID:...
0
2548
by: Jack Lee | last post by:
I try to set a job to run a DTS package, failed. My environment is SQL Server 2000 sp4 on windows Server 2003. There is a local window group called Dev_accnt including member SQLTesting who is a global account of domain Jackson. local group Dev_accnt assigned in SQL Server with Login name: LocalMachine\Dev_accnt, type: windows group. There is no individual Login name assigned to SQLTesting in SQL server. I used a global account...
0
9423
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
1
9994
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9863
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
7408
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6673
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5447
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3958
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3561
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2815
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.