Advertisement

10.30.2006 at 02:49PM PST, ID: 22043124
[x]
Attachment Details
[x]
The Solution Rating System

With so many solutions, how can you tell which solutions are most likely to help you and which ones are not? To provide you with a tool to use, we rate our solutions based on various elements that most accurately determine if a solution is a quality solution. To explain what factors affect the solution rating, here are the elements we take into consideration when formulating our solution rating.

  • The Grade of the Solution
  • The Zone Rank of the Expert Providing the Solution
  • The Number of Author and Expert Comments
  • The Number of Experts Contributing
  • The Feedback of the Community

Your Input Matters
Because of the way the system is set up, the most important variable in this equation is you. As a member of Experts Exchange, you are able to cast your vote on the quality of the solutions in regard to how complete, accurate, helpful and easy to understand each solution is. When you provide your feedback, each rating is adjusted accordingly. So, if you see a solution that has a poor rating that you think is a good solution, let us know by rating it. As you do, the rating will be adjusted and will become more accurate for other members of our site.

If you have any suggestions that you would like to make for our rating system, please ask a question in the Suggestions Zone of Community Support.

Thank you!

9.0

INSERT_UPDATE in SQL Server

Asked by trancetopia in MS SQL Server

Tags: ,

Hi experts,

i'm looking for advice on the best way to acheive the following with performance being primary goal.

I have two tables called table_import and table_live.

table_import will have over 1 million rows of data imported into it each night. This is not appended to existing data but is a new set of data.
table_live will be the data that the live application will be referrencing

each night I want to run a job that looks at the data in table_import and compare it against the data in table_live, removing data from table_live that is no longer in table_import and updating any rows in table_live that have been updated in table_import and adding new data from table_import that do not exist in table_live.

I have have been told a function exists in db2 called insert_update that acheives this using primary keys in both table.

The issue I have is that I do not have primary keys available in both table but I do have a unique column which is a telephone number in both tables.

Also, the table_live table will be in constant use so performance is a priority.

Can anyony please advise on the best method and provide example scripts to do this on SQL Server?

Thanks,
PaulStart Free Trial
[+][-]10.30.2006 at 02:54PM PST, ID: 17838173

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 14-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]10.30.2006 at 03:20PM PST, ID: 17838333

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 14-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]10.30.2006 at 03:21PM PST, ID: 17838338

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 14-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]10.30.2006 at 03:30PM PST, ID: 17838383

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 14-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]10.30.2006 at 03:31PM PST, ID: 17838391

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 14-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]10.30.2006 at 03:39PM PST, ID: 17838430

View this solution now by starting your 14-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zone: MS SQL Server
Tags: insert_update, sql
Sign Up Now!
Solution Provided By: rw3admin
Participating Experts: 2
Solution Grade: A
 
 
 
Loading Advertisement...
20081112-EE-VQP-43