﻿<?xml version='1.0' encoding='UTF-8'?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/"><channel><title>SQLServerCentral / SQL Server 2005 / Business Intelligence  / Data update from one database to another database (Insert and Update both) / Latest Posts</title><generator>InstantForum.NET v2.9.0</generator><description>SQLServerCentral</description><link>http://www.sqlservercentral.com/Forums/</link><webMaster>notifications@sqlservercentral.com</webMaster><lastBuildDate>Fri, 24 May 2013 10:54:57 GMT</lastBuildDate><ttl>20</ttl><item><title>RE: Data update from one database to another database (Insert and Update both)</title><link>http://www.sqlservercentral.com/Forums/Topic1399853-147-1.aspx</link><description>Have you considered replication?  That might be an option.</description><pubDate>Mon, 31 Dec 2012 09:10:44 GMT</pubDate><dc:creator>HildaJ</dc:creator></item><item><title>RE: Data update from one database to another database (Insert and Update both)</title><link>http://www.sqlservercentral.com/Forums/Topic1399853-147-1.aspx</link><description>Since you just want to duplicate the table, you might find it quicker and simpler to just bulk reload the entire table, depending on data volume.</description><pubDate>Sun, 30 Dec 2012 18:44:28 GMT</pubDate><dc:creator>nick.mcdermaid</dc:creator></item><item><title>RE: Data update from one database to another database (Insert and Update both)</title><link>http://www.sqlservercentral.com/Forums/Topic1399853-147-1.aspx</link><description>Thanks a lot.</description><pubDate>Wed, 26 Dec 2012 08:45:36 GMT</pubDate><dc:creator>sumit.joshij</dc:creator></item><item><title>RE: Data update from one database to another database (Insert and Update both)</title><link>http://www.sqlservercentral.com/Forums/Topic1399853-147-1.aspx</link><description>[quote][b]Daniel Bowlin (12/24/2012)[/b][hr]This is pretty straight forward in SSISIn a dataflow, -create a source from your prod server.-Lookup records on your dev server.  In SQL Server 2005 I believe you have to set it to ignore the failure-Create a conditional split that compares the value in your source (prod) to the value you target (dev)-In the split where they match send the data to a staging table-In the split where they don't match send the data to be inserted to your target.After the data flow runs, build an Execute SQL Task that takes the matched data from your staging table and updated the target (dev) data.[/quote]A couple of revisionsIn the no match, that actually would get sent to an update process, not insertThere should be a null in some of your lookup values, the nulls would be the new records that should be inserted.</description><pubDate>Wed, 26 Dec 2012 07:45:01 GMT</pubDate><dc:creator>Daniel Bowlin</dc:creator></item><item><title>RE: Data update from one database to another database (Insert and Update both)</title><link>http://www.sqlservercentral.com/Forums/Topic1399853-147-1.aspx</link><description>thanks. its working in some of my test sample data.</description><pubDate>Mon, 24 Dec 2012 09:46:58 GMT</pubDate><dc:creator>sumit.joshij</dc:creator></item><item><title>RE: Data update from one database to another database (Insert and Update both)</title><link>http://www.sqlservercentral.com/Forums/Topic1399853-147-1.aspx</link><description>This is pretty straight forward in SSISIn a dataflow, -create a source from your prod server.-Lookup records on your dev server.  In SQL Server 2005 I believe you have to set it to ignore the failure-Create a conditional split that compares the value in your source (prod) to the value you target (dev)-In the split where they match send the data to a staging table-In the split where they don't match send the data to be inserted to your target.After the data flow runs, build an Execute SQL Task that takes the matched data from your staging table and updated the target (dev) data.</description><pubDate>Mon, 24 Dec 2012 06:33:39 GMT</pubDate><dc:creator>Daniel Bowlin</dc:creator></item><item><title>Data update from one database to another database (Insert and Update both)</title><link>http://www.sqlservercentral.com/Forums/Topic1399853-147-1.aspx</link><description>Hi,I have 2 database tables.1) From Production2) From Dev.The task is to move the data from Production to Dev Server. But the issues is that when the [i][b]data is already exist[/b][/i] then it will [b][u]update[/u][/b] else if [i]n[b]o record exist[/b][/i] in Dev Server then it will [b][u]insert[/u][/b].Existence of Data is checked through one column.please respond asap if you have any good solution.</description><pubDate>Mon, 24 Dec 2012 03:13:39 GMT</pubDate><dc:creator>sumit.joshij</dc:creator></item></channel></rss>