dbTalk Databases Forums  

Re: DTS text file import

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


Discuss Re: DTS text file import in the microsoft.public.sqlserver.dts forum.



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

Default Re: DTS text file import - 08-18-2003 , 10:24 PM






One option would be to import the file into a staging table
and then just use an execute SQL task and write the query
using the Exists keyword. You can find documentation and
examples on using Exists in books online.

-Sue

On Mon, 18 Aug 2003 13:39:33 -0700, "wd1153"
<weimindai (AT) hotmail (DOT) com> wrote:

Quote:
hi, all

Is there any code I can use for the following purpose:

-- transferring a text file to an existing database
-- the text file may contains keys that alreay exists in
the database. If this is the case, then update the
database with the value in new textfile.

Someone once told me not to set key in the table, but set
index instead. That way, during the importing, the
duplicated tuple will be ignored for importing instead of
failing the process. While it is working, but is not what
I really looking for. Thanks


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.