我想连接的是.bak的格式,我已经创建了ASP.net Web应用程序的SQL Server数据库的是、我想、应用程序、我已经

2023-09-08 08:35:03 作者:囍你哟

我已经创建了一个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