dbTalk Databases Forums  

Is my DTS package failing because of a table drop?

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


Discuss Is my DTS package failing because of a table drop? in the microsoft.public.sqlserver.dts forum.



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

Default Is my DTS package failing because of a table drop? - 12-16-2008 , 09:56 AM






I have a stored procedure that drops a table if it exists, re-creates
it, and then inserts rows based upon a select query. Pretty standard
stuff. Then I have a local DTS package that exports the resultant
table to an Excel spreadsheet on a network share with "Everyone"
permissions.

The sp and the DTS package are scheduled to run every 24 hours. The
DTS package fails when run through the Enterprise Manager job
scheduler.

I can run the sp and the DTS manually, both from my computer and from
the server, with success, multiple times. I don't think permissions
are an issue but I cannot figure out why the DTS fails when run from
job scheduler.

I've tried using DELETE FROM, WHERE instead of DROP TABLE. I've tried
plain old DELETE FROM. I've even tried TRUNCATE TABLE. No matter
which method I use to clear the data from the previous 24-hour period,
the DTS package fails when run through job scheduler.

Any suggestions?

Reply With Quote
  #2  
Old   
Russell Fields
 
Posts: n/a

Default Re: Is my DTS package failing because of a table drop? - 12-18-2008 , 08:51 AM






Steven,

From your mention of Enterprise Manager, I assume that you are using SQL
Server 2000.

When you run the DTS manually, you run with your login's rights. Running a
DTS package manually says nothing about the overall security context when
scheduled through SQL Agent.

We you run DTS from a scheduled job how it runs depends on who owns the SQL
Agent job:
1 - a sysadmin - Runs as the SQL Server service account.
2 - a non-sysadmin - Runs as the SQL Agent Proxy Account.

Unless you set up a username and password in your DTS connections, you will
be running as one of those two accounts. If that is the case, particularly
for the SQL Agent Proxy account, check to see if it has the needed rights.
(Look at: xp_sqlagent_proxy_account.)

RLF

"Stevent" <steven.tadlock (AT) gmail (DOT) com> wrote

Quote:
I have a stored procedure that drops a table if it exists, re-creates
it, and then inserts rows based upon a select query. Pretty standard
stuff. Then I have a local DTS package that exports the resultant
table to an Excel spreadsheet on a network share with "Everyone"
permissions.

The sp and the DTS package are scheduled to run every 24 hours. The
DTS package fails when run through the Enterprise Manager job
scheduler.

I can run the sp and the DTS manually, both from my computer and from
the server, with success, multiple times. I don't think permissions
are an issue but I cannot figure out why the DTS fails when run from
job scheduler.

I've tried using DELETE FROM, WHERE instead of DROP TABLE. I've tried
plain old DELETE FROM. I've even tried TRUNCATE TABLE. No matter
which method I use to clear the data from the previous 24-hour period,
the DTS package fails when run through job scheduler.

Any suggestions?


Reply With Quote
  #3  
Old   
Russell Fields
 
Posts: n/a

Default Re: Is my DTS package failing because of a table drop? - 12-18-2008 , 08:51 AM



Steven,

From your mention of Enterprise Manager, I assume that you are using SQL
Server 2000.

When you run the DTS manually, you run with your login's rights. Running a
DTS package manually says nothing about the overall security context when
scheduled through SQL Agent.

We you run DTS from a scheduled job how it runs depends on who owns the SQL
Agent job:
1 - a sysadmin - Runs as the SQL Server service account.
2 - a non-sysadmin - Runs as the SQL Agent Proxy Account.

Unless you set up a username and password in your DTS connections, you will
be running as one of those two accounts. If that is the case, particularly
for the SQL Agent Proxy account, check to see if it has the needed rights.
(Look at: xp_sqlagent_proxy_account.)

RLF

"Stevent" <steven.tadlock (AT) gmail (DOT) com> wrote

