简体   繁体   English

如何在我权限有限的远程Win7系统上还原.bak文件?

[英]How to restore a .bak file on a remote Win7 system, which I have limited permissions at?

We have an old project which is planned for an upgrade, and now as a seed, we took the backup of the whole database which is in a remote location. 我们有一个计划升级的旧项目,现在作为种子,我们备份了位于远程位置的整个数据库的备份。 I saved it in my remote desktop, which I have limited permissions. 我将其保存在远程桌面中,该桌面具有有限的权限。 I tried to use SQL Server Management Studio 2008 R2, but as there are no database in the newly created (remote) system, I cannot actually right click on the databases and restore the .BAK file. 我尝试使用SQL Server Management Studio 2008 R2,但是由于新创建(远程)系统中没有数据库,因此我实际上无法右键单击数据库并还原.BAK文件。

Is there any other software, or any other method I can use to restore the file? 是否可以使用其他软件或其他方法还原文件? I am guessing this is a pretty small work, but because of the complexity in permissions and connectivity, it's messed up. 我猜这是一件很小的工作,但是由于权限和连接的复杂性,它搞砸了。 I cannot even compare to another blogs, I feel this is unique. 我什至无法与其他博客相比,我觉得这是独一无二的。 Please suggest a workaround. 请提出解决方法。

ps., I have no clue which SQL Server version they used to create that backup. ps。,我不知道他们用来创建该备份的SQL Server版本。 The new system does not have Visual Studio, or anything else, but the SQL Server Management Studio 2008 R2 Express x64 version. 新系统不具有Visual Studio或其他任何功能,但是具有SQL Server Management Studio 2008 R2 Express x64版本。

If you can get the appropriate permissions to install SQL Server then SQL Server 2012 Express should do for restoring the database and reading from it, provided the database has less than 10GB of data. 如果您可以获得安装SQL Server的适当权限,则SQL Server 2012 Express应该执行还原数据库并从中读取的操作,前提是该数据库的数据少于10GB。

SQL Server 2008 R2 Express has a limit of 10GB of data, too. SQL Server 2008 R2 Express的数据限制也为10GB。 Earlier versions permit less data. 早期版本允许较少的数据。

Don't confuse a backup file that's less than 10GB as having less than 10GB of data. 不要将小于10GB的备份文件与小于10GB的数据混淆。 Backup files can be compressed. 备份文件可以压缩。

You should be aware of the limitations of SQL Server Express if you are going to use it beyond reading some data from the restored database, it may not be suitable for all workloads. 如果要使用SQL Server Express的局限性,而不仅仅是从已还原的数据库中读取某些数据,则应了解该局限性,它可能并不适合所有工作负载。

SQL Server 2012 LocalDB might also do the trick in a low privileges/lots of hoops to jump through environment, although it requires Administrator permissions when it's being installed. SQL Server 2012 LocalDB也可以在低特权/多组环境中轻松实现在环境中跳转的技巧,尽管在安装时需要管理员权限。 Note that it still has similar limitations to the Express editions, make sure you understand these limitations before using it in production. 请注意,它仍然具有与Express版本相似的局限性,请确保您在生产中使用它之前了解这些限制。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM