在Microsoft Visual Studio 2010中添加数据连接 [英] Adding a Data Connection in Microsoft Visual Studio 2010

查看:125
本文介绍了在Microsoft Visual Studio 2010中添加数据连接的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

正如标题所示,我的麻烦在于在Visual Studio 2010中添加数据连接。每当我尝试使用服务器资源管理器添加连接时,应用程序似乎崩溃并自动重启。每当我尝试为向导提供服务器名称时,都会发生这种情况,无论是手动输入还是尝试从服务器的下拉列表中选择它。



我尝试过已经重新安装,沿途删除所有组件,但事实并非如此。我收到的错误消息是发生错误,Visual Studio现在将关闭,所以,它对我没有太大帮助。



我会感激任何种类这些想法,无论从一开始就发现问题的可能性有多么微小。在此先感谢大家。

解决方案

这不是正常的行为,不是......对我来说,VS2010和SQL 2008R2都很好用。



如果重新安装VS无需修复它,那么你需要开始查看其他外部应用程序 - 它可能是导致问题的SQL。

所以:尝试通过SSMS,看看是否有效。

尝试连接到Access或SQLCE数据库,看看是否有效。



问题只有SQL / VS然后如果SQL实例在同一台PC上尝试卸载VS和SQL,然后先安装SQL,然后再安装VS - 我以前遇到过组合的安装顺序问题,因为VS安装是自己的'微型'SQL系统,如果它找不到完整的Monty。



其他一切都失败了,擦除磁盘,重新安装windows,然后SQL,然后VS! :笑:

My trouble is, as the title suggests, about adding a data connection in Visual Studio 2010. Whenever I try to add a connection using the Server Explorer, the application seems to crash and restart itself automatically. This happens whenever I try to provide the server name for the wizard, either by typing it manually or trying to pick it from the dropdown list for the servers.

I tried a re-install already, removing all components along the way, but it wasn't to be. The error message I get is "An error occurred and Visual Studio will close now", so, it's not helping me much, either.

I'd appreciate any sorts of ideas, no matter how slight the chances of spotting the trouble from the get go might be. Thanks in advance to everyone.

解决方案

That isn't normal behaviour, no... It works fine for me, with VS2010 and SQL 2008R2.

If reinstall of VS dies nothing to fix it, then you need to start looking at other external apps - it may be SQL that causes the problem.
So: try via SSMS and see if that works.
Try connecting to an Access or SQLCE database instead and see if that works.

Of the problem is only SQL/VS then if the SQL instance is on the same PC try uninstalling VS and SQL, then install SQL first, then VS on top of that - I've had problems in the past with install order for the combination, since VS installs is own 'micro' SQL system if it doesn't find the full Monty.

Of all else fails, wipe the disk, reinstall windows, then SQL, then VS! :laugh:


这篇关于在Microsoft Visual Studio 2010中添加数据连接的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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