Solved

Copy Data Nightly?

Posted on 2008-06-25
4
243 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

Simplifying Server Workload Migrations

This use case outlines the migration challenges that organizations face and how the Acronis AnyData Engine supports physical-to-physical (P2P), physical-to-virtual (P2V), virtual to physical (V2P), and cross-virtual (V2V) migration scenarios to address these challenges.

Question has a verified solution.

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

Suggested Solutions

This article will describe one method to parse a delimited string into a table of data.   Why would I do that you ask?  Let's say that you need to pass multiple parameters into a stored procedure to search for.  For our sake, we'll say that we wa…
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…
Finding and deleting duplicate (picture) files can be a time consuming task. My wife and I, our three kids and their families all share one dilemma: Managing our pictures. Between desktops, laptops, phones, tablets, and cameras; over the last decade…

726 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