|
|
|
Ten Centuries
      
Group: General Forum Members
Last Login: Yesterday @ 12:37 AM
Points: 1,047,
Visits: 1,439
|
|
Eugene Elutin (10/18/2012) Did your "above you" insisted that you should use trigger to execute XP_CMDSHELL? Or they just told you that SSIS should start as soon as records inserted? I would not definitely, under any circumstances, call xp_cmdsheel from a trigger - just NEVER. You may try to create scheduled task and use msdb.dbo.sp_start_job to start it from the trigger, that may be a bit better... Also you can use Service Broker.
Hi Eugene,
The "above me" above me asked me to call the SSIS package from a Trigger without making the package a part of a job. So I was pretty much left with Xp_cmdshell. Any other suggestions of doing it are very welcome. Thanks for ur time.
Vinu Vijayan
For better and faster solutions please check..."How to post data/code on a forum to get the best help" - Jeff Moden
|
|
|
|
|
SSCoach
         
Group: General Forum Members
Last Login: Monday, May 06, 2013 1:09 PM
Points: 15,439,
Visits: 9,569
|
|
vinu512 (10/18/2012)
Eugene Elutin (10/18/2012) Did your "above you" insisted that you should use trigger to execute XP_CMDSHELL? Or they just told you that SSIS should start as soon as records inserted? I would not definitely, under any circumstances, call xp_cmdsheel from a trigger - just NEVER. You may try to create scheduled task and use msdb.dbo.sp_start_job to start it from the trigger, that may be a bit better... Also you can use Service Broker.
Hi Eugene, The "above me" above me asked me to call the SSIS package from a Trigger without making the package a part of a job. So I was pretty much left with Xp_cmdshell. Any other suggestions of doing it are very welcome. Thanks for ur time.
You could do a CLR trigger, if the server/database allows that. It's an option, but I don't know that it's actually any better.
- Gus "GSquared", RSVP, OODA, MAP, NMVP, FAQ, SAT, SQL, DNA, RNA, UOI, IOU, AM, PM, AD, BC, BCE, USA, UN, CF, ROFL, LOL, ETC Property of The Thread
"Nobody knows the age of the human race, but everyone agrees it's old enough to know better." - Anon
|
|
|
|
|
Ten Centuries
      
Group: General Forum Members
Last Login: Yesterday @ 12:37 AM
Points: 1,047,
Visits: 1,439
|
|
I really don't know a lot about CLR. And I think if I start now then it would be really time consuming. So, I'd rather stick to solving this problem the way it is for right now. I'll give CLR Triggers some time after I'm finished with the task at hand.
So, please guys.....any other suggestions of how I could get this to work??
Vinu Vijayan
For better and faster solutions please check..."How to post data/code on a forum to get the best help" - Jeff Moden
|
|
|
|
|
SSCoach
         
Group: General Forum Members
Last Login: Monday, May 06, 2013 1:09 PM
Points: 15,439,
Visits: 9,569
|
|
vinu512 (10/19/2012) I really don't know a lot about CLR. And I think if I start now then it would be really time consuming. So, I'd rather stick to solving this problem the way it is for right now. I'll give CLR Triggers some time after I'm finished with the task at hand.
So, please guys.....any other suggestions of how I could get this to work??
Add logging to the SSIS package. See where it gets to, or if it even starts, when fired from the trigger. When you find that out, you'll have a better idea of what needs to be fixed/modified.
- Gus "GSquared", RSVP, OODA, MAP, NMVP, FAQ, SAT, SQL, DNA, RNA, UOI, IOU, AM, PM, AD, BC, BCE, USA, UN, CF, ROFL, LOL, ETC Property of The Thread
"Nobody knows the age of the human race, but everyone agrees it's old enough to know better." - Anon
|
|
|
|
|
Ten Centuries
      
Group: General Forum Members
Last Login: Yesterday @ 12:37 AM
Points: 1,047,
Visits: 1,439
|
|
|
|
|
|
SSCrazy
      
Group: General Forum Members
Last Login: Tuesday, March 26, 2013 8:41 AM
Points: 2,562,
Visits: 3,451
|
|
vinu512 (10/19/2012)
So, please guys.....any other suggestions of how I could get this to work??for the time begin you can test the SSIS package manually . see if it get blocking only by trigger call or not ? additionally i will say if you can make the ssis's stuff asynchrous then try to use service broker. SSIS call within the trigger will be cumbersome sooner or later you need to change this approach
-------Bhuvnesh---------- While 1 = 1 (Learning SQL....) Click to get fast response of your post
|
|
|
|