![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
I have several DTS packages scheduled as jobs in SQL Server Agent. All the DTS packages execute flawlessly when run manually. When run through the job subsystem, the DTS packages execute, but packages in which the final step is to FTP the results to another server will hang on that final step. They don't fail, they just hang. I have configured SQLServerAgent to use a domain account (the same account as SQL Server) and also have a CmdExec proxy account established (another domain account). I read through article 269074 and everything appears to be configured correctly. I also read through 283811 to make sure that the service account had all the correct permissions. I logged on to the server using the SQL Server Agent account and was able to run the FTP commands given in the DTS package, so I know that the account has permission to access and read the files. I have even added the service account as a Domain Admin just to make sure it isn't a permission issue, but the FTP step still hangs. Does anyone have any suggestions? Here is our configuration: Windows Server 2003 Enterprise, PAE enabled SQL Server 2000 Enterprise (Active-Passive Cluster) HP Netserver 6000 Intel Xeon x 6 8GB RAM Fiber-connected SAN for storage |
#3
| |||
| |||
|
|
It's not waiting for user input is it? -- 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 "Eric Laney" <Eric Laney (AT) discussions (DOT) microsoft.com> wrote in message news:3083D92C-CBEA-46AE-809D-8448F11F24CB (AT) microsoft (DOT) com... I have several DTS packages scheduled as jobs in SQL Server Agent. All the DTS packages execute flawlessly when run manually. When run through the job subsystem, the DTS packages execute, but packages in which the final step is to FTP the results to another server will hang on that final step. They don't fail, they just hang. I have configured SQLServerAgent to use a domain account (the same account as SQL Server) and also have a CmdExec proxy account established (another domain account). I read through article 269074 and everything appears to be configured correctly. I also read through 283811 to make sure that the service account had all the correct permissions. I logged on to the server using the SQL Server Agent account and was able to run the FTP commands given in the DTS package, so I know that the account has permission to access and read the files. I have even added the service account as a Domain Admin just to make sure it isn't a permission issue, but the FTP step still hangs. Does anyone have any suggestions? Here is our configuration: Windows Server 2003 Enterprise, PAE enabled SQL Server 2000 Enterprise (Active-Passive Cluster) HP Netserver 6000 Intel Xeon x 6 8GB RAM Fiber-connected SAN for storage |
#4
| |||
| |||
|
|
It's not waiting for user input is it? |
#5
| |||
| |||
|
|
"Allan Mitchell" wrote: It's not waiting for user input is it? Allan, Actually, that *was* the problem. The key to the puzzle was the combination of Windows Server 2003 when running a CMD batch file through the ActiveX Scripting step. Windows Server 2003, apparently by default, pops up a dialog box on CMD batch files. I don't have the exact text, but it's something like, "Running files of this type may be hazardous. So are those pork rinds. And that ramen noodle soup you had for lunch yesterday. Try going outside one in a while, too. Are you sure you want to run this file, loser?" The reason it didn't do this when I tested the command interactively on the server is because I started the Command Prompt session manually and then ran the CMD from there. I have now also tested this with a CMD file that I launched by double-clicking on it in Explorer and typed into Start/Run, and neither of those methods caused the dialog box to pop up. It didn't do this before when running the DTS through the Designer because we're not using Windows Server 2003 as our desktop machines and we generally don't do anything on the server that we can do somewhere else. The epiphany came when we were logged on to the server, working on the scheduled job, and went to run the package through the DTS Designer while still on the server. Up popped the dialog. We have since reworked the ActiveX Script step in the DTS packages to not use any CMD files, but to instead code the steps into the ActiveX Script step. The step now executes properly. Now I have to figure out how to remove this red mark on my forehead from banging it into the server rack. Thanks for your help, Eric |
#6
| |||
| |||
|
![]() |
| Thread Tools | |
| Display Modes | |
| |