dbTalk Databases Forums  

Import Flat file Data into Sql Server with Transaction

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


Discuss Import Flat file Data into Sql Server with Transaction in the microsoft.public.sqlserver.dts forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
guna_selvas@yahoo.com
 
Posts: n/a

Default Import Flat file Data into Sql Server with Transaction - 06-06-2005 , 07:22 AM






I have a text file with 300 rows and try to transform into sql server
2000 using DTS. Suppose i got a integrity in 250 rows.
I want to roll back the inserted data.
Can any one give me suggestion.
Expecting ASAP.


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

Default Re: Import Flat file Data into Sql Server with Transaction - 06-06-2005 , 01:54 PM






If the task fails in the middle then none of the data will be inserted
so long as you have a batch and insert size of 0.

Allan

"guna_selvas (AT) yahoo (DOT) com" <guna_selvas (AT) yahoo (DOT) com> wrote


Quote:
I have a text file with 300 rows and try to transform into sql server
2000 using DTS. Suppose i got a integrity in 250 rows.
I want to roll back the inserted data.
Can any one give me suggestion.
Expecting ASAP.


Reply With Quote
  #3  
Old   
guna_selvas@yahoo.com
 
Posts: n/a

Default Re: Import Flat file Data into Sql Server with Transaction - 06-07-2005 , 01:47 AM



Thanks.
I have to validate a column in ActiveXScript
If souce value is greater than 100,
ie, DTSSource("Col005") > 100 . Then i have to insert a value
Otherwise rollback eariler insertion and skip the further processing

Note: There is no integrity check defined in a table


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

Default Re: Import Flat file Data into Sql Server with Transaction - 06-07-2005 , 12:40 PM



See my relpy to your other question about the same thing.

--



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


<guna_selvas (AT) yahoo (DOT) com> wrote

Quote:
Thanks.
I have to validate a column in ActiveXScript
If souce value is greater than 100,
ie, DTSSource("Col005") > 100 . Then i have to insert a value
Otherwise rollback eariler insertion and skip the further processing

Note: There is no integrity check defined in a table




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.