Data load from SQL - keep data in the table removed from SQL

Simebaby

New Member
Joined
Dec 8, 2009
Messages
11
Hi All
I'm loading data from a SQL Server DB into a table.
All good but the source data is a rolling log, so the earliest entries are removed as new ones are added.
I'd like the Excel data to *keep* the existing rows but add any new ones - is this possible?
I've tried playing with the connection properties but it always dumps the existing data and repopulates, no matter the setting.
TIA
Si
 

Excel Facts

Why does 9 mean SUM in SUBTOTAL?
It is because Sum is the 9th alphabetically in Average, Count, CountA, Max, Min, Product, StDev.S, StDev.P, Sum, VAR.S, VAR.P.
You could set up a separate sheet and copy the data across. Then just copy new data to the end.
 
Upvote 0
OK. Assuming the log has some unique column or combination of columns, that should be an easy task. Let me know if you would like me to knock something up for you - just tell me the column(s) that provide a unique value.
 
Upvote 0
OK. Assuming the log has some unique column or combination of columns, that should be an easy task. Let me know if you would like me to knock something up for you - just tell me the column(s) that provide a unique value.
Hi there - that would be great! Sorry for the huge delay.
As an example, a combination of date-time-analyst (3 columns) would give a unique value.
 
Upvote 0

Forum statistics

Threads
1,215,578
Messages
6,125,642
Members
449,245
Latest member
PatrickL

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top