dbTalk Databases Forums  

Handling constraints in DTS packages

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


Discuss Handling constraints in DTS packages in the microsoft.public.sqlserver.dts forum.



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

Default Handling constraints in DTS packages - 07-01-2003 , 02:56 PM







DOH!! Figured it out. Hmmm... how about Save As...

There are somethings that really leave one feeling stupid.

-Joseph

Reply With Quote
  #2  
Old   
Rathtap
 
Posts: n/a

Default Re: Handling constraints in DTS packages - 07-02-2003 , 07:26 AM






Let me see if I understand you.
You suggest using DTS to move the data to a temp table.
Then I could call a stored procedure from the DTS to do validation and
to populate the 'real table'.
I suppose it would not make any difference if the source were an excel
file, would it?
"Allan Mitchell" <allan (AT) no-spam (DOT) sqldts.com> wrote

Quote:
I would not be doing this manipulation against the text file. I often, if
not always, find it easier/better to import into a working table and use
TSQL to determine the good records.

--


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

"Rathtap" <amcniw (AT) yahoo (DOT) com> wrote in message
news:b21a5958.0307011015.480b4629 (AT) posting (DOT) google.com...
I am importing data from a text file into a table. How can I prevent
unique and foreign key constraints on the table from preventing the
import? I do not want to uncheck the CheckConstraints checkBox in the
TransformdataTaskproperties.

I would ideally like the records that are causing errors to be skipped
and logged or inserted into another table but the execution should go
on.

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

Default Re: Handling constraints in DTS packages - 07-02-2003 , 01:35 PM



Not really for the MPDP.

With a text file you are limited to manipulation using an Active X transform
which operates row by row.

A BULK INSERT into a table and then use TSQL would be fastrer especially if
the recordset was large.



--


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

"Rathtap" <amcniw (AT) yahoo (DOT) com> wrote

Quote:
I have also been reading about Multiphase Data Pump Functionality --
is this something that I could possibly use here? Any samples?
"Allan Mitchell" <allan (AT) no-spam (DOT) sqldts.com> wrote

I would not be doing this manipulation against the text file. I often,
if
not always, find it easier/better to import into a working table and use
TSQL to determine the good records.

--


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

"Rathtap" <amcniw (AT) yahoo (DOT) com> wrote in message
news:b21a5958.0307011015.480b4629 (AT) posting (DOT) google.com...
I am importing data from a text file into a table. How can I prevent
unique and foreign key constraints on the table from preventing the
import? I do not want to uncheck the CheckConstraints checkBox in the
TransformdataTaskproperties.

I would ideally like the records that are causing errors to be skipped
and logged or inserted into another table but the execution should go
on.



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.