Search code examples
sql-serversql-server-2012database-restore

setparent fail for database sql server 2012


I have an SQLServer 2012 and I'm trying to restore a BAK file , the error I get is

setparent failed for database 'dbname'

any idea?


Solution

  • I found the problem reason , SMO version not the same in the project and the BAK