dbTalk Databases Forums  

Confusion for loading data

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


Discuss Confusion for loading data in the microsoft.public.sqlserver.dts forum.



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

Default Confusion for loading data - 07-26-2004 , 11:29 PM






Hi,
I am building in a data mart using SQL server DTS. I have
confusion that

Example

Suppose we have text file for Cust table. It has 3
customers
A,
B,
C
This information comes in text file from legacy system.
We load this data in cust table in staging.

Now we get a new text file with 5 customers i.e
A,
B,
C,
D,
E.

What query shall I write to include the 2 new customers
i.e D & E in my Staging Table. How will I refer to text
file. Meaning that

select new_customers
from text file (what shall I write here to refer my text
file).

Or how is done.

If some one can solve this simple puzzle it will be great
help.

Thanks

Steve

Reply With Quote
  #2  
Old   
 
Posts: n/a

Default Confusion for loading data - 07-27-2004 , 02:40 AM






Hi,
easiest way is just delete old table and then load all.
I think you have every customer in text file not just new
ones. if you have only new customer you could use append
of course.
rgds
Kari


Quote:
-----Original Message-----
Hi,
I am building in a data mart using SQL server DTS. I
have
confusion that

Example

Suppose we have text file for Cust table. It has 3
customers
A,
B,
C
This information comes in text file from legacy
system.
We load this data in cust table in staging.

Now we get a new text file with 5 customers i.e
A,
B,
C,
D,
E.

What query shall I write to include the 2 new customers
i.e D & E in my Staging Table. How will I refer to text
file. Meaning that

select new_customers
from text file (what shall I write here to refer my text
file).

Or how is done.

If some one can solve this simple puzzle it will be
great
help.

Thanks

Steve
.


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.