Solved

Copy Data Nightly?

Posted on 2008-06-25
4
236 Views
Last Modified: 2010-04-21
Hi,

I am using SQL 2005

I have a database that contains just one table and I would like to copy the data to 3 other tables that are in different databases.   If a column gets added to the source database table AND the data has changed for example in that column, I want to ensure when the copy process starts, it either drops the table on the destination databases and then re-creates the table and pushes the data across.   How can I do this in a way that will keep my constraints and everything intact.

Say the source database has a table called "Employees".  The columns are:

employee_id
first_name
last_name

I would like to copy the schema and the data and push it to 3 other destination/target db each night at midnight.

Any help appreciated

Thanks,

-ws
0
Comment
Question by:Westside2004
  • 2
  • 2
4 Comments
 
LVL 15

Expert Comment

by:jorge_toriz
ID: 21913021
If you use the import/export wizard to generate a SSIS package, and then run this package with the sql server agent?
0
 
LVL 1

Author Comment

by:Westside2004
ID: 21930155
Hi,

How can I automate this though?

-ws
0
 
LVL 15

Accepted Solution

by:
jorge_toriz earned 500 total points
ID: 21930320
Right click in your database and then choose tasks - import/export data... this wizard will guide you to generate a SSIS package... then, IN THE WIZARD save the package in sql server.

In your sql server agent, add a job that execute this package.
0
 
LVL 1

Author Closing Comment

by:Westside2004
ID: 31470771
Thanks!
0

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

by Mark Wills Attending one of Rob Farley's seminars the other day, I heard the phrase "The Accidental DBA" and fell in love with it. It got me thinking about the plight of the newcomer to SQL Server...  So if you are the accidental DBA, or, simp…
When writing XML code a very difficult part is when we like to remove all the elements or attributes from the XML that have no data. I would like to share a set of recursive MSSQL stored procedures that I have made to remove those elements from …
This video shows how to use Hyena, from SystemTools Software, to bulk import 100 user accounts from an external text file. View in 1080p for best video quality.
In a recent question (https://www.experts-exchange.com/questions/29004105/Run-AutoHotkey-script-directly-from-Notepad.html) here at Experts Exchange, a member asked how to run an AutoHotkey script (.AHK) directly from Notepad++ (aka NPP). This video…

839 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question