Quote:
I have a stored procedure that drops a table if it exists, re-creates
it, and then inserts rows based upon a select query. Pretty standard
stuff. Then I have a local DTS package that exports the resultant
table to an Excel spreadsheet on a network share with "Everyone"
permissions.

The sp and the DTS package are scheduled to run every 24 hours. The
DTS package fails when run through the Enterprise Manager job
scheduler.

I can run the sp and the DTS manually, both from my computer and from
the server, with success, multiple times. I don't think permissions
are an issue but I cannot figure out why the DTS fails when run from
job scheduler.

I've tried using DELETE FROM, WHERE instead of DROP TABLE. I've tried
plain old DELETE FROM. I've even tried TRUNCATE TABLE. No matter
which method I use to clear the data from the previous 24-hour period,
the DTS package fails when run through job scheduler.

Any suggestions?


Reply With Quote
  #4  
Old   
Russell Fields
 
Posts: n/a

Default Re: Is my DTS package failing because of a table drop? - 12-18-2008 , 08:51 AM



Steven,

From your mention of Enterprise Manager, I assume that you are using SQL
Server 2000.

When you run the DTS manually, you run with your login's rights. Running a
DTS package manually says nothing about the overall security context when
scheduled through SQL Agent.

We you run DTS from a scheduled job how it runs depends on who owns the SQL
Agent job:
1 - a sysadmin - Runs as the SQL Server service account.
2 - a non-sysadmin - Runs as the SQL Agent Proxy Account.

Unless you set up a username and password in your DTS connections, you will
be running as one of those two accounts. If that is the case, particularly
for the SQL Agent Proxy account, check to see if it has the needed rights.
(Look at: xp_sqlagent_proxy_account.)

RLF

"Stevent" <steven.tadlock (AT) gmail (DOT) com> wrote

Quote:
I have a stored procedure that drops a table if it exists, re-creates
it, and then inserts rows based upon a select query. Pretty standard
stuff. Then I have a local DTS package that exports the resultant
table to an Excel spreadsheet on a network share with "Everyone"
permissions.

The sp and the DTS package are scheduled to run every 24 hours. The
DTS package fails when run through the Enterprise Manager job
scheduler.

I can run the sp and the DTS manually, both from my computer and from
the server, with success, multiple times. I don't think permissions
are an issue but I cannot figure out why the DTS fails when run from
job scheduler.

I've tried using DELETE FROM, WHERE instead of DROP TABLE. I've tried
plain old DELETE FROM. I've even tried TRUNCATE TABLE. No matter
which method I use to clear the data from the previous 24-hour period,
the DTS package fails when run through job scheduler.

Any suggestions?


Reply With Quote
  #5  
Old   
Russell Fields
 
Posts: n/a

Default Re: Is my DTS package failing because of a table drop? - 12-18-2008 , 08:51 AM



Steven,

From your mention of Enterprise Manager, I assume that you are using SQL
Server 2000.

When you run the DTS manually, you run with your login's rights. Running a
DTS package manually says nothing about the overall security context when
scheduled through SQL Agent.

We you run DTS from a scheduled job how it runs depends on who owns the SQL
Agent job:
1 - a sysadmin - Runs as the SQL Server service account.
2 - a non-sysadmin - Runs as the SQL Agent Proxy Account.

Unless you set up a username and password in your DTS connections, you will
be running as one of those two accounts. If that is the case, particularly
for the SQL Agent Proxy account, check to see if it has the needed rights.
(Look at: xp_sqlagent_proxy_account.)

RLF

"Stevent" <steven.tadlock (AT) gmail (DOT) com> wrote

Quote:
I have a stored procedure that drops a table if it exists, re-creates
it, and then inserts rows based upon a select query. Pretty standard
stuff. Then I have a local DTS package that exports the resultant
table to an Excel spreadsheet on a network share with "Everyone"
permissions.

