//Query连接的是SQL SERVER中的Master数据库
Query.SQL.Clear;
Query.SQL.Add('backup database A to disk=''c:/temp.dat''');
Query.SQL.Add(restore database B from disk=''c:/temp.dat'' with replace');
Query.ExecSQL;
执行Query.SQL.Add(restore database B from disk=''c:/temp.dat'' with replace')时
出错:
The file 'c:/mssql7/data/A.mdf' cannot be used by RESTORE. Consider using
the WITH MOVE option to identify a valid location for the file.