![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
My DTS package contains Environment Variable assigned on local server. When manually run the DTS, it works fine. But when I schedule this DTS as SQL server job and run as job, I get error: "Environment Variable not found." Are there any recommendations to solve this ptoblem? Thanks in advance, -George |
#3
| |||
| |||
|
|
Is it a system variable? When scheduled you execute under the profile of the SQL Server Agent service account, so a variable in your personal profile is no good. -- Darren Green http://www.sqldts.com http://www.sqlis.com "Mike Torry" <MikeTorry (AT) discussions (DOT) microsoft.com> wrote in message news:E4F6654F-8E5A-4610-BF4D-95517C080B09 (AT) microsoft (DOT) com... My DTS package contains Environment Variable assigned on local server. When manually run the DTS, it works fine. But when I schedule this DTS as SQL server job and run as job, I get error: "Environment Variable not found." Are there any recommendations to solve this ptoblem? Thanks in advance, -George |
#4
| |||
| |||
|
|
Darren, It is system variable. SQL Agent account has 'sa' authority. Still not work. Thanks. "Darren Green" wrote: Is it a system variable? When scheduled you execute under the profile of the SQL Server Agent service account, so a variable in your personal profile is no good. -- Darren Green http://www.sqldts.com http://www.sqlis.com "Mike Torry" <MikeTorry (AT) discussions (DOT) microsoft.com> wrote in message news:E4F6654F-8E5A-4610-BF4D-95517C080B09 (AT) microsoft (DOT) com... My DTS package contains Environment Variable assigned on local server. When manually run the DTS, it works fine. But when I schedule this DTS as SQL server job and run as job, I get error: "Environment Variable not found." Are there any recommendations to solve this ptoblem? Thanks in advance, -George |
![]() |
| Thread Tools | |
| Display Modes | |
| |