我想连接的是.bak的格式,我已经创建了ASP.net Web应用程序的SQL Server数据库 [英] I want to connect SQL Server database which is in .bak format to the ASP.net web application that I have created

查看:160
本文介绍了我想连接的是.bak的格式,我已经创建了ASP.net Web应用程序的SQL Server数据库的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经创建了一个ASP.Net Web应用程序与其他计算机上的SQL Server 2005数据库。

I have created an ASP.Net web application with SQL Server 2005 database on another computer.

我想将它转移到另一台电脑。所以,我抄了ASP.Net项目,并在 .bak的格式的SQL数据库。我需要配置应用程序连接到数据库,并需要帮助,以获得正确的连接字符串。

I want to transfer it to another PC. Therefore, I have copied the ASP.Net Project and also the SQL database in .bak format. I need to configure the application to connect to the database and need help to get the correct connection string.

PS:创建数据库是由SQL Server 2005和我需要部署SQL Server上2012

PS: the database created was by SQL Server 2005 and I need to deploy on SQL Server 2012

推荐答案

BAK文件是SQL Server备份文件。你需要将它还原到SQL Server 2012中,并从那里走了。

bak files are Sql Server backup files. You need to restore it into the Sql Server 2012 and go from there.

恢复SQL Server 2012中的数据库文件 - > http://msdn.microsoft .COM / EN-US /库/ ms177429.aspx

Restoring database files in Sql Server 2012 -> http://msdn.microsoft.com/en-us/library/ms177429.aspx

和连接字符串为您的应用程序连接到它 - > http://connectionstrings.com/sql-服务器2012

And the connection string to connect you application to it -> http://connectionstrings.com/sql-server-2012

这篇关于我想连接的是.bak的格式,我已经创建了ASP.net Web应用程序的SQL Server数据库的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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