| Author |
Message |
rainmanjam
Joined: 21 Feb 2011 Posts: 1
|
Posted: Mon Feb 21, 2011 8:34 pm Post subject: Syncing table between two different databases with a twist |
|
|
Hopefully I can explain this correctly.
I am currently using MSSQL 2008 and I have two databases with 2 tables. In DB1, Table 1 has a username and a UserID. Table 2 has a GUID and a UserID. The UserID in table 2 is added to show which user added the row. I have migrated tables 1 and 2 from DB1 to DB2 but the UserID from Table 1 in DB2 is different from DB1. I want to keep the UserID and match up the users from DB1 into DB2 correctly to match up with table 2 in DB2. The UserID in Table 2 in DB2 should change. Is there an easy way of doing this? |
|
| Back to top |
|
 |
james.billings
Joined: 16 Jun 2010 Posts: 844 Location: My desk.
|
Posted: Tue Feb 22, 2011 9:34 pm Post subject: |
|
|
| Thanks for your post. I'm not sure you'll easily be able to do what you want. It sounds like you're talking about merging data, and we have a document detailing "best practices" on this, [url=http://www.red-gate.com/supportcenter/Content?c=knowledgebase%5cSQL_Data_Compare%5cKB200804000239.htm&p=SQL Data Compare]here[/url] but it's quite geared towards designing things a certain way before you start using Compare- but see if it helps. |
|
| Back to top |
|
 |
|
|
All times are GMT + 1 Hour
|
| Page 1 of 1 |
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group