I have a situtation where I want to retrieve the server\instance name of the SSIS job is running on. I have multiple servers and instances and I want to send emails like "Failed see server\instance - job name".
Any ideas?
Thanks
There is a System variable in SSIS called MachineName that, I think, solves half of what you want.
Rafael Salas
|||Tom Phillips wrote: I can't find this anywhere in the thousands of objects in SSIS. So I thought I would ask. I have a situtation where I want to retrieve the server\instance name of the SSIS job is running on. I have multiple servers and instances and I want to send emails like "Failed see server\instance - job name".
Any ideas?
Thanks
A SSIS package does not run on a server/instance. Each execution is a standalone process (you can see it in Task Manager as dtexec.exe). There is no server component required in order to execute packages.
-Jamie
|||That is true. However the job which kicked off the SSIS package did start on a server. That is actually what I am trying to get.
Maybe I will have to pass it in the job to the SSIS package?|||
Tom Phillips wrote: Maybe I will have to pass it in the job to the SSIS package?
That might be the way to go...
Rafael Salas
|||Tom Phillips wrote: That is true. However the job which kicked off the SSIS package did start on a server. That is actually what I am trying to get. Maybe I will have to pass it in the job to the SSIS package?
OK, so the job is completely different to the package. There is no way for the SSIS package to know where it was executed from unless you explicitly tell it so yes, you will have to pass it in.
-Jamie
No comments:
Post a Comment