Visual Studio 2013 SQL查询和视图设计器未出现 [英] Visual Studio 2013 SQL Query and View Designer not appearing

查看:170
本文介绍了Visual Studio 2013 SQL查询和视图设计器未出现的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

不确定为什么查询和视图设计器未按

Not sure why the Query and View Designer is not appearing as per

http://msdn.microsoft.com/zh-cn/library/vstudio/ms172013.aspx

一个在数据库中位于AppData文件夹中的ASP.net项目,并使用SQL 2008 Express进行连接。

It's an ASP.net project with database in the AppData folder, and a connection using SQL 2008 Express.

如果有帮助,则连接字符串为:

If it helps the connection string is:

数据源= .\SQLEXPRESS; AttachDbFilename = C:\文件夹... \App_Data\database.mdf;集成安全性=真;连接超时= 30;用户实例=是

Data Source=.\SQLEXPRESS;AttachDbFilename="C:\folders...\App_Data\database.mdf";Integrated Security=True;Connect Timeout=30;User Instance=True

如果我在VS2012中打开了该项目(我在该项目上工作了一段时间),请找到一个表,右键单击,新查询,我得到一个不错的交互式视觉设计工具。

If I open the project in VS2012 (where I've worked on this project for some time), find a table, right click, new query, I get the nice interactive visual design tool.

如果我在VS2013中打开项目(刚刚安装)并执行相同的空白页,命名为SQLQuery1.sql,并与SQL Express建立基本连接(例如,主模型,模型等)

If I open the project in VS2013 (just installed) and do the same, blank page named SQLQuery1.sql and a basic connection to SQL Express (ie. master, model, etc.)

MS页面告诉我工具/选项/可视数据库t傻瓜-但这在我的安装中不存在!

MS page tells me Tools / Options / Visual Database tools - but this doesn't exist on my installation!

我错过了什么吗?

也尝试过空白项目,添加App_Data和新数据库(因此使用LocalDB),添加表,右键单击,新查询-完全相同的空白文件。

Also tried with blank project, added App_Data and a new database (so using LocalDB), added a table, right click, new query - exactly the same blank file.

推荐答案

我遇到了同样的问题,并认为我找到了解决方法。

I have been having the same problem and think I have found the solution.

将连接添加到数据库时,请在添加连接中对话。
单击数据源旁边的更改...

When you are adding the connection to the Database, in the Add Connection Dialog. Click 'Change...' next to the Data source

打开的对话框显示更改数据源

Dialog opens showing 'Change Data Source'

您可能选择了 Microsoft SQL Server,然后在其下方有一个下拉菜单可供您选择:

You probable have selected 'Microsoft SQL Server' and then below that there is a drop down where you can select:

.OLE DB的.NET Framework数据提供程序

用于SQL Server的.NET Framework数据提供程序(默认情况下可能已选中)

.NET Framework Data Provider for OLE DB
.NET Framework Data Provider for SQL Server (This is probably selected by default)

尝试更改为OLE DB连接。

try changing to the OLE DB connection.

单击确定,然后在添加连接对话框中完成其余的连接。然后,我发现使用
就像在VS2012中一样使用数据库,就像您在上面描述的那样。

Click OK, and then complete the rest of the connection on the 'Add Connection' dialog. I have then found that using the database works as it did in VS2012 and as you are describing above.

这篇关于Visual Studio 2013 SQL查询和视图设计器未出现的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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