SQL Compare OLEDB command line error
lfreijo
Posts: 16 Bronze 2
I am trying to sychronize a snapshot with a database. I am running this in a command window on my local machine. I am a sysadmin on the server. I am getting the following error. I changed the folder_location\snapshot_file and server.database to something generic for security reasons.
Error: Synchronization of 'folder_location\snapshot_file' and
'server.database' failed: The operation could not be performed because the OLE DB provider 'SQLOLEDB' was unable to begin a distributed transaction. [OLE/DB provider returned message: New transaction cannot enlist in the specified transaction coordinator. ] OLE DB error trace [OLE/DB Provider 'SQLOLEDB' ITransactionJoin::JoinTransaction returned 0x8004d00a].
I restarted DTC on my local machine and on the server. Does anyone have any ideas?
Error: Synchronization of 'folder_location\snapshot_file' and
'server.database' failed: The operation could not be performed because the OLE DB provider 'SQLOLEDB' was unable to begin a distributed transaction. [OLE/DB provider returned message: New transaction cannot enlist in the specified transaction coordinator. ] OLE DB error trace [OLE/DB Provider 'SQLOLEDB' ITransactionJoin::JoinTransaction returned 0x8004d00a].
I restarted DTC on my local machine and on the server. Does anyone have any ideas?
Comments
sqlcompare /snapshot1:"folder_location\snapshot_filesnp" /server2:server /database2:database /synchronize /force
The nasty side-effect is that if anyone else is making schema changes to the database at the same time, the way I understand it the database can be left in an inconsistent state.