dbTalk Databases Forums  

DTS Hell

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


Discuss DTS Hell in the microsoft.public.sqlserver.dts forum.



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

Default DTS Hell - 08-02-2005 , 10:18 AM






I have an update statement that I run as follows from a SQL Task...

UPDATE "AS400Machine"."AS400DevLibrary"."FileName"
SET FLAG01 = 'N'

There is only ever one record on the AS400 file. I have ran this SQL
Statement from within the AS400 and it updates it fine. I run a DTS Package
to do exactly the same thing and it updates my record but mysteriously adds
another record to the file. How the interface decides to do this I cannot
find out. I have explored every avenue possible and am still no closer to a
solution.

I know I can set up globals and control them which would probably perform
well but is alot of seemingly unneccesary work and maintenance for a DTS that
is not going to grow.

Any ideas/experiences or suggestions on this are most welcome, thankyou.
marc.

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

Default Re: DTS Hell - 08-02-2005 , 02:51 PM






What do you mean it adds another row to the file?

I am not an AS400 expert but could it be something the driver is doing?

What is you take DTS out of the equation?

Can you not call something on the AS400 to do the UPDATE from DTS instead of
issuing the statement from DTS?



--



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


"marcmc" <marcmc (AT) discussions (DOT) microsoft.com> wrote

Quote:
I have an update statement that I run as follows from a SQL Task...

UPDATE "AS400Machine"."AS400DevLibrary"."FileName"
SET FLAG01 = 'N'

There is only ever one record on the AS400 file. I have ran this SQL
Statement from within the AS400 and it updates it fine. I run a DTS
Package
to do exactly the same thing and it updates my record but mysteriously
adds
another record to the file. How the interface decides to do this I cannot
find out. I have explored every avenue possible and am still no closer to
a
solution.

I know I can set up globals and control them which would probably perform
well but is alot of seemingly unneccesary work and maintenance for a DTS
that
is not going to grow.

Any ideas/experiences or suggestions on this are most welcome, thankyou.
marc.



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.