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.

 All Forums
 General SQL Server Forums
 New to SQL Server Programming
 How to copy data from local to remote server

Author  Topic 

chandran.nr
Starting Member

4 Posts

Posted - 2013-06-07 : 06:40:58
Hi

I am having local server and remote server.

In the local server ,i have database table which is inserted,updated regularly.There is no primary key in the table

.Once in a week i want to copy the differential data to be updated in table of remote server.

Both table structures are same.

Please help me to find the solution.

Thanks

Chandran.

ditch
Master Smack Fu Yak Hacker

1466 Posts

Posted - 2013-06-07 : 06:43:14
Is there a way of uniquely identifying each record, so that you know which are new and which aren't?
Do the records have a timestamp so that we know when they were created?
If the table is not too big you can just do a full reload.


Duane.
Go to Top of Page

chandran.nr
Starting Member

4 Posts

Posted - 2013-06-07 : 06:48:49
There is no unique id or primary key.timestamp is fine,but it is difficult to find out which row should be updated and which one is to inserted newly using timestamp
Thanks
chandran.
Go to Top of Page

ditch
Master Smack Fu Yak Hacker

1466 Posts

Posted - 2013-06-07 : 06:50:41
Then I would suggest adding a Primary key.

Duane.
Go to Top of Page

visakh16
Very Important crosS Applying yaK Herder

52326 Posts

Posted - 2013-06-07 : 06:57:32
quote:
Originally posted by chandran.nr

There is no unique id or primary key.timestamp is fine,but it is difficult to find out which row should be updated and which one is to inserted newly using timestamp
Thanks
chandran.


Is there atleast set of columns using which you can determine a row unqiuely?

------------------------------------------------------------------------------------------------------
SQL Server MVP
http://visakhm.blogspot.com/
https://www.facebook.com/VmBlogs
Go to Top of Page
   

- Advertisement -