无法在Visual Studio 2008 SP1 RTM / SQL Server Express 2008中创建.MDF文件 [英] Unable to create .MDF file within Visual Studio 2008 SP1 RTM/SQL Server Express 2008

查看:85
本文介绍了无法在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文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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