1

我安装了 SQL Server 2008 Express 和 SQL Server 2012 Developer 版本。

当我想从 Visual Studio 2010 连接到 SQL Server 时,我只能选择连接,VISTAUSER-PC/SQLEXPRESS但我知道 2012 开发人员版的名称是VISTAUSER-PC,所以我只写了那个名称、测试连接及其工作。

DotNetNuke 只是让我选择连接到快速版,当我输入VISTAUSER-PC服务器名称时它无法连接。我知道 DNN 适用于 SQL Server 2012

http://img825.imageshack.us/img825/7582/captureqnn.jpg

在此处输入图像描述

4

1 回答 1

0

If your DotNetNuke install is on the same box as IIS/SQL2012/VS2012 then you just select "SQL Server 2005/2008 (Express) File". You need to make sure other SQL instances, except SQL 2012, are NOT running on your machine when you do this....

DotNetNuke ships with a database.mdf file which is used by default by SQLExpress.

To recap.. Do not edit your SQL connection strings in your web.config Stop any other SQL instance but SQL2012 Select the radio button beside "SQL Server 2005/2008 (Express) File".

I have noticed that SQL2012 uses a different account to run under so you may need to go in and change to "Network Service" so you can cleanly connect to SQL20102

Good luck...

于 2012-05-29T16:51:10.270 回答