如何在另一台计算机上恢复数据库 [英] how to get ride to restore database in another computer

查看:81
本文介绍了如何在另一台计算机上恢复数据库的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在研究(asp.net)VS 2012和sqlserver 2008r。现在,如果我想看到我的项目到另一台计算机(功能数据库工作)已经安装了vs 2012和sqlsever 2008 r2,那么我是否需要在该计算机的sqlserver中恢复我的数据库。 ?或者我可以在那台计算机上看到我的项目而没有它我看到如果我把我的数据库放在appcode文件夹中,那么我的项目将在我自己的计算机上工作。我的意思是在我的计算机上使用数据库功能。

i am working on (asp.net) VS 2012 and sqlserver 2008r . now if i want to see my project to another computer (with functional database working) where vs 2012 and sqlsever 2008 r2 already installed then do i need to restore my databse in that computer's sqlserver. ? or i can see my project in that computer without it ? some where i see that if i put my db in appcode folder then my project will work as it work in my own computer. i mean functional in my computer with databse.

推荐答案

如果你在同一个网络上,那么你需要做的就是在另一台计算机上安装你的应用程序,它将能够使用相同的连接字符串连接到您的SQL Server(如果您使用localhost然后将其更改为您的计算机的名称)。
If you are on the same network then all you need to do is install your application on the other computer, it will be able to connect to your sql server using the same connection string (if you used localhost then change that to the name of your computer).


这篇关于如何在另一台计算机上恢复数据库的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