Warning: file_get_contents(/data/phpspider/zhask/data//catemap/4/sql-server-2008/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Sql server 2008 SQL Server 2012还原不包括文件流_Sql Server 2008_Backup_Sql Server 2012 - Fatal编程技术网

Sql server 2008 SQL Server 2012还原不包括文件流

Sql server 2008 SQL Server 2012还原不包括文件流,sql-server-2008,backup,sql-server-2012,Sql Server 2008,Backup,Sql Server 2012,我有一个SQL Server 2008数据库,其中包含filestream 我需要备份此数据库(不包括filestream),并在SQL Server 2012上还原该数据库 我对此进行了研究,发现: 当我在不使用filestream的情况下备份数据库并按照URL的说明恢复到SQLServer2008时,这种方法就可以工作了 但是,当我运行脚本以还原到2012年时,会出现以下错误: Msg 3634, Level 16, State 1, Line 3 The operating system

我有一个SQL Server 2008数据库,其中包含filestream

我需要备份此数据库(不包括filestream),并在SQL Server 2012上还原该数据库

我对此进行了研究,发现:

当我在不使用filestream的情况下备份数据库并按照URL的说明恢复到SQLServer2008时,这种方法就可以工作了

但是,当我运行脚本以还原到2012年时,会出现以下错误:

Msg 3634, Level 16, State 1, Line 3
The operating system returned the error '3(The system cannot find the path specified.)' while attempting 'FindFirstFile' on X

Msg 5520, Level 16, State 1, Line 3
Upgrade of FILESTREAM container ID 65537 in the database ID 10 failed because of container size recalculation error. Examine the previous errorlog entries for errors, and take the appropriate corrective actions.

Msg 5056, Level 16, State 6, Line 3
Cannot add, remove, or modify a file in filegroup 'FileStreamFileGroup' because the filegroup is not online.
Msg 3013, Level 16, State 1, Line 3
RESTORE DATABASE is terminating abnormally.
我认为这与SQL将数据库从2008年升级到2012年有关


有什么想法吗?任何帮助都将不胜感激。

我也有同样的问题,我已经通过使用Smo库重写备份和恢复方法解决了这个问题

示例:

顺便说一句,如果是部分备份或恢复,我将执行以下操作

  if (partial)
  {
    sqlRestore.Partial = true;
    sqlRestore.ContinueAfterError = true;
  }
我希望这对你有帮助


~Bassam

我也有同样的问题,我通过使用Smo库重写备份和恢复方法解决了这个问题

示例:

顺便说一句,如果是部分备份或恢复,我将执行以下操作

  if (partial)
  {
    sqlRestore.Partial = true;
    sqlRestore.ContinueAfterError = true;
  }
我希望这对你有帮助

~z~巴萨姆