Restore fail for Server 'DatabaseServerName'.(Microsoft.SqlServer.Smo)
Additional information:
System.Data.SqlClient.SqlError: Directory lookup for the file "URL" failed with the operating system error 3(The System cannot find the path specified). (Microsoft.SqlServer.Smo)
解决方法:
我这里只需要更改数据库文件的路径即可,如果还想覆盖当前同名的数据库,则还需要勾选‘Overwrite the existing database’。
记性越来越差了,仅以此文做个记录,以免再碰到此类问题,又要Google了(^_^)