Viewing 6 posts - 1 through 6 (of 6 total)
That's the whole point. There might not be a record at all in the source server. I think in my case, the answer is IF EXIST...THEN....ELSE, rather than Merge
Merge would...
March 18, 2014 at 10:52 pm
Hi Mitesh
There is still an issue. The script is not correct as it will perform and insert every time it is executed, along with an update if found.
Any other ideas?
Vik
March 17, 2014 at 8:45 pm
Thanks Mitesh
In my case, the LGI_GROUPID is a primary key with identity increment and therefore the code you supplied may not work. I modified my code as follows and am...
March 16, 2014 at 11:01 pm
Please bare in mind that LGI_GROUPID is a primary key in the target table and a foreign key in the source table.
March 16, 2014 at 9:34 pm
Thanks heaps guys....much appreciated
February 13, 2014 at 5:34 pm
yes...you are right
and the date column is a typo...it is actually in proper date format.
Do you have a solution?
February 13, 2014 at 12:05 am
Viewing 6 posts - 1 through 6 (of 6 total)