无法在Visual Studio 2008 SP1 RTM / SQL Server Express 2008中创建.MDF文件

编程入门 行业动态 更新时间:2024-10-24 08:23:25
本文介绍了无法在Visual Studio 2008 SP1 RTM / SQL Server Express 2008中创建.MDF文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

使用工具安装新的Sql Server Express 2008并删除Sql Server Express 2005后,我无法使用项目中的"添加/新项目... / SQL数据库"创建新的MDF文件'App_Data文件夹'。错误是:

After installing the new Sql Server Express 2008 with tools and removing Sql Server Express 2005 i'm unable to create a new MDF file with 'Add/New Item.../SQL Database in the project 'App_Data folder'. The error is:

"与SQl服务器文件(* .mdf)的连接需要SQL Server Express 2005功能正常...."

"Connections to SQl Server files (*.mdf) require SQL Server Express 2005 to function properly...."

任何想法?

推荐答案

我不知道这对你有用,但对我有用。我开了Visual studio。从文件菜单中找到工具然后单击选项。然后从选项菜单中选中显示所有设置并将列表向下滚动到数据库工具。展开它并单击数据连接。我将SQL Server实例名称重命名为我在安装SQL Server 2008时创建的名称。然后单击"确定"。

I don't know if this will work for you but it worked for me. I opened Visual studio. Went to tools from the file menu then clicked options.Then from th options menu i checked show all settings and scrolled down the list to Database tools. Expanded it and click Data connections. I renamed the SQL Server Instance Name to the one i created when I installed SQL server 2008. Then click ok.

 

更多推荐

无法在Visual Studio 2008 SP1 RTM / SQL Server Express 2008中创建.MDF文件

本文发布于:2023-11-09 05:38:09,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1571519.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:文件   Visual   Studio   RTM   Express

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!