![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
I need any script suggestion to use in my stored_procedure_load. Looking to load only the new data into staging tables since last_load_date. I wish to enter the last_load_date information into a table on each succesful load...and use the last_load_date info. in my query. eg. SELECT a,b,c,d FROM dbo.customer WHERE BETWEEN last_load_date AND getdate() |
#3
| |||
| |||
|
|
Store the load dates in a seperate table. At the end of the load you can enter the new load date into this table. In your query to decide which data to take you can do SELECT ..................... FROM ................... WHERE DataDate Getween Getdate() AND (SELECT MAX(Load_Date) FROM LoadTable) -- Allan Mitchell MCSE,MCDBA, (Microsoft SQL Server MVP) www.SQLDTS.com - The site for all your DTS needs. www.Konesans.com "baaul" <baaul (AT) discussions (DOT) microsoft.com> wrote in message news:251E316E-8A30-4E40-BFDB-1A7B94E476F4 (AT) microsoft (DOT) com... I need any script suggestion to use in my stored_procedure_load. Looking to load only the new data into staging tables since last_load_date. I wish to enter the last_load_date information into a table on each succesful load...and use the last_load_date info. in my query. eg. SELECT a,b,c,d FROM dbo.customer WHERE BETWEEN last_load_date AND getdate() |
![]() |
| Thread Tools | |
| Display Modes | |
| |