dbTalk Databases Forums  

Scheduled DTS package fails even when SQLSERVERAGENT logs on as ow

microsoft.public.sqlserver.dts microsoft.public.sqlserver.dts


Discuss Scheduled DTS package fails even when SQLSERVERAGENT logs on as ow in the microsoft.public.sqlserver.dts forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Mark Peacock
 
Posts: n/a

Default Scheduled DTS package fails even when SQLSERVERAGENT logs on as ow - 08-08-2005 , 12:35 PM







Successful DTS package fails when scheduled as a SQL Agent job.

The package runs only one ActiveX script, which makes a call to a COM DLL
that uses DAO to run read-only queries against an Access 2000 .mdb file with
workgroup security.

Domain\user1 is assigned to the workgroup, and has full NTFS file and folder
permissions.

The DTS package owner is domain\user1;
the Agent job owner is domain\user1;
the SQLSERVERAGENT service logs on as domain\user1.

SQL Agent security context can write files to the same folder as the .mdb
file.

All paths involved are confirmed UNCs.

Have I missed something? With these security settings, what's the difference
between Agent and DTS security context as far as Access is concerned?

Thank you.

Reply With Quote
  #2  
Old   
Allan Mitchell
 
Posts: n/a

Default Re: Scheduled DTS package fails even when SQLSERVERAGENT logs on as ow - 08-08-2005 , 01:11 PM






And in what DB role on SQL Server is domain\user1?

Remember if they are not in the sysadmin role the job will execute under the
proxy account

http://support.microsoft.com/default...269074&sd=tech

--



Allan Mitchell MCSE,MCDBA, (Microsoft SQL Server MVP)
www.SQLDTS.com - The site for all your DTS needs.
www.SQLIS.com - You thought DTS was good. here we show you the new stuff.
www.konesans.com - Consultancy from the people who know


"Mark Peacock" <fbmarkp (AT) community (DOT) nospam> wrote

Quote:
Successful DTS package fails when scheduled as a SQL Agent job.

The package runs only one ActiveX script, which makes a call to a COM DLL
that uses DAO to run read-only queries against an Access 2000 .mdb file
with
workgroup security.

Domain\user1 is assigned to the workgroup, and has full NTFS file and
folder
permissions.

The DTS package owner is domain\user1;
the Agent job owner is domain\user1;
the SQLSERVERAGENT service logs on as domain\user1.

SQL Agent security context can write files to the same folder as the .mdb
file.

All paths involved are confirmed UNCs.

Have I missed something? With these security settings, what's the
difference
between Agent and DTS security context as far as Access is concerned?

Thank you.



Reply With Quote
  #3  
Old   
Mark Peacock
 
Posts: n/a

Default Re: Scheduled DTS package fails even when SQLSERVERAGENT logs on as ow - 08-08-2005 , 02:49 PM



I hadn't checked this before you asked about it, but turns out that
domain\user1 (who is a local admin on the server) does happen to be included
in sysadmin role.

"Allan Mitchell" <allan (AT) no-spam (DOT) sqldts.com> wrote

Quote:
And in what DB role on SQL Server is domain\user1?

Remember if they are not in the sysadmin role the job will execute under
the proxy account

http://support.microsoft.com/default...269074&sd=tech

--



Allan Mitchell MCSE,MCDBA, (Microsoft SQL Server MVP)
www.SQLDTS.com - The site for all your DTS needs.
www.SQLIS.com - You thought DTS was good. here we show you the new stuff.
www.konesans.com - Consultancy from the people who know


"Mark Peacock" <fbmarkp (AT) community (DOT) nospam> wrote in message
newsB4B13F8-39A6-4A68-9358-6387C9F9D2D7 (AT) microsoft (DOT) com...

Successful DTS package fails when scheduled as a SQL Agent job.

The package runs only one ActiveX script, which makes a call to a COM DLL
that uses DAO to run read-only queries against an Access 2000 .mdb file
with
workgroup security.

Domain\user1 is assigned to the workgroup, and has full NTFS file and
folder
permissions.

The DTS package owner is domain\user1;
the Agent job owner is domain\user1;
the SQLSERVERAGENT service logs on as domain\user1.

SQL Agent security context can write files to the same folder as the .mdb
file.

All paths involved are confirmed UNCs.

Have I missed something? With these security settings, what's the
difference
between Agent and DTS security context as far as Access is concerned?

