![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
New to DTS, and finding need for programmatic control of package execution. I found the DTS objects, and see the Execute on the Package object. BOL does not make clear if the package actually runs from my workstation, or from the SQL SERVER computer. I would like to understand the context of the process under which the package executes so that I know how disk file names will be resolved. I would like for packages to execute at the server. TIA - Best regards, Lee Gillie, Spokane, WA |
#3
| |||
| |||
|
|
New to DTS, and finding need for programmatic control of package execution. I found the DTS objects, and see the Execute on the Package object. BOL does not make clear if the package actually runs from my workstation, or from the SQL SERVER computer. I would like to understand the context of the process under which the package executes so that I know how disk file names will be resolved. I would like for packages to execute at the server. |
#4
| |||
| |||
|
|
Lee Gillie wrote: New to DTS, and finding need for programmatic control of package execution. I found the DTS objects, and see the Execute on the Package object. BOL does not make clear if the package actually runs from my workstation, or from the SQL SERVER computer. I would like to understand the context of the process under which the package executes so that I know how disk file names will be resolved. I would like for packages to execute at the server. IMHO the best (because easiest) solution for execute packages on a server is to create a job for them and start the job via sql-command "sp_start_job". After starting the job you can check the job-status via sql-command "sp_help_job". Another reason for me to start the DTS-packages via jobs is that jobs ALWAYS running under the account of the serveragent-service. It's very easy to start a job via ASP-Pages and so on..... There's no need for me to catch any (error)-events coming from within the package itself. Any other suggests? regards frank bremen(bextown) / germany |
#5
| |||
| |||
|
|
Lee Gillie wrote: New to DTS, and finding need for programmatic control of package execution. I found the DTS objects, and see the Execute on the Package object. BOL does not make clear if the package actually runs from my workstation, or from the SQL SERVER computer. I would like to understand the context of the process under which the package executes so that I know how disk file names will be resolved. I would like for packages to execute at the server. IMHO the best (because easiest) solution for execute packages on a server is to create a job for them and start the job via sql-command "sp_start_job". After starting the job you can check the job-status via sql-command "sp_help_job". Another reason for me to start the DTS-packages via jobs is that jobs ALWAYS running under the account of the serveragent-service. It's very easy to start a job via ASP-Pages and so on..... There's no need for me to catch any (error)-events coming from within the package itself. Any other suggests? |
#6
| |||
| |||
|
|
I think the statement "jobs ALWAYS running under the account of the serveragent-service" is wrong. From Books Online (sp_start_job)- When sp_start_job is invoked by a user who is a member of the sysadmin fixed server role, sp_start_job will be executed under the security context in which the SQL Server service is running. When the user is not a member of the sysadmin fixed server role, sp_start_job will impersonate the SQL Server Agent proxy account, which is specified using xp_sqlagent_proxy_account. |
![]() |
| Thread Tools | |
| Display Modes | |
| |