sql server 2012 - NOLOCK error when attaching databases -


one of servers went down , i've had move databases server. want use "attach" functionality in sql server 2012 (these databases sql server 2005).

for reason getting nolock error on of databases when trying attach them:

could not continue scan nolock due data movement.
could not open new database 'db'. create database aborted.
file activation failure. physical file name "d:\db\xxxx_log.ldf" may incorrect.
new log file 'c:\db\xxxx_log.ldf' created.
(microsoft sql server, error: 601)

judging comments above, database , broken, there ways recover it, 1 of detailed here:

re-attaching, , fixing suspect database

but problem can never sure state data in, transactionally inconsistent cause pain later on if continue trying use this.

best thing if have backup, restore instead.


Comments

Popular posts from this blog

c# - Send Image in Json : 400 Bad request -

javascript - addthis share facebook and google+ url -

ios - Show keyboard with UITextField in the input accessory view -