Thank you.





Reply With Quote
  #4  
Old   
Allan Mitchell
 
Posts: n/a

Default Re: Scheduled DTS package fails even when SQLSERVERAGENT logs on as ow - 08-08-2005 , 03:01 PM



What is the error?

--



Allan Mitchell MCSE,MCDBA, (Microsoft SQL Server MVP)
www.SQLDTS.com - The site for all your DTS needs.
www.SQLIS.com - You thought DTS was good. here we show you the new stuff.
www.konesans.com - Consultancy from the people who know


"Mark Peacock" <fbmarkp (AT) community (DOT) nospam> wrote

Quote:
I hadn't checked this before you asked about it, but turns out that
domain\user1 (who is a local admin on the server) does happen to be
included in sysadmin role.

"Allan Mitchell" <allan (AT) no-spam (DOT) sqldts.com> wrote in message
news:eCKd7REnFHA.320 (AT) TK2MSFTNGP09 (DOT) phx.gbl...
And in what DB role on SQL Server is domain\user1?

Remember if they are not in the sysadmin role the job will execute under
the proxy account

http://support.microsoft.com/default...269074&sd=tech

--



Allan Mitchell MCSE,MCDBA, (Microsoft SQL Server MVP)
www.SQLDTS.com - The site for all your DTS needs.
www.SQLIS.com - You thought DTS was good. here we show you the new
stuff.
www.konesans.com - Consultancy from the people who know


"Mark Peacock" <fbmarkp (AT) community (DOT) nospam> wrote in message
newsB4B13F8-39A6-4A68-9358-6387C9F9D2D7 (AT) microsoft (DOT) com...

Successful DTS package fails when scheduled as a SQL Agent job.

The package runs only one ActiveX script, which makes a call to a COM
DLL
that uses DAO to run read-only queries against an Access 2000 .mdb file
with
workgroup security.

Domain\user1 is assigned to the workgroup, and has full NTFS file and
folder
permissions.

The DTS package owner is domain\user1;
the Agent job owner is domain\user1;
the SQLSERVERAGENT service logs on as domain\user1.

SQL Agent security context can write files to the same folder as the
.mdb
file.

All paths involved are confirmed UNCs.

Have I missed something? With these security settings, what's the
difference
between Agent and DTS security context as far as Access is concerned?

Thank you.







Reply With Quote
  #5  
Old   
Mark Peacock
 
Posts: n/a

Default Re: Scheduled DTS package fails even if SQLSERVERAGENT logs on as owner - 08-09-2005 , 11:39 AM



Thanks for the suggestions.
The final bit turned out to be a hardcoded ref to a mapped drive (in the
..mdw file) after all.
Mapping the drive at the start of the package in an ActiveX task took care
of it:

Dim wsh
Set wsh = CreateObject("WScript.Network")
wsh.MapNetworkDrive "Z:", "\\server\share"
If Not wsh Is Nothing Then Set wsh = Nothing

For production, though, SQLSERVERAGENT can't be a sysadmin. Can one set the
proxy to logon as an ordinary domain user?


"Allan Mitchell" <allan (AT) no-spam (DOT) sqldts.com> wrote

Quote:
What is the error?

--



Allan Mitchell MCSE,MCDBA, (Microsoft SQL Server MVP)
www.SQLDTS.com - The site for all your DTS needs.
www.SQLIS.com - You thought DTS was good. here we show you the new stuff.
www.konesans.com - Consultancy from the people who know


"Mark Peacock" <fbmarkp (AT) community (DOT) nospam> wrote in message
news:OH0N%23IFnFHA.2484 (AT) TK2MSFTNGP15 (DOT) phx.gbl...
I hadn't checked this before you asked about it, but turns out that
domain\user1 (who is a local admin on the server) does happen to be
included in sysadmin role.

"Allan Mitchell" <allan (AT) no-spam (DOT) sqldts.com> wrote in message
news:eCKd7REnFHA.320 (AT) TK2MSFTNGP09 (DOT) phx.gbl...
And in what DB role on SQL Server is domain\user1?

Remember if they are not in the sysadmin role the job will execute under
the proxy account

http://support.microsoft.com/default...269074&sd=tech

--



Allan Mitchell MCSE,MCDBA, (Microsoft SQL Server MVP)
www.SQLDTS.com - The site for all your DTS needs.
www.SQLIS.com - You thought DTS was good. here we show you the new
stuff.
www.konesans.com - Consultancy from the people who know


