![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
I'm using SQL Server 2000 SP4 and am trying to execute a DTS package using the DTSRUN utility using the "AT" scheduling command in Windows Server 2003. Unfortunately, the job fails and the reason is because the package is being executed by user SYSTEM. I can tell this by the log file. I've read Microsoft article 269074, but this does not quite apply because I actually *can* get the package to run both interactively and as a scheduled job *within* SQL. The problem appears to be with scheduling this in the O.S. This used to work under Windows Server 2000. Any ideas? |
#3
| |||
| |||
|
|
In message <09D29E60-1FDD-42FE-83CC-0C98C8E10B0A (AT) microsoft (DOT) com>, Bill Bill (AT) discussions (DOT) microsoft.com> writes I'm using SQL Server 2000 SP4 and am trying to execute a DTS package using the DTSRUN utility using the "AT" scheduling command in Windows Server 2003. Unfortunately, the job fails and the reason is because the package is being executed by user SYSTEM. I can tell this by the log file. I've read Microsoft article 269074, but this does not quite apply because I actually *can* get the package to run both interactively and as a scheduled job *within* SQL. The problem appears to be with scheduling this in the O.S. This used to work under Windows Server 2000. Any ideas? You may be able to run the package interactively, and under the SQL Agent service account, but are either of these SYSTEM? If not then you have not tested it yet, as the account is very important. Why not use the Windows Scheduler service ( is this base don AT, I thought it was), but the key point is the GUI allows you to specify an account to use. To be honest why use AT when SQL Agent does a better job anyway. -- Darren Green (SQL Server MVP) DTS - http://www.sqldts.com PASS - the definitive, global community for SQL Server professionals http://www.sqlpass.org |
#4
| |||
| |||
|
|
In message <09D29E60-1FDD-42FE-83CC-0C98C8E10B0A (AT) microsoft (DOT) com>, Bill Bill (AT) discussions (DOT) microsoft.com> writes I'm using SQL Server 2000 SP4 and am trying to execute a DTS package using the DTSRUN utility using the "AT" scheduling command in Windows Server 2003. Unfortunately, the job fails and the reason is because the package is being executed by user SYSTEM. I can tell this by the log file. I've read Microsoft article 269074, but this does not quite apply because I actually *can* get the package to run both interactively and as a scheduled job *within* SQL. The problem appears to be with scheduling this in the O.S. This used to work under Windows Server 2000. Any ideas? You may be able to run the package interactively, and under the SQL Agent service account, but are either of these SYSTEM? If not then you have not tested it yet, as the account is very important. Why not use the Windows Scheduler service ( is this base don AT, I thought it was), but the key point is the GUI allows you to specify an account to use. To be honest why use AT when SQL Agent does a better job anyway. -- Darren Green (SQL Server MVP) DTS - http://www.sqldts.com PASS - the definitive, global community for SQL Server professionals http://www.sqlpass.org |
#5
| |||
| |||
|
|
For those browsing these messages, I ended up solving this one by setting the sql agent proxy account. You can use xp_sqlagent_proxy_account or set it within EM. "Darren Green" wrote: In message <09D29E60-1FDD-42FE-83CC-0C98C8E10B0A (AT) microsoft (DOT) com>, Bill Bill (AT) discussions (DOT) microsoft.com> writes I'm using SQL Server 2000 SP4 and am trying to execute a DTS package using the DTSRUN utility using the "AT" scheduling command in Windows Server 2003. Unfortunately, the job fails and the reason is because the package is being executed by user SYSTEM. I can tell this by the log file. I've read Microsoft article 269074, but this does not quite apply because I actually *can* get the package to run both interactively and as a scheduled job *within* SQL. The problem appears to be with scheduling this in the O.S. This used to work under Windows Server 2000. Any ideas? You may be able to run the package interactively, and under the SQL Agent service account, but are either of these SYSTEM? If not then you have not tested it yet, as the account is very important. Why not use the Windows Scheduler service ( is this base don AT, I thought it was), but the key point is the GUI allows you to specify an account to use. To be honest why use AT when SQL Agent does a better job anyway. -- Darren Green (SQL Server MVP) DTS - http://www.sqldts.com PASS - the definitive, global community for SQL Server professionals http://www.sqlpass.org |
#6
| |||
| |||
|
|
Rather that using AT to get the asynch behaviour you want, two other choices would be- Use the "start" command, as by default this is asynch. Create a job, start that job. Jobs can be set to clean up after themselves. This also means you can set a job step file to capture output, and the job does not delete itself when it fails so the job and log is then available for investigation when you have a fail. Darren In message <E7E8FCF8-EF01-4C2F-8CF9-796FC0299B3E (AT) microsoft (DOT) com>, Bill Bill (AT) discussions (DOT) microsoft.com> writes For those browsing these messages, I ended up solving this one by setting the sql agent proxy account. You can use xp_sqlagent_proxy_account or set it within EM. "Darren Green" wrote: In message <09D29E60-1FDD-42FE-83CC-0C98C8E10B0A (AT) microsoft (DOT) com>, Bill Bill (AT) discussions (DOT) microsoft.com> writes I'm using SQL Server 2000 SP4 and am trying to execute a DTS package using the DTSRUN utility using the "AT" scheduling command in Windows Server 2003. Unfortunately, the job fails and the reason is because the package is being executed by user SYSTEM. I can tell this by the log file. I've read Microsoft article 269074, but this does not quite apply because I actually *can* get the package to run both interactively and as a scheduled job *within* SQL. The problem appears to be with scheduling this in the O.S. This used to work under Windows Server 2000. Any ideas? You may be able to run the package interactively, and under the SQL Agent service account, but are either of these SYSTEM? If not then you have not tested it yet, as the account is very important. Why not use the Windows Scheduler service ( is this base don AT, I thought it was), but the key point is the GUI allows you to specify an account to use. To be honest why use AT when SQL Agent does a better job anyway. -- Darren Green (SQL Server MVP) DTS - http://www.sqldts.com PASS - the definitive, global community for SQL Server professionals http://www.sqlpass.org -- Darren Green (SQL Server MVP) DTS - http://www.sqldts.com PASS - the definitive, global community for SQL Server professionals http://www.sqlpass.org |
![]() |
| Thread Tools | |
| Display Modes | |
| |