Just getting started with the SDK. Used one of the sample to just test registering. I keep getting 'Could not continue scan with NOLOCK due to data movement.' when making the dbTargert.Register call.
Here's the code. It's extremly simple - my intention was to go step by step and test as I went. I've changed all my private info but I have been consistent - it's all on the same server as indicated by the names. The TargetDB is empty.
The SourceDB has data in all tables and is not currently in use, so I'm baffled by the data movement
- Code: Select all
using ( Database dbTarget = new Database(), dbSource = new Database() )
ConnectionProperties cpSource = new ConnectionProperties( "MyServer", "SourceDB", "AUser", "APassword" );
ConnectionProperties cpTarget = new ConnectionProperties( "MyServer", "TargetDB", "AUser", "APassword" );
dbSource.Register( cpSource, Options.Default );
dbTarget.Register( cpTarget, Options.Default );