The sp and the DTS package are scheduled to run every 24 hours. The
DTS package fails when run through the Enterprise Manager job
scheduler.

I can run the sp and the DTS manually, both from my computer and from
the server, with success, multiple times. I don't think permissions
are an issue but I cannot figure out why the DTS fails when run from
job scheduler.

I've tried using DELETE FROM, WHERE instead of DROP TABLE. I've tried
plain old DELETE FROM. I've even tried TRUNCATE TABLE. No matter
which method I use to clear the data from the previous 24-hour period,
the DTS package fails when run through job scheduler.

Any suggestions?


Reply With Quote
  #6  
Old   
Russell Fields
 
Posts: n/a

Default Re: Is my DTS package failing because of a table drop? - 12-18-2008 , 08:51 AM



Steven,

From your mention of Enterprise Manager, I assume that you are using SQL
Server 2000.

When you run the DTS manually, you run with your login's rights. Running a
DTS package manually says nothing about the overall security context when
scheduled through SQL Agent.

We you run DTS from a scheduled job how it runs depends on who owns the SQL
Agent job:
1 - a sysadmin - Runs as the SQL Server service account.
2 - a non-sysadmin - Runs as the SQL Agent Proxy Account.

Unless you set up a username and password in your DTS connections, you will
be running as one of those two accounts. If that is the case, particularly
for the SQL Agent Proxy account, check to see if it has the needed rights.
(Look at: xp_sqlagent_proxy_account.)

RLF

"Stevent" <steven.tadlock (AT) gmail (DOT) com> wrote

Quote:
I have a stored procedure that drops a table if it exists, re-creates
it, and then inserts rows based upon a select query. Pretty standard
stuff. Then I have a local DTS package that exports the resultant
table to an Excel spreadsheet on a network share with "Everyone"
permissions.

The sp and the DTS package are scheduled to run every 24 hours. The
DTS package fails when run through the Enterprise Manager job
scheduler.

I can run the sp and the DTS manually, both from my computer and from
the server, with success, multiple times. I don't think permissions
are an issue but I cannot figure out why the DTS fails when run from
job scheduler.

I've tried using DELETE FROM, WHERE instead of DROP TABLE. I've tried
plain old DELETE FROM. I've even tried TRUNCATE TABLE. No matter
which method I use to clear the data from the previous 24-hour period,
the DTS package fails when run through job scheduler.

Any suggestions?


Reply With Quote
  #7  
Old   
Russell Fields
 
Posts: n/a

Default Re: Is my DTS package failing because of a table drop? - 12-18-2008 , 08:51 AM



Steven,

From your mention of Enterprise Manager, I assume that you are using SQL
Server 2000.

When you run the DTS manually, you run with your login's rights. Running a
DTS package manually says nothing about the overall security context when
scheduled through SQL Agent.

We you run DTS from a scheduled job how it runs depends on who owns the SQL
Agent job:
1 - a sysadmin - Runs as the SQL Server service account.
2 - a non-sysadmin - Runs as the SQL Agent Proxy Account.

Unless you set up a username and password in your DTS connections, you will
be running as one of those two accounts. If that is the case, particularly
for the SQL Agent Proxy account, check to see if it has the needed rights.
(Look at: xp_sqlagent_proxy_account.)

RLF

"Stevent" <steven.tadlock (AT) gmail (DOT) com> wrote

Quote:
I have a stored procedure that drops a table if it exists, re-creates
it, and then inserts rows based upon a select query. Pretty standard
stuff. Then I have a local DTS package that exports the resultant
table to an Excel spreadsheet on a network share with "Everyone"
permissions.

The sp and the DTS package are scheduled to run every 24 hours. The
DTS package fails when run through the Enterprise Manager job
scheduler.

I can run the sp and the DTS manually, both from my computer and from
the server, with success, multiple times. I don't think permissions
are an issue but I cannot figure out why the DTS fails when run from
job scheduler.

