dbTalk Databases Forums  

DTS paskage don't fire trigger

microsoft.public.sqlserver.dts microsoft.public.sqlserver.dts


Discuss DTS paskage don't fire trigger in the microsoft.public.sqlserver.dts forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Aleksandar Perisic
 
Posts: n/a

Default DTS paskage don't fire trigger - 09-15-2003 , 01:39 AM






Hello,
When I insert some data in table with DTS package, I get data in table but
after insert trigger don't fire.
I try insert data on some other server with same DTS package and situation
is the same.
When I made DTS package on some other server it work fine

It look like that is something wrong with package, trigger is very simple,
it OK
When I enter data form Enterprice manager or WEB interface or ... trigger
works fine
I work with MSSQL2000 sp3a and win2000 sp4

Thank you



Reply With Quote
  #2  
Old   
Allan Mitchell
 
Posts: n/a

Default Re: DTS paskage don't fire trigger - 09-15-2003 , 02:12 AM






Have you turned off FAST LOAD on the last tab of the datapump properties ?

--

----------------------------
Allan Mitchell (Microsoft SQL Server MVP)
MCSE,MCDBA
www.SQLDTS.com
I support PASS - the definitive, global community
for SQL Server professionals - http://www.sqlpass.org



"Aleksandar Perisic" <aleksandar.perisic (AT) apa (DOT) co.yu> wrote

Quote:
Hello,
When I insert some data in table with DTS package, I get data in table but
after insert trigger don't fire.
I try insert data on some other server with same DTS package and situation
is the same.
When I made DTS package on some other server it work fine

It look like that is something wrong with package, trigger is very simple,
it OK
When I enter data form Enterprice manager or WEB interface or ... trigger
works fine
I work with MSSQL2000 sp3a and win2000 sp4

Thank you





Reply With Quote
  #3  
Old   
Aleksandar Perisic
 
Posts: n/a

Default Re: DTS paskage don't fire trigger - 09-15-2003 , 05:47 AM





Yes, I turn off fast load but situation is the same.

When I search google with - "trigger not fire" sql - I get some results
where I see that someone refer on collate in problem that trriger not
fire. Is it possible

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!

Reply With Quote
  #4  
Old   
Allan Mitchell
 
Posts: n/a

Default Re: DTS paskage don't fire trigger - 09-15-2003 , 06:03 AM



Can you give me the target table def + trigger?
What is the task that you are using to insert data ?

--

----------------------------
Allan Mitchell (Microsoft SQL Server MVP)
MCSE,MCDBA
www.SQLDTS.com
I support PASS - the definitive, global community
for SQL Server professionals - http://www.sqlpass.org



"Aleksandar Perisic" <aleksandar.perisic (AT) apa (DOT) co.yu> wrote

Quote:

Yes, I turn off fast load but situation is the same.

When I search google with - "trigger not fire" sql - I get some results
where I see that someone refer on collate in problem that trriger not
fire. Is it possible

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!



Reply With Quote
  #5  
Old   
Allan Mitchell
 
Posts: n/a

Default Re: DTS paskage don't fire trigger - 09-15-2003 , 06:25 AM



Here is a quick example for what I did

CREATE TABLE SourceForTrigger(col1 int)
CREATE TABLE TriggerDestination(col1 int)
CREATE TABLE TriggerCapture(col1 int, col2 smalldatetime default getdate())
GO
CREATE TRIGGER tr_Inserts ON dbo.TriggerDestination FOR INSERT
AS
INSERT TriggerCapture(col1)
SELECT col1 FROM INSERTED
GO
INSERT SourceForTrigger(col1) VALUES(1)
INSERT SourceForTrigger(col1) VALUES(2)

--DTS Package between SourceForTrigger and TriggerDestination
--Using a DataPump task turned off Fast Load

SELECT * FROM TriggerCapture

col1 col2
1 15/09/2003 12:21:00.000
2 15/09/2003 12:21:00.000



--

----------------------------
Allan Mitchell (Microsoft SQL Server MVP)
MCSE,MCDBA
www.SQLDTS.com
I support PASS - the definitive, global community
for SQL Server professionals - http://www.sqlpass.org


Quote:

"Aleksandar Perisic" <aleksandar.perisic (AT) apa (DOT) co.yu> wrote in message
news:uzD$2a3eDHA.632 (AT) TK2MSFTNGP10 (DOT) phx.gbl...


Yes, I turn off fast load but situation is the same.

When I search google with - "trigger not fire" sql - I get some results
where I see that someone refer on collate in problem that trriger not
fire. Is it possible

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!





Reply With Quote
  #6  
Old   
Aleksandar Perisic
 
Posts: n/a

Default Re: DTS paskage don't fire trigger - 09-15-2003 , 06:54 AM



My fault!

I use to package A and B. A call B few times with different parameters.
I try to change in B everthing but trriger don't work. For this part you
now that already. But in package A, everytime when press save button on
package B, you must pick up the new version of package B. I forgot
pickup the new version of package B...

When I swich off fast load everything works fine...

THANK YOU ON YOUR TIME!

B.Sc. Perisic ALeksandar
Production Support
AD apatinska pivara
SCG

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!

Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.