SQL Server Forums
Profile | Register | Active Topics | Members | Search | Forum FAQ
Register Now and get your question answered!
Save Password
Forgot your Password?

 All Forums
 SQL Server 2008 Forums
 Transact-SQL (2008)
 T-sql help
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

Yak Posting Veteran

62 Posts

Posted - 04/17/2013 :  19:39:25  Show Profile  Reply with Quote
I have a table on a datawarehouse server containing Server, Application etc.. information,
and I would like to have a query that updates that table from the live version of the table.
However, there are a lot of records, so I don't want to truncate and re-populate that data each time. I would like to insert a
ny new records and update only records that have changed....

for example...

Table has one million records containg server, application and some other columns with respective these columns.

Every month new Servers and Application's are added to the table. So, Ineed to update the columns only for these servers.

The Chadinator

1974 Posts

Posted - 04/17/2013 :  19:44:57  Show Profile  Visit chadmat's Homepage  Reply with Quote
Sounds like you want a merge statement.

Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
SQL Server Forums © 2000-2009 SQLTeam Publishing, LLC Go To Top Of Page
This page was generated in 0.03 seconds. Powered By: Snitz Forums 2000