dbTalk Databases Forums  

Integrity Check using DTS

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


Discuss Integrity Check using DTS in the microsoft.public.sqlserver.dts forum.



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

Default Integrity Check using DTS - 06-07-2005 , 01:55 AM






I have text file as source and destination will be sql server.
I have a check a source column satisfied the given condition
ie.,DTSSource("Col005") > 100.If satisfied i have to insert that row
other wise rollback the earlier insertion and skip the further
processing.

Note: Check constraint is not defined in the table


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

Default Re: Integrity Check using DTS - 06-07-2005 , 12:39 PM






What earlier insertion ?

Are you saying you only want to insert rows where the fifth column value is
Quote:
100?

Personally I would import the whole file into a staging table and then use
TSQL to do the inserts.


--



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:
I have text file as source and destination will be sql server.
I have a check a source column satisfied the given condition
ie.,DTSSource("Col005") > 100.If satisfied i have to insert that row
other wise rollback the earlier insertion and skip the further
processing.

Note: Check constraint is not defined in the 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.