![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
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. |
#3
| |||
| |||
|
|
-----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. . |
#4
| |||
| |||
|
|
-----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. . . |
#5
| |||
| |||
|
|
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. . . |
![]() |
| Thread Tools | |
| Display Modes | |
| |