Please start any new threads on our new
site at https://forums.sqlteam.com. We've got lots of great SQL Server
experts to answer whatever question you can come up with.
Author |
Topic |
CSK
Constraint Violating Yak Guru
489 Posts |
Posted - 2006-11-27 : 01:13:25
|
Dear All,I have two database servers 1 SQL server2.Oracle ServerI have connected the Orcle Server in SQl Server.Now I need to do the followingI want to compare the data in sql server table from Oracle server table. If Not Exists I want to insert the records otherwise will leave it. I want to schedule the things dailyHow can i do this..?Can any one able to help me..? PLease.Thanks and regardsKrishnakumar.C |
|
SwePeso
Patron Saint of Lost Yaks
30421 Posts |
Posted - 2006-11-27 : 01:23:41
|
Just the same way as you do internal in SQL Serverinsert into orac.mytableselect ms.col1, ms.col2from mssql.mytable msleft join orac.mytable as om on.colpk = ms.colpkwhere orac.colpk is nullPeter LarssonHelsingborg, Sweden |
 |
|
CSK
Constraint Violating Yak Guru
489 Posts |
Posted - 2006-11-27 : 01:27:56
|
Thnaks for your Suggession Peter I will Let u Know Thanks and regardsKrishna |
 |
|
madhivanan
Premature Yak Congratulator
22864 Posts |
Posted - 2006-11-27 : 07:36:15
|
Using linked server copy data to sql server then do comparison and insertionMadhivananFailing to plan is Planning to fail |
 |
|
|
|
|