"Mark Peacock" <fbmarkp (AT) community (DOT) nospam> wrote in message
newsB4B13F8-39A6-4A68-9358-6387C9F9D2D7 (AT) microsoft (DOT) com...

Successful DTS package fails when scheduled as a SQL Agent job.

The package runs only one ActiveX script, which makes a call to a COM
DLL
that uses DAO to run read-only queries against an Access 2000 .mdb file
with
workgroup security.

Domain\user1 is assigned to the workgroup, and has full NTFS file and
folder
permissions.

The DTS package owner is domain\user1;
the Agent job owner is domain\user1;
the SQLSERVERAGENT service logs on as domain\user1.

SQL Agent security context can write files to the same folder as the
.mdb
file.

All paths involved are confirmed UNCs.

Have I missed something? With these security settings, what's the
difference
between Agent and DTS security context as far as Access is concerned?

Thank you.









Reply With Quote
  #6  
Old   
Mark Peacock
 
Posts: n/a

Default Re: Scheduled DTS package fails even if SQLSERVERAGENT logs on as owner - 08-09-2005 , 12:39 PM



Thanks anyway, I found this under SQL Agent properties / Job System ...

Turns out that with the script to map the drive, I was able to reset all
security settings to default.


"Mark Peacock" <fbmarkp (AT) community (DOT) nospam> wrote

Quote:
Thanks for the suggestions.
The final bit turned out to be a hardcoded ref to a mapped drive (in the
.mdw file) after all.
Mapping the drive at the start of the package in an ActiveX task took care
of it:

Dim wsh
Set wsh = CreateObject("WScript.Network")
wsh.MapNetworkDrive "Z:", "\\server\share"
If Not wsh Is Nothing Then Set wsh = Nothing

For production, though, SQLSERVERAGENT can't be a sysadmin. Can one set
the proxy to logon as an ordinary domain user?


"Allan Mitchell" <allan (AT) no-spam (DOT) sqldts.com> wrote in message
news:eIieAQFnFHA.2920 (AT) TK2MSFTNGP14 (DOT) phx.gbl...
What is the error?

--



Allan Mitchell MCSE,MCDBA, (Microsoft SQL Server MVP)
www.SQLDTS.com - The site for all your DTS needs.
www.SQLIS.com - You thought DTS was good. here we show you the new
stuff.
www.konesans.com - Consultancy from the people who know


"Mark Peacock" <fbmarkp (AT) community (DOT) nospam> wrote in message
news:OH0N%23IFnFHA.2484 (AT) TK2MSFTNGP15 (DOT) phx.gbl...
I hadn't checked this before you asked about it, but turns out that
domain\user1 (who is a local admin on the server) does happen to be
included in sysadmin role.

"Allan Mitchell" <allan (AT) no-spam (DOT) sqldts.com> wrote in message
news:eCKd7REnFHA.320 (AT) TK2MSFTNGP09 (DOT) phx.gbl...
And in what DB role on SQL Server is domain\user1?

Remember if they are not in the sysadmin role the job will execute
under the proxy account

http://support.microsoft.com/default...269074&sd=tech

--



Allan Mitchell MCSE,MCDBA, (Microsoft SQL Server MVP)
www.SQLDTS.com - The site for all your DTS needs.
www.SQLIS.com - You thought DTS was good. here we show you the new
stuff.
www.konesans.com - Consultancy from the people who know


"Mark Peacock" <fbmarkp (AT) community (DOT) nospam> wrote in message
newsB4B13F8-39A6-4A68-9358-6387C9F9D2D7 (AT) microsoft (DOT) com...

Successful DTS package fails when scheduled as a SQL Agent job.

The package runs only one ActiveX script, which makes a call to a COM
DLL
that uses DAO to run read-only queries against an Access 2000 .mdb
file with
workgroup security.

Domain\user1 is assigned to the workgroup, and has full NTFS file and
folder
permissions.

The DTS package owner is domain\user1;
the Agent job owner is domain\user1;
the SQLSERVERAGENT service logs on as domain\user1.

SQL Agent security context can write files to the same folder as the
.mdb
file.

All paths involved are confirmed UNCs.

Have I missed something? With these security settings, what's the
difference
between Agent and DTS security context as far as Access is concerned?

Thank you.











Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.