I've tried using DELETE FROM, WHERE instead of DROP TABLE. I've tried
plain old DELETE FROM. I've even tried TRUNCATE TABLE. No matter
which method I use to clear the data from the previous 24-hour period,
the DTS package fails when run through job scheduler.

Any suggestions?


Reply With Quote
  #8  
Old   
Russell Fields
 
Posts: n/a

Default Re: Is my DTS package failing because of a table drop? - 12-18-2008 , 08:51 AM



Steven,

From your mention of Enterprise Manager, I assume that you are using SQL
Server 2000.

When you run the DTS manually, you run with your login's rights. Running a
DTS package manually says nothing about the overall security context when
scheduled through SQL Agent.

We you run DTS from a scheduled job how it runs depends on who owns the SQL
Agent job:
1 - a sysadmin - Runs as the SQL Server service account.
2 - a non-sysadmin - Runs as the SQL Agent Proxy Account.

Unless you set up a username and password in your DTS connections, you will
be running as one of those two accounts. If that is the case, particularly
for the SQL Agent Proxy account, check to see if it has the needed rights.
(Look at: xp_sqlagent_proxy_account.)

RLF

"Stevent" <steven.tadlock (AT) gmail (DOT) com> wrote

Quote:
I have a stored procedure that drops a table if it exists, re-creates
it, and then inserts rows based upon a select query. Pretty standard
stuff. Then I have a local DTS package that exports the resultant
table to an Excel spreadsheet on a network share with "Everyone"
permissions.

The sp and the DTS package are scheduled to run every 24 hours. The
DTS package fails when run through the Enterprise Manager job
scheduler.

I can run the sp and the DTS manually, both from my computer and from
the server, with success, multiple times. I don't think permissions
are an issue but I cannot figure out why the DTS fails when run from
job scheduler.

I've tried using DELETE FROM, WHERE instead of DROP TABLE. I've tried
plain old DELETE FROM. I've even tried TRUNCATE TABLE. No matter
which method I use to clear the data from the previous 24-hour period,
the DTS package fails when run through job scheduler.

Any suggestions?


Reply With Quote
  #9  
Old   
Russell Fields
 
Posts: n/a

Default Re: Is my DTS package failing because of a table drop? - 12-18-2008 , 08:51 AM



Steven,

From your mention of Enterprise Manager, I assume that you are using SQL
Server 2000.

When you run the DTS manually, you run with your login's rights. Running a
DTS package manually says nothing about the overall security context when
scheduled through SQL Agent.

We you run DTS from a scheduled job how it runs depends on who owns the SQL
Agent job:
1 - a sysadmin - Runs as the SQL Server service account.
2 - a non-sysadmin - Runs as the SQL Agent Proxy Account.

Unless you set up a username and password in your DTS connections, you will
be running as one of those two accounts. If that is the case, particularly
for the SQL Agent Proxy account, check to see if it has the needed rights.
(Look at: xp_sqlagent_proxy_account.)

RLF

"Stevent" <steven.tadlock (AT) gmail (DOT) com> wrote

Quote:
I have a stored procedure that drops a table if it exists, re-creates
it, and then inserts rows based upon a select query. Pretty standard
stuff. Then I have a local DTS package that exports the resultant
table to an Excel spreadsheet on a network share with "Everyone"
permissions.

The sp and the DTS package are scheduled to run every 24 hours. The
DTS package fails when run through the Enterprise Manager job
scheduler.

I can run the sp and the DTS manually, both from my computer and from
the server, with success, multiple times. I don't think permissions
are an issue but I cannot figure out why the DTS fails when run from
job scheduler.

I've tried using DELETE FROM, WHERE instead of DROP TABLE. I've tried
plain old DELETE FROM. I've even tried TRUNCATE TABLE. No matter
which method I use to clear the data from the previous 24-hour period,
the DTS package fails when run through job scheduler.

Any suggestions?


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.