insert data between SQL servers

Reply

Join Date: Apr 2008
Posts: 4
Reputation: kbrown123 is an unknown quantity at this point 
Solved Threads: 0
kbrown123 kbrown123 is offline Offline
Newbie Poster

insert data between SQL servers

 
0
  #1
Apr 18th, 2008
I have production data on one server and test data on another. I need to move one record from the production server into the test table on a different server. I setup the production server as a linked server one the test box. I can read/select fine, but when I try to insert I get an error. Is there additional setup I am missing?

  1. INSERT INTO testdta.f4801 SELECT * FROM OPENQUERY(jdeprod, 'SELECT * FROM proddta.f4801 where wadoco=3037086')

  1. Server: Msg 7391, Level 16, State 1, Line 1
  2. The operation could NOT be performed because the OLE DB provider 'SQLOLEDB' was unable TO begin a distributed transaction.
  3. [OLE/DB provider returned message: New transaction cannot enlist IN the specified transaction coordinator. ]
  4. OLE DB error trace [OLE/DB Provider 'SQLOLEDB' ITransactionJoin::JoinTransaction returned 0x8004d00a]
Last edited by peter_budo; Apr 18th, 2008 at 11:50 am. Reason: Keep It Organized - please use [code] tags
Reply With Quote Quick reply to this message  
Join Date: Feb 2008
Posts: 36
Reputation: huangzhi is an unknown quantity at this point 
Solved Threads: 12
huangzhi huangzhi is offline Offline
Light Poster

Re: insert data between SQL servers

 
0
  #2
Apr 22nd, 2008
I think you use Transaction. So you must start Distributed Transaction Coordinator on both server.
Last edited by huangzhi; Apr 22nd, 2008 at 12:08 am.
Hence Wijaya
www.ex-Soft.tk
Reply With Quote Quick reply to this message  
Join Date: Apr 2008
Posts: 4
Reputation: kbrown123 is an unknown quantity at this point 
Solved Threads: 0
kbrown123 kbrown123 is offline Offline
Newbie Poster

Re: insert data between SQL servers

 
0
  #3
Apr 22nd, 2008
I found a microsoft paper explaining to turn on DTC on both servers, it was only on one server. Once I did this setup, I was able to insert data from prod server to dev server. Thanks for the reply.


http://support.microsoft.com/default...b;en-us;816701
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:


Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC