dbTalk Databases Forums  

importing using DTS

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


Discuss importing using DTS in the microsoft.public.sqlserver.dts forum.



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

Default importing using DTS - 09-23-2004 , 02:18 PM






I currently run a DTS packages to import data from an SQL
server into an excel worksheet. It is set up to run the
data every night, but the problem I'm having is that it is
importing the entire table each time it runs and I only
want new records. Please advise.

Reply With Quote
  #2  
Old   
Peter A. Schott
 
Posts: n/a

Default Re: importing using DTS - 09-23-2004 , 03:47 PM






Sounds like you have a spreadsheet that is being appended to. If that's the
case, you'll need to import into a working table and only grab new rows from
there.

-Pete

"Pam" <pcoleman (AT) police (DOT) nashville.org> wrote:

Quote:
I currently run a DTS packages to import data from an SQL
server into an excel worksheet. It is set up to run the
data every night, but the problem I'm having is that it is
importing the entire table each time it runs and I only
want new records. Please advise.


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

Default importing using DTS - 09-24-2004 , 04:32 AM



You will need to be able to identify these new rows.
I presume you can do that with the key values.
What about changed rows?

You have a number of choices.

1. Use a linked server to the spreadsheet and query that
as you would a normal table comparing against key values
in the SQL Server

2. Import the spredsheet into a staging table and then
use TSQL to do the comparisons sending the differences
back to Excel (Horribly messy)




Quote:
-----Original Message-----
I currently run a DTS packages to import data from an SQL
server into an excel worksheet. It is set up to run the
data every night, but the problem I'm having is that it
is
importing the entire table each time it runs and I only
want new records. Please advise.
.


Reply With Quote
  #4  
Old   
Pam
 
Posts: n/a

Default importing using DTS - 09-24-2004 , 07:29 AM



Will this append the new records to the existing?
Quote:
-----Original Message-----
You will need to be able to identify these new rows.
I presume you can do that with the key values.
What about changed rows?

You have a number of choices.

1. Use a linked server to the spreadsheet and query that
as you would a normal table comparing against key values
in the SQL Server

2. Import the spredsheet into a staging table and then
use TSQL to do the comparisons sending the differences
back to Excel (Horribly messy)




-----Original Message-----
I currently run a DTS packages to import data from an
SQL
server into an excel worksheet. It is set up to run the
data every night, but the problem I'm having is that it
is
importing the entire table each time it runs and I only
want new records. Please advise.
.

.


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

Default RE: importing using DTS - 09-24-2004 , 08:03 AM



Please do not carry on the same subject in multiple threads. i have answered
your Q in the other thread titled "Import to Excel using DTS"

"Pam" wrote:

Quote:
Will this append the new records to the existing?
-----Original Message-----
You will need to be able to identify these new rows.
I presume you can do that with the key values.
What about changed rows?

You have a number of choices.

1. Use a linked server to the spreadsheet and query that
as you would a normal table comparing against key values
in the SQL Server

2. Import the spredsheet into a staging table and then
use TSQL to do the comparisons sending the differences
back to Excel (Horribly messy)




-----Original Message-----
I currently run a DTS packages to import data from an
SQL
server into an excel worksheet. It is set up to run the
data every night, but the problem I'm having is that it
is
importing the entire table each time it runs and I only
want new records. Please advise.
.

.



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.