无法使用SQL Server 2008 R2 Developer Edition将.mdf文件添加到VS 2010 [英] Cannot add a .mdf file to VS 2010 using SQL Server 2008 R2 Developer Edition

查看:99
本文介绍了无法使用SQL Server 2008 R2 Developer Edition将.mdf文件添加到VS 2010的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我安装了SQL Server 2008 R2,实例名称为SQLSERVERR2。当我使用实例时,我无法将.mdf文件添加到ASP.Net App_Data文件夹中。错误是建立与SQL Server的连接时出现与网络相关的错误或与实例相关的错误。我尝试配置实例'' TCP / IP配置但结果是一样的。但是当我使用与VS 2010一起安装的默认SQL Server 2008 Express时,可以使用它将.mdf文件成功添加到App_Data文件夹中!



我必须将.mdf文件与SQL Server 2008 R2 Developer一起使用。那我该怎么办?



我用VS 2010 Professional& amp; VS 2010旗舰版。但给出了相同的结果。



我不知道该怎么做。请有人帮帮我。



谢谢



Chiranthaka。

解决方案

这个问题的答案已经通过

 OriginalGriff743K 


发布在我的另一个问题上




VS 2010中的SQL Server数据库文件& SQL Server 2008 R2开发人员版实例 [ ^ ]


I have installed SQL Server 2008 R2 with the instance name of SQLSERVERR2. When I am using the instance I cannot add a .mdf file to the ASP.Net App_Data folder. The error is "A network related error or instance related error occurred while establishing a connection to SQL Server". I have tried configuring the instances'' TCP/IP configuration but the result is the same. But when I am using the default SQL Server 2008 Express that installed with the VS 2010, it can be used to add the .mdf file to the App_Data folder successfully!

I have to use the .mdf file with the SQL Server 2008 R2 Developer. Then what should I do ?

I have tried this using VS 2010 Professional & VS 2010 Ultimate. But gave the same result.

I don''t know what to do. Please someone can help me.

Thank you

Chiranthaka.

解决方案

The answer for this question has been posted on another question of mine by

OriginalGriff743K




SQL Server Database File in VS 2010 & SQL Server 2008 R2 Developer Edition Instance[^]


这篇关于无法使用SQL Server 2008 R2 Developer Edition将.mdf文件添加到VS 2010的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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