Please start any new threads on our new site at We've got lots of great SQL Server experts to answer whatever question you can come up with.

Our new SQL Server Forums are live! Come on over! We've restricted the ability to create new threads on these forums.

SQL Server Forums
Profile | Active Topics | Members | Search | Forum FAQ
Save Password
Forgot your Password?

 All Forums
 SQL Server 2008 Forums
 Transact-SQL (2008)
 T-sql help
 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  
 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.02 seconds. Powered By: Snitz Forums 2000