Click here to Skip to main content
15,887,746 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
I have a centralized database named source in which on daily basis lakhs of records get inserted which in result making my web application slow to fetching data from it.

So to reduce the load from database i want to creating a job/Script for it which runs daily at night approx 1:00 AM which copy the source database to destination database on same server and delete all transaction records from source database for the last date.

I am not a good SQL person.. Please guide or suggest..

Many thanks in advance.

What I have tried:

I have checked online! but unable to get the right solution as many are manual operations.

I want a logical solution.
Posted
Updated 20-Mar-17 4:36am

1 solution

There is one option where you need to create one ssis package (Sql Server integration services) using script task that move files from source to destination and after that you can write your delete command.

Further you can schedule your package at certain time period.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900