dbTalk Databases Forums  

Scheduled Pkg

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


Discuss Scheduled Pkg in the microsoft.public.sqlserver.dts forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Matt Cannen
 
Posts: n/a

Default Scheduled Pkg - 10-08-2003 , 09:27 AM






My question today is when I schedule a dts package, that does nothing
more than copy 3 files from one server to the another, it only takes 1
second to run in a scheduled job and shows it was successful even though
it didnt truly run the package? I have created variables with both ip
addresses of the servers and what drive to reference C$ and D$
accordingly. This package runs fine when it's run manually. I know that
sometimes it could be a permission issue. But I have another scheduled
job that uses excel and creates files on my client pc fine. So that
took out the permissions issue so now I am confused.

Any Ideas?



*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!

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

Default Re: Scheduled Pkg - 10-08-2003 , 01:29 PM






A Quick test for the permissions issue would be to log on as the SQL Server
Agent service account and try to manually run the package.


--
--

Allan Mitchell (Microsoft SQL Server MVP)
MCSE,MCDBA
www.SQLDTS.com
I support PASS - the definitive, global community
for SQL Server professionals - http://www.sqlpass.org

<Matt Cannen> wrote

Quote:
My question today is when I schedule a dts package, that does nothing
more than copy 3 files from one server to the another, it only takes 1
second to run in a scheduled job and shows it was successful even though
it didnt truly run the package? I have created variables with both ip
addresses of the servers and what drive to reference C$ and D$
accordingly. This package runs fine when it's run manually. I know that
sometimes it could be a permission issue. But I have another scheduled
job that uses excel and creates files on my client pc fine. So that
took out the permissions issue so now I am confused.

Any Ideas?



*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!



Reply With Quote
  #3  
Old   
Matt Cannen
 
Posts: n/a

Default Re: Scheduled Pkg - 10-08-2003 , 04:22 PM



ok when I switch to use the system startup account back to system
account the first scheduled package with run correctly. But my second
scheduled package will not. Even if I tell it to use sa I get Error
Description: ActiveX component can't create object: 'Excel.Application'
Error on Line 5. Where as when I told it to use another account it
would run fine. What am I missing in the permissions?



*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!

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

Default Re: Scheduled Pkg - 10-08-2003 , 04:34 PM



Is Excel installed on the box where you run the packages (remember DTS is
client side)?
If not then this would stop it working. I have also seen this when Excel
was installed by a user and then used by others. Almost as though it
installed something to the user's profile.

--
--

Allan Mitchell (Microsoft SQL Server MVP)
MCSE,MCDBA
www.SQLDTS.com
I support PASS - the definitive, global community
for SQL Server professionals - http://www.sqlpass.org

<Matt Cannen> wrote

Quote:
ok when I switch to use the system startup account back to system
account the first scheduled package with run correctly. But my second
scheduled package will not. Even if I tell it to use sa I get Error
Description: ActiveX component can't create object: 'Excel.Application'
Error on Line 5. Where as when I told it to use another account it
would run fine. What am I missing in the permissions?



*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!



Reply With Quote
  #5  
Old   
Matt Cannen
 
Posts: n/a

Default Re: Scheduled Pkg - 10-09-2003 , 12:01 AM




Yes but thats not my problem as when I change the login from Sa to my
user it runs fine. It seems more like some kind of permission issue
that I dont have set correctly but I am lost on what else needs to be
updated and the microsoft article was only slightly useful.


*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!

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

Default Re: Scheduled Pkg - 10-09-2003 , 12:25 AM



If you are logged in as "sa" then the package should execute under the SQL
Server Service account.

--
--

Allan Mitchell (Microsoft SQL Server MVP)
MCSE,MCDBA
www.SQLDTS.com
I support PASS - the definitive, global community
for SQL Server professionals - http://www.sqlpass.org

<Matt Cannen> wrote

Quote:
Yes but thats not my problem as when I change the login from Sa to my
user it runs fine. It seems more like some kind of permission issue
that I dont have set correctly but I am lost on what else needs to be
updated and the microsoft article was only slightly useful.


*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!



Reply With Quote
  #7  
Old   
Matt Cannen
 
Posts: n/a

Default Re: Scheduled Pkg - 10-09-2003 , 11:24 AM




Does sa also need to be an actual windows user as well? When I try to
set SQLSERVICEAgent to use sa with the password it says it cannot be
verified.


*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!

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

Default Re: Scheduled Pkg - 10-09-2003 , 12:20 PM



The service account needs to be a domain user with the nexessary permissions
to access/use any resources in the DTS package.

--
--

Allan Mitchell (Microsoft SQL Server MVP)
MCSE,MCDBA
www.SQLDTS.com
I support PASS - the definitive, global community
for SQL Server professionals - http://www.sqlpass.org

<Matt Cannen> wrote

Quote:
Does sa also need to be an actual windows user as well? When I try to
set SQLSERVICEAgent to use sa with the password it says it cannot be
verified.


*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!



Reply With Quote
  #9  
Old   
Matt Cannen
 
Posts: n/a

Default Re: Scheduled Pkg - 10-09-2003 , 01:25 PM



ok just to clarify and I apologize ahead of time.

Do you mean the NT Authority\Service Account or the
SQL SA = Sys Admin account



*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!

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

Default Re: Scheduled Pkg - 10-09-2003 , 03:05 PM



A service account has no knowledge of and couldn't really care about SQL
Server authentication. It is only interested in domain accounts.

--
--

Allan Mitchell (Microsoft SQL Server MVP)
MCSE,MCDBA
www.SQLDTS.com
I support PASS - the definitive, global community
for SQL Server professionals - http://www.sqlpass.org

<Matt Cannen> wrote

Quote:
ok just to clarify and I apologize ahead of time.

Do you mean the NT Authority\Service Account or the
SQL SA = Sys Admin account



*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